5 #include "authenticationuser.h"
22 AuthenticationUser::~AuthenticationUser()
28 return m_data.value(QStringLiteral(
"id"));
33 m_data.insert(QStringLiteral(
"id"),
id);
38 return m_data.isEmpty();
43 return m_data.value(QStringLiteral(
"authRealm")).toString();
48 m_data.insert(QStringLiteral(
"authRealm"),
authRealm);
67 const QVariantMap map = user.data();
68 const bool oldSetting = dbg.autoInsertSpaces();
69 dbg.nospace() <<
"AuthenticationUser(";
70 for (
auto it = map.constBegin();
71 it != map.constEnd(); ++it) {
72 dbg <<
'(' << it.key() <<
", " << it.value() <<
')';
75 dbg.setAutoInsertSpaces(oldSetting);
76 return dbg.maybeSpace();
79 #include "moc_authenticationuser.cpp"
QString authRealm()
Returns the authentication realm from which this user was retrieved.
AuthenticationUser()
Constructs a new AuthenticationUser object.
void setAuthRealm(const QString &authRealm)
Sets the authentication realm from which this user was retrieved.
bool isNull() const
Returns true if the object is null.
void setId(const QVariant &id)
Sets the unique user id restored from the store.
The Cutelyst namespace holds all public Cutelyst API.