5 #include "authenticationuser.h" 21 AuthenticationUser::~AuthenticationUser()
27 return m_data.value(QStringLiteral(
"id"));
32 m_data.insert(QStringLiteral(
"id"),
id);
37 return m_data.isEmpty();
42 return m_data.value(QStringLiteral(
"authRealm")).toString();
47 m_data.insert(QStringLiteral(
"authRealm"),
authRealm);
66 const QVariantMap map = user.data();
68 dbg.
nospace() <<
"AuthenticationUser(";
69 for (
auto it = map.constBegin(); it != map.constEnd(); ++it) {
70 dbg <<
'(' << it.key() <<
", " << it.value() <<
')';
77 #include "moc_authenticationuser.cpp" void setId(const QVariant &id)
Sets the unique user id restored from the store.
void setAutoInsertSpaces(bool b)
bool isNull() const
Returns true if the object is null.
The Cutelyst namespace holds all public Cutelyst API.
bool autoInsertSpaces() const const
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.