10#include <QtCore/QVector>
36 I_ASSIGN_MULTI_0(m_userLevelNamesAttrPtr,
"UserLevelNames",
"Names of the user levels",
false);
37 I_ASSIGN_MULTI_0(m_defaultUsersAttrPtr,
"DefaultUsers",
"List of default users",
false);
38 I_ASSIGN_MULTI_0(m_defaultUserPasswordsAttrPtr,
"DefaultUserPasswords",
"List of default user passwords",
false);
39 I_ASSIGN_MULTI_0(m_defaultUserLevelsAttrPtr,
"DefaultUserLevels",
"Default user levels",
false);
51 bool RenameUser(
int userIndex,
const QString& userName)
override;
64 I_MULTIATTR(QString, m_defaultUsersAttrPtr);
65 I_MULTIATTR(QString, m_defaultUserPasswordsAttrPtr);
66 I_MULTIATTR(
int, m_defaultUserLevelsAttrPtr);
68 typedef QVector<CUser> Users;
71 typedef QVector<QString> UserLevels;
72 UserLevels m_userLevels;
Allows manage of list of users.
int GetUserGroupsCount() const override
Get number of user groups.
icomp::CComponentBase BaseClass
CUser * AddUser(const QString &name) override
Add a new user to the user list.
bool DeleteUser(const QString &name) override
Delete the user with the user name.
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
const CUser & GetUser(int index) const override
Get user using its index.
bool RenameUser(int userIndex, const QString &userName) override
The method renames the user.
void OnComponentCreated() override
const QString & GetUserGroupName(int groupIndex) const override
Get number of user groups.
CUser & GetUserRef(int index) override
Get reference to user object using its index.
int GetUsersCount() const override
Get number of users in this collection.
int FindUserIndex(const QString &name) const override
Search for user with specified name.
Provide management of users.
Base class for component implementation.
Represent input/output persistence archive.
Common class for all classes which objects can be archived or restored from archive.
#define I_MULTITEXTATTR(member)
Declare translatable multiple text attribute member.
Contains implementations of interfaces and components related to right management.