18 #include "authenticationuser.h" 20 #include <QDataStream> 35 AuthenticationUser::~AuthenticationUser()
41 return m_data.value(QStringLiteral(
"id")).toString();
46 m_data.insert(QStringLiteral(
"id"),
id);
51 return m_data.isEmpty();
56 return m_data.value(QStringLiteral(
"authRealm")).toString();
61 m_data.insert(QStringLiteral(
"authRealm"),
authRealm);
80 const QVariantMap map = user.data();
81 const bool oldSetting = dbg.autoInsertSpaces();
82 dbg.nospace() <<
"AuthenticationUser(";
83 for (
auto it = map.constBegin();
84 it != map.constEnd(); ++it) {
85 dbg <<
'(' << it.key() <<
", " << it.value() <<
')';
88 dbg.setAutoInsertSpaces(oldSetting);
89 return dbg.maybeSpace();
92 #include "moc_authenticationuser.cpp" void setId(const QVariant &id)
Sets the unique user id restored from the store.
bool isNull() const
Returns true if the object is null.
The Cutelyst namespace holds all public Cutelyst API.
QString authRealm()
Returns the authentication realm from which this user was retrieved.
void setAuthRealm(const QString &authRealm)
Sets the authentication realm from which this user was retrieved.
AuthenticationUser()
Constructs a new AuthenticationUser object.