itom
Loading...
Searching...
No Matches
ito::UserOrganizer Class Reference

class handling users and their rights More...

Inheritance diagram for ito::UserOrganizer:

Public Member Functions

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)
 
UserModelgetUserModel () 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
 

Static Public Member Functions

static UserOrganizergetInstance (void)
 
static RetVal closeInstance (void)
 returns the user name of the current user
 

Private Member Functions

 UserOrganizer (UserOrganizer &)
 
QString getUserIdFromSettingsFilename (const QString &iniFile) const
 shortdesc
 
ito::RetVal scanSettingFilesAndLoadModel ()
 

Private Attributes

QString m_strConstStdUserName
 
QString m_strConstStdUserId
 
QString m_lastOpenedUserName
 
UserModelm_userModel
 

Static Private Attributes

static UserOrganizerm_pUserOrganizer = NULL
 

Detailed Description

class handling users and their rights

Member Function Documentation

◆ 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()

ito::UserRole ito::UserOrganizer::getCurrentUserRole ( ) const

returns the unique ID of the current user

< returns the role of the current user (user, developer, administrator).

◆ getInstance()

UserOrganizer * ito::UserOrganizer::getInstance ( void )
static

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
inifile
Returns
QString

◆ loadSettings()

ito::RetVal ito::UserOrganizer::loadSettings ( const QString & userId)

shortdesc

longdesc

Parameters
userId
Returns
RetVal

Member Data Documentation

◆ m_pUserOrganizer

UserOrganizer * ito::UserOrganizer::m_pUserOrganizer = NULL
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


The documentation for this class was generated from the following files: