itom
4.1.0
|
class handling users and their rights More...
Public Member Functions | |
const QString | getCurrentUserName () const |
returns the role of the current user (user, developer, administrator). More... | |
ito::UserRole | getCurrentUserRole () const |
returns the unique ID of the current user More... | |
QString | getCurrentUserId () const |
returns the available features for the current user More... | |
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 More... | |
Static Public Member Functions | |
static UserOrganizer * | getInstance (void) |
static RetVal | closeInstance (void) |
returns the user name of the current user More... | |
Private Member Functions | |
UserOrganizer (UserOrganizer &) | |
QString | getUserIdFromSettingsFilename (const QString &iniFile) const |
shortdesc More... | |
ito::RetVal | scanSettingFilesAndLoadModel () |
Private Attributes | |
QString | m_strConstStdUserName |
QString | m_strConstStdUserId |
QString | m_lastOpenedUserName |
UserModel * | m_userModel |
Static Private Attributes | |
static UserOrganizer * | m_pUserOrganizer = NULL |
class handling users and their rights
|
static |
returns the user name of the current user
closeInstance
closes the instance of the userOrganizer - should only be called at the very closing of the main program
QString ito::UserOrganizer::getCurrentUserId | ( | void | ) | const |
returns the available features for the current user
< returns the unique ID of the current user
const QString ito::UserOrganizer::getCurrentUserName | ( | ) | const |
returns the role of the current user (user, developer, administrator).
< returns the user name of the current user
ito::UserRole ito::UserOrganizer::getCurrentUserRole | ( | ) | const |
returns the unique ID of the current user
< returns the role of the current user (user, developer, administrator).
|
static |
getInstance method, retrieves Instance of the userOrganizer (or opens it if no instance exists)
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
|
private |
shortdesc
longdesc
inifile |
ito::RetVal ito::UserOrganizer::loadSettings | ( | const QString & | userId | ) |
|
staticprivate |
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