itom
3.0.0
|
class handling users and their rights More...
Public Member Functions | |
const QString | getUserName () const |
int | getUserRole () const |
QString | getUserID (void) const |
shortdesc More... | |
UserModel * | getUserModel () const |
ito::RetVal | readUserDataFromFile (const QString &filename, QString &username, QString &uid, UserFeatures &features, UserRole &role, QDateTime &lastModified) |
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 More... | |
bool | hasFeature (UserFeature feature) |
Static Public Member Functions | |
static UserOrganizer * | getInstance (void) |
static RetVal | closeInstance (void) |
Private Member Functions | |
UserOrganizer (UserOrganizer &) | |
QString | getUserID (const QString &iniFile) const |
shortdesc More... | |
ito::RetVal | scanSettingFilesAndLoadModel () |
Private Attributes | |
UserRole | m_userRole |
QString | m_userName |
UserFeatures | m_features |
QString | m_settingsFile |
QString | m_strConstStdUser |
QString | m_lastOpenedUserName |
UserModel * | m_userModel |
Static Private Attributes | |
static UserOrganizer * | m_pUserOrganizer = NULL |
class handling users and their rights
|
static |
closeInstance
closes the instance of the userOrganizer - should only be called at the very closing of the main program
|
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
QString ito::UserOrganizer::getUserID | ( | void | ) | const |
shortdesc
longdesc
|
private |
shortdesc
longdesc
inifile |
ito::RetVal ito::UserOrganizer::loadSettings | ( | const QString & | defUserName | ) |
|
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