class handling users and their rights
More...
|
const QString | getCurrentUserName () const |
| returns the role of the current user (user, developer, administrator).
|
|
ito::UserRole | getCurrentUserRole () const |
| returns the unique ID of the current user
|
|
QString | getCurrentUserId () const |
| returns the available features for the current user
|
|
UserFeatures | getCurrentUserFeatures () const |
| < returns the available features for the current user
|
|
QString | getCurrentUserSettingsFile () const |
|
bool | currentUserHasFeature (const UserFeature &feature) |
|
UserModel * | getUserModel () const |
|
ito::RetVal | readUserDataFromFile (const QString &filename, QString &username, QString &uid, UserFeatures &features, UserRole &role, QByteArray &password, QDateTime &lastModified) |
|
ito::RetVal | writeUserDataToFile (const QString &username, const QString &uid, const UserFeatures &features, const UserRole &role, const QByteArray &password, const bool &standardUser=false) |
|
ito::RetVal | loadSettings (const QString &userId) |
| shortdesc
|
|
|
QString | m_strConstStdUserName |
|
QString | m_strConstStdUserId |
|
QString | m_lastOpenedUserName |
|
UserModel * | m_userModel |
|
class handling users and their rights
◆ closeInstance()
RetVal ito::UserOrganizer::closeInstance |
( |
void | | ) |
|
|
static |
returns the user name of the current user
closeInstance
- Returns
- ito::retOk
closes the instance of the userOrganizer - should only be called at the very closing of the main program
◆ getCurrentUserId()
QString ito::UserOrganizer::getCurrentUserId |
( |
void | | ) |
const |
returns the available features for the current user
< returns the unique ID of the current user
◆ getCurrentUserName()
const QString ito::UserOrganizer::getCurrentUserName |
( |
| ) |
const |
returns the role of the current user (user, developer, administrator).
< returns the user name of the current user
◆ getCurrentUserRole()
returns the unique ID of the current user
< returns the role of the current user (user, developer, administrator).
◆ getInstance()
getInstance method, retrieves Instance of the userOrganizer (or opens it if no instance exists)
- Returns
- instance of the userOrganizer
This method returns the instance of the userOrganizer, i.e. if the userOrganizer has not been started, it is started then. Otherwise the reference to the open userOrganizer is returned
◆ getUserIdFromSettingsFilename()
QString ito::UserOrganizer::getUserIdFromSettingsFilename |
( |
const QString & | iniFile | ) |
const |
|
private |
shortdesc
longdesc
- Parameters
-
- Returns
- QString
◆ loadSettings()
ito::RetVal ito::UserOrganizer::loadSettings |
( |
const QString & | userId | ) |
|
shortdesc
longdesc
- Parameters
-
- Returns
- RetVal
◆ m_pUserOrganizer
global variable reference used to store AddInManager reference, as the AIM is singleton this variable is principally only accessed by the class itself. Its value is return also by the getReference AddInManager::method of AIM
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/organizer/userOrganizer.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/organizer/userOrganizer.cpp