itom 2.0.0
ito::UserOrganizer Class Reference

class handling users and their rights More...

List of all members.

Public Member Functions

const QString getUserName () const
int getUserRole () const
QString getUserID (void) const
 shortdesc
UserModelgetUserModel () const
ito::RetVal readUserDataFromFile (const QString &filename, QString &username, QString &uid, UserFeatures &features, UserRole &role)
ito::RetVal writeUserDataToFile (const QString &username, const QString &uid, const UserFeatures &features, const UserRole &role)
UserFeatures getUserFeatures (void) const
QString getSettingsFile () const
ito::RetVal loadSettings (const QString &defUserName)
 shortdesc
bool hasFeature (UserFeature feature)

Static Public Member Functions

static UserOrganizergetInstance (void)
static RetVal closeInstance (void)

Private Member Functions

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

Private Attributes

UserRole m_userRole
QString m_userName
UserFeatures m_features
QString m_settingsFile
QString m_strConstStdUser
UserModelm_userModel

Static Private Attributes

static UserOrganizerm_pUserOrganizer = NULL

Detailed Description

class handling users and their rights


Member Function Documentation

RetVal ito::UserOrganizer::closeInstance ( void  ) [static]

closeInstance

Returns:
ito::retOk

closes the instance of the userOrganizer - should only be called at the very closing of the main program

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

QString ito::UserOrganizer::getUserID ( void  ) const

shortdesc

longdesc

Returns:
QString
QString ito::UserOrganizer::getUserID ( const QString &  iniFile) const [private]

shortdesc

longdesc

Parameters:
inifile
Returns:
QString
ito::RetVal ito::UserOrganizer::loadSettings ( const QString &  defUserName)

shortdesc

longdesc

Parameters:
defUserName
Returns:
RetVal

Member Data Documentation

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:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends