Go to the documentation of this file.
39 bool IsValid(
void)
const;
59 bool CheckPermission(
const QString &context,
uint permission);
114 static bool IsValidUser(
const QString &username);
120 bool IsValidSession(
const QString &sessionToken);
136 static QString GetPasswordDigest(
const QString &username);
147 const QByteArray &digest,
148 const QString &client =
"");
159 const QString &password,
160 const QString &client =
"");
167 static QByteArray CreateDigest(
const QString &username,
168 const QString &password);
179 const QString &username,
180 const QString &password,
181 const QString &newPassword,
182 const QString &adminPassword);
188 void LoadSessions(
void);
193 void UpdateSession(
const QString &sessionToken);
202 MythUserSession GetSession(
const QString &username,
const QString &client);
208 const QString &client);
213 void DestroyUserSession(
const QString &sessionToken);
215 static bool AddDigestUser(
const QString &username,
216 const QString &password,
217 const QString &adminPassword);
219 static bool RemoveDigestUser(
const QString &username,
220 const QString &password);
222 static bool ChangeDigestUserPassword(
const QString &username,
223 const QString &oldPassword,
224 const QString &newPassword);
229 #endif // MYTHSESSION_H
QMap< QString, MythUserSession > m_sessionList
QDateTime m_sessionLastActive
uint GetUserId(void) const
QDateTime m_sessionExpires
QString GetSessionToken(void) const
QMap< QString, uint > m_permissionsList
QDateTime GetSessionLastActive() const
QDateTime GetSessionExpires() const
QDateTime GetSessionCreated() const
QDateTime m_sessionCreated
QString GetSessionClient(void) const
QString GetUserName(void) const