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)
Useroperator= (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]
Parameters:
user 

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  ) 
Parameters:
user 
Returns:

Member Data Documentation

const unsigned int User::UC_Admin = 1000 [static]

Can edit everything (Machines and users)

const unsigned int User::UC_Doctor = 100 [static]

Can edit patient info

const unsigned int User::UC_Nurse = 0 [static]

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]
Returns:
the name

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Properties
Generated on Tue Sep 13 01:46:10 2011 for MedCenter by  doxygen 1.6.3