itom 2.0.0
|
class handling users and their rights More...
Public Member Functions | |
const QString | getUserName () const |
int | getUserRole () const |
QString | getUserID (void) const |
shortdesc | |
UserModel * | getUserModel () 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 UserOrganizer * | getInstance (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 |
UserModel * | m_userModel |
Static Private Attributes | |
static UserOrganizer * | m_pUserOrganizer = NULL |
class handling users and their rights
RetVal ito::UserOrganizer::closeInstance | ( | void | ) | [static] |
closeInstance
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)
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
QString ito::UserOrganizer::getUserID | ( | const QString & | iniFile | ) | const [private] |
shortdesc
longdesc
inifile |
ito::RetVal ito::UserOrganizer::loadSettings | ( | const QString & | defUserName | ) |
UserOrganizer * ito::UserOrganizer::m_pUserOrganizer = NULL [static, private] |
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