Created data sructures for user and permissions support
This commit is contained in:
+74
-13
@@ -3,36 +3,97 @@
|
||||
User::User()
|
||||
{
|
||||
}
|
||||
|
||||
int User::getId() const
|
||||
int User::id() const
|
||||
{
|
||||
return id;
|
||||
return m_id;
|
||||
}
|
||||
|
||||
void User::setId(int value)
|
||||
void User::setId(int id)
|
||||
{
|
||||
id = value;
|
||||
m_id = id;
|
||||
}
|
||||
QList<QSharedPointer<Role> > User::listRoles() const
|
||||
{
|
||||
return m_listRoles;
|
||||
}
|
||||
|
||||
QString User::getLogin() const
|
||||
void User::setListRoles(const QList<QSharedPointer<Role> > &listRoles)
|
||||
{
|
||||
return login;
|
||||
m_listRoles = listRoles;
|
||||
}
|
||||
|
||||
void User::setLogin(const QString &value)
|
||||
QString User::login() const
|
||||
{
|
||||
login = value;
|
||||
return m_login;
|
||||
}
|
||||
|
||||
QString User::getPassword() const
|
||||
void User::setLogin(const QString &login)
|
||||
{
|
||||
return password;
|
||||
m_login = login;
|
||||
}
|
||||
|
||||
void User::setPassword(const QString &value)
|
||||
QString User::password() const
|
||||
{
|
||||
password = value;
|
||||
return m_password;
|
||||
}
|
||||
|
||||
void User::setPassword(const QString &password)
|
||||
{
|
||||
m_password = password;
|
||||
}
|
||||
|
||||
QString User::name() const
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
void User::setName(const QString &name)
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
|
||||
QDateTime User::lastModDate() const
|
||||
{
|
||||
return m_lastModDate;
|
||||
}
|
||||
void User::setLastModDate(const QDateTime &lastModDate)
|
||||
{
|
||||
m_lastModDate = lastModDate;
|
||||
}
|
||||
|
||||
QDateTime User::createDate() const
|
||||
{
|
||||
return m_createDate;
|
||||
}
|
||||
void User::setCreateDate(const QDateTime &createDate)
|
||||
{
|
||||
m_createDate = createDate;
|
||||
}
|
||||
|
||||
bool User::active() const
|
||||
{
|
||||
return m_active;
|
||||
}
|
||||
void User::setActive(bool active)
|
||||
{
|
||||
m_active = active;
|
||||
}
|
||||
|
||||
bool User::isAdmin() const
|
||||
{
|
||||
return m_isAdmin;
|
||||
}
|
||||
void User::setIsAdmin(bool isAdmin)
|
||||
{
|
||||
m_isAdmin = isAdmin;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user