User Class Reference
List of all members.
Public Member Functions |
| User () |
| Creates an invalid user.
|
| User (const QString &name, const unsigned int category, bool online) |
| Creates a user with the given information.
|
| User (const User &user) |
User & | operator= (const User &user) |
const QString & | name () const |
unsigned int | category () const |
bool | isOnline () const |
bool | isValid () const |
| Gets if the current user is valid.
|
Static Public Attributes |
static const unsigned int | UC_Nurse = 0 |
static const unsigned int | UC_Doctor = 100 |
static const unsigned int | UC_Admin = 1000 |
Properties |
QString | name |
int | category |
bool | isOnline |
| Gets if the user is currently connected.
|
Constructor & Destructor Documentation
User::User |
( |
const QString & |
name, |
|
|
const unsigned int |
category, |
|
|
bool |
online | |
|
) |
| | [inline] |
Creates a user with the given information.
- Parameters:
-
| name | the name of the new User |
| category | |
| online | |
User::User |
( |
const User & |
user |
) |
[inline] |
Member Function Documentation
bool User::isValid |
( |
|
) |
const [inline] |
Gets if the current user is valid.
- Returns:
- true if the user is valid
User & User::operator= |
( |
const User & |
user |
) |
|
Member Data Documentation
Can edit everything (Machines and users)
Nurse have only read access
Property Documentation
unsigned int User::category [read] |
- Returns:
- the user category (or rights)
bool User::isOnline [read] |
Gets if the user is currently connected.
- Returns:
- true if the user is connected
const QString & User::name [read] |
The documentation for this class was generated from the following files:
- Sources/Types/User.h
- Sources/Types/User.cpp