Control Center
Scripting Interface Documentation
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...

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...
 

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 = User.XSHEET;

Member Enumeration Documentation

◆ UserType

Enumerator
RD 
EXECUTIVE 
COORDINATOR 
APPLICATION 
TD 
ARCHIVE 
XSHEET 
SCAN 
INK_PAINT 
ANIMATOR 

Constructor & Destructor Documentation

◆ User() [1/3]

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

◆ User() [2/3]

User::User ( )

◆ User() [3/3]

User::User ( const User user)

◆ ~User()

User::~User ( )

Member Function Documentation

◆ firstName()

String User::firstName ( ) const

◆ lastName()

String User::lastName ( ) const

◆ name()

String User::name ( ) const

◆ oldUserName()

String User::oldUserName ( ) const

◆ setFirstName()

void User::setFirstName ( const String &  text)

◆ setLastName()

void User::setLastName ( const String &  text)

◆ setName()

void User::setName ( const String &  text)

◆ setType()

void User::setType ( UserType  )

◆ type()

UserType User::type ( ) const

◆ typeToString

String User::typeToString ( UserType  id)
slot

Convert to a readable string.

Property Documentation

◆ firstName

String User::firstName
readwrite

first name

◆ lastName

String User::lastName
readwrite

family name

◆ name

String User::name
readwrite

name

◆ type

UserType User::type
readwrite

type which determines permissions.