krfb
invitation.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 invitation.h 00003 ------------------- 00004 begin : Sat Mar 30 2002 00005 copyright : (C) 2002 by Tim Jansen 00006 email : tim@tjansen.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef INVITATION_H 00019 #define INVITATION_H 00020 00021 #include <KApplication> 00022 #include <KConfig> 00023 #include <QObject> 00024 00025 #include <QDateTime> 00026 00027 00028 const int INVITATION_DURATION = 60*60; 00029 00030 class Invitation { 00031 public: 00032 Invitation(); 00033 ~Invitation(); 00034 Invitation(const KConfigGroup &config); 00035 Invitation(const Invitation &x); 00036 Invitation &operator= (const Invitation&x); 00037 00038 bool operator == (const Invitation &ot); 00039 00040 QString password() const; 00041 QDateTime expirationTime() const; 00042 QDateTime creationTime() const; 00043 bool isValid() const; 00044 00045 void save(KConfigGroup &config) const; 00046 private: 00047 QString m_password; 00048 QDateTime m_creationTime; 00049 QDateTime m_expirationTime; 00050 00051 }; 00052 00053 #endif
KDE 4.0 API Reference