Go to the documentation of this file.
34 I_REGISTER_INTERFACE(
ILogin);
35 I_ASSIGN_MULTI_0(m_userLevelsCompPtr,
"UserLevels",
"User levels",
true);
36 I_ASSIGN(m_usersManagerCompPtr,
"UsersManager",
"Users manager",
true,
"UsersManager");
37 I_ASSIGN(m_passwordChangerCompPtr,
"PasswordChanger",
"Passwort manager",
false,
"PasswordChanger");
38 I_ASSIGN(m_defaultUserNameAttrPtr,
"DefaultUserName",
"Name of user will be automatically logged in",
false,
"Default");
43 bool Login(
const QString& userName,
const QString& password)
override;
48 const QByteArray& operationId,
49 bool beQuiet =
false)
const override;
59 I_ATTR(QByteArray, m_defaultUserNameAttrPtr);
61 QString m_loggedUserName;
Implementation of user login allowing to get rights for current logged user.
CUser * GetLoggedUser() const override
Returns the currently logged on user.
icomp::CComponentBase BaseClass
void OnComponentCreated() override
bool HasRight(const QByteArray &operationId, bool beQuiet=false) const override
Checks if user has rights for specific operation.
bool Login(const QString &userName, const QString &password) override
Log in user.
bool Logout() override
Log in user.
Provide management of users.
Base class for component implementation.
Contains implementations of interfaces and components related to right management.
© Witold Gantzke and Kirill Lepskiy