23#ifndef USEROGRANIZER_H
24#define USEROGRANIZER_H
31#include <qcoreapplication.h>
33#include "models/UserModel.h"
61 QString getCurrentUserSettingsFile()
const;
63 bool currentUserHasFeature(
const UserFeature &feature);
65 inline UserModel* getUserModel()
const {
return m_userModel; }
67 ito::RetVal readUserDataFromFile(
const QString &filename, QString &username, QString &uid, UserFeatures &features,
68 UserRole &role, QByteArray &password, QDateTime &lastModified);
70 ito::RetVal writeUserDataToFile(
const QString &username,
const QString &uid,
const UserFeatures &features,
71 const UserRole &role,
const QByteArray &password,
const bool &standardUser =
false);
84 QString m_strConstStdUserName;
85 QString m_strConstStdUserId;
86 QString m_lastOpenedUserName;
Class for managing status values (like errors or warning)
Definition retVal.h:54
class for for visualizing the available users
Definition UserModel.h:81
class handling users and their rights
Definition userOrganizer.h:39
const QString getCurrentUserName() const
returns the role of the current user (user, developer, administrator).
Definition userOrganizer.cpp:518
QString getUserIdFromSettingsFilename(const QString &iniFile) const
shortdesc
Definition userOrganizer.cpp:502
ito::RetVal loadSettings(const QString &userId)
shortdesc
Definition userOrganizer.cpp:102
static UserOrganizer * getInstance(void)
Definition userOrganizer.cpp:71
QString getCurrentUserId() const
returns the available features for the current user
Definition userOrganizer.cpp:535
UserFeatures getCurrentUserFeatures() const
< returns the available features for the current user
Definition userOrganizer.cpp:542
ito::UserRole getCurrentUserRole() const
returns the unique ID of the current user
Definition userOrganizer.cpp:528
static RetVal closeInstance(void)
returns the user name of the current user
Definition userOrganizer.cpp:86
static UserOrganizer * m_pUserOrganizer
Definition userOrganizer.h:79
Definition apiFunctionsGraph.cpp:40
UserFeature
Enumeration that defines some feature permissions for a user.
Definition UserModel.h:42
UserRole
Enumeration that defines some user roles.
Definition UserModel.h:33