* major layout fixes (size, stacked widget, ...)
[kdenetwork.git] / krfb / invitation.h
blob40a8da91ee4543cd480a911b4755968b15111659
1 /***************************************************************************
2 invitation.h
3 -------------------
4 begin : Sat Mar 30 2002
5 copyright : (C) 2002 by Tim Jansen
6 email : tim@tjansen.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef INVITATION_H
19 #define INVITATION_H
21 #include <KApplication>
22 #include <KConfig>
23 #include <QObject>
25 #include <QDateTime>
28 const int INVITATION_DURATION = 60*60;
30 class Invitation {
31 public:
32 Invitation();
33 ~Invitation();
34 Invitation(const KConfigGroup &config);
35 Invitation(const Invitation &x);
36 Invitation &operator= (const Invitation&x);
38 bool operator == (const Invitation &ot);
40 QString password() const;
41 QDateTime expirationTime() const;
42 QDateTime creationTime() const;
43 bool isValid() const;
45 void save(KConfigGroup &config) const;
46 private:
47 QString m_password;
48 QDateTime m_creationTime;
49 QDateTime m_expirationTime;
53 #endif