18 #include "authenticationuser.h"
20 #include <QDataStream>
23 using namespace Cutelyst;
35 AuthenticationUser::~AuthenticationUser()
41 return m_data.value(QStringLiteral(
"id"));
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();
82 dbg.
nospace() <<
"AuthenticationUser(";
83 for (
auto it = map.constBegin();
84 it != map.constEnd(); ++it) {
85 dbg <<
'(' << it.key() <<
", " << it.value() <<
')';
92 #include "moc_authenticationuser.cpp"
void setId(const QVariant &id)
Sets the unique user id restored from the store.
void setAutoInsertSpaces(bool b)
bool autoInsertSpaces() const
bool isNull() const
Returns true if the object is null.
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.