23 #ifndef SIGNONIDENTITYINFO_H
24 #define SIGNONIDENTITYINFO_H
27 #include <QStringList>
30 #include "signond/signoncommon.h"
32 namespace SignonDaemonNS {
53 const QStringList &
realms = QStringList(),
55 const QStringList &
ownerList = QStringList(),
60 const QVariantMap
toMap()
const;
65 void setNew() { m_id = SIGNOND_NEW_IDENTITY; }
66 bool isNew()
const {
return m_id == SIGNOND_NEW_IDENTITY; }
68 quint32
id()
const {
return m_id; }
71 QString
userName()
const {
return m_userName; }
76 QString
password()
const {
return m_password; }
83 QString
caption()
const {
return m_caption; }
86 QStringList
realms()
const {
return m_realms; }
93 { m_accessControlList = acl; }
100 int type()
const {
return m_type; }
106 const QString &mechanism,
107 QString &allowedMechanism);
113 bool m_storePassword;
116 QStringList m_realms;
117 QStringList m_accessControlList;
118 QStringList m_ownerList;
122 bool m_isUserNameSecret;
129 #endif // SIGNONIDENTITYINFO_H
bool isUserNameSecret() const
QStringList MechanismsList
void setRealms(const QStringList &realms)
QStringList accessControlList() const
bool storePassword() const
void setStorePassword(bool storePassword)
void setMethods(const MethodMap &methods)
void setType(const int type)
QStringList realms() const
void setCaption(const QString &caption)
void setOwnerList(const QStringList &owner)
bool checkMethodAndMechanism(const QString &method, const QString &mechanism, QString &allowedMechanism)
QStringList ownerList() const
void setPassword(const QString &password)
void setAccessControlList(const QStringList &acl)
MethodMap methods() const
QMap< MethodName, MechanismsList > MethodMap
Daemon side representation of identity information.
SignonIdentityInfo & operator=(const SignonIdentityInfo &other)
void setUserName(const QString &userName)
bool operator==(const SignonIdentityInfo &other) const
const QVariantMap toMap() const
void setUserNameSecret(bool secret)
void setValidated(bool validated)