krfb
Go to the documentation of this file.
17 #include <KConfigGroup>
20 #include <KStringHandler>
29 int r = KRandom::random() % 62;
61 m_creationTime = QDateTime::currentDateTime();
66 : m_password(x.m_password), m_creationTime(x.m_creationTime), m_expirationTime(x.m_expirationTime)
72 m_password = KStringHandler::obscure(config.readEntry(
"password", QString()));
73 kDebug() <<
"read: " << config.readEntry(
"password", QString()) <<
" = " << m_password;
74 m_creationTime = config.readEntry(
"creation", QDateTime());
75 m_expirationTime = config.readEntry(
"expiration", QDateTime());
84 m_password = x.m_password;
85 m_creationTime = x.m_creationTime;
86 m_expirationTime = x.m_expirationTime;
92 config.writeEntry(
"password", KStringHandler::obscure(m_password));
93 config.writeEntry(
"creation", m_creationTime);
94 config.writeEntry(
"expiration", m_expirationTime);
104 return m_expirationTime;
109 return m_creationTime;
114 return m_expirationTime > QDateTime::currentDateTime();
119 return m_creationTime == ot.m_creationTime && m_password == ot.m_password;
const int INVITATION_DURATION
Invitation & operator=(const Invitation &x)
void save(KConfigGroup &config) const
QDateTime expirationTime() const
static QString readableRandomString(int length)
bool operator==(const Invitation &ot)
QDateTime creationTime() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:10 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.