DbScript
Public Types | Public Slots | Public Member Functions | Properties | Private Attributes | List of all members
User Class Reference

The User defines the user parameters. The User object can be instantiated in the scripting environment. A list of existing users can be retrieved by calling ControlCentre.users(). A new user may be added by the following: More...

#include <scriptojbects.h>

Inheritance diagram for User:
Inheritance graph
[legend]
Collaboration diagram for User:
Collaboration graph
[legend]

Public Types

enum  UserType {
  RD, EXECUTIVE, COORDINATOR, APPLICATION,
  TD, ARCHIVE, XSHEET, SCAN,
  INK_PAINT, ANIMATOR
}
 

Public Slots

String typeToString (UserType id)
 Convert to a readable string. More...
 

Public Member Functions

 User (const String &user, QObject *parent)
 
 User ()
 
 User (const User &user)
 
 ~User ()
 
String oldUserName () const
 
String name () const
 
void setName (const String &text)
 
String firstName () const
 
void setFirstName (const String &text)
 
String lastName () const
 
void setLastName (const String &text)
 
UserType type () const
 
void setType (UserType)
 

Properties

String name
 name More...
 
String firstName
 first name More...
 
String lastName
 family name More...
 
UserType type
 type which determines permissions. More...
 

Private Attributes

String _oldUserName
 
String _name
 
String _firstName
 
String _lastName
 
UserType _type
 

Detailed Description

The User defines the user parameters. The User object can be instantiated in the scripting environment. A list of existing users can be retrieved by calling ControlCentre.users(). A new user may be added by the following:

var user = new User("Buffy");
user.firstName = "the";
user.lastName = "VampireSlayer";
user.type = UserType.XSHEET;

Member Enumeration Documentation

Enumerator
RD 
EXECUTIVE 
COORDINATOR 
APPLICATION 
TD 
ARCHIVE 
XSHEET 
SCAN 
INK_PAINT 
ANIMATOR 

Constructor & Destructor Documentation

User::User ( const String &  user,
QObject *  parent 
)
User::User ( )
User::User ( const User user)
User::~User ( )

Member Function Documentation

String User::firstName ( ) const
String User::lastName ( ) const
String User::name ( ) const
String User::oldUserName ( ) const
void User::setFirstName ( const String &  text)
void User::setLastName ( const String &  text)
void User::setName ( const String &  text)
void User::setType ( UserType  )
UserType User::type ( ) const
String User::typeToString ( UserType  id)
slot

Convert to a readable string.

Member Data Documentation

String User::_firstName
private
String User::_lastName
private
String User::_name
private
String User::_oldUserName
private
UserType User::_type
private

Property Documentation

String User::firstName
readwriteprivate

first name

String User::lastName
readwriteprivate

family name

String User::name
readwriteprivate

name

UserType User::type
readwriteprivate

type which determines permissions.


The documentation for this class was generated from the following file: