Class which represents a user. More...
#include <kockpituser.h>
Public Member Functions | |
KockpitUser () | |
Constructor. | |
KockpitUser (objmode unitmode) | |
Constructor. | |
KockpitUser (const QString &commonName, const QString &mail, const QString &tel, const QString &mobile, const QString &icq, const QString &uid, const QString &homeDir, const QString &loginShell, const QString &domain, const QString &sid, const QString &primGrpSid, const QStringList &memberOf, const QString &distName, const QStringList &objectClasses, int shadowLastChange, int shadowMin, int shadowMax, int shadowWarning, int shadowInactive, int shadowExpire, int uidNumber, int gidNumber, int rid) | |
Constructor. | |
virtual | ~KockpitUser () |
Destructor. | |
QString | toQString () const |
Generate output. | |
QString | getDistName () const |
Getter. | |
objtype | getObjType () const |
Getter. | |
objmode | getObjMode () const |
Getter. | |
void | setDistName (const QString &distName) |
Setter. | |
void | setObjType (objtype type) |
Setter. | |
void | setObjMode (objmode unitmode) |
Setter. | |
Properties | |
QString | uid |
The user id of the user. | |
QString | homeDir |
The path to the home directory. | |
QString | loginShell |
The user id of the user. | |
QString | description |
The user id of the user. | |
QString | domain |
The domain of the user. | |
QString | sid |
Samba Sid of the user. | |
QString | primGrpSid |
Sid of the users primary group. | |
QStringList | memberOf |
List which contains the groups of the user. | |
int | shadowLastChange |
The time of password change. | |
int | shadowMin |
Contains the minimum number of days between shadow changes. | |
int | shadowMax |
Contains the maximum number of days a password can be valid. | |
int | shadowWarning |
Contains the number of days before the password expires to warn the user. | |
int | shadowInactive |
Contains the number of days of inactivity that is allowed for the user. | |
int | shadowExpire |
Contains the absolute date to expire the account. | |
int | uidNumber |
The user id number of the user. | |
int | gidNumber |
The gidNumber of the user. | |
int | rid |
The samba rid of the user. | |
QString | distName |
Distinguished name. | |
QStringList | objectClasses |
Object classes. | |
QString | name |
Last name. | |
QString | givenName |
Firstname also called christian name. | |
QString | commonName |
full name | |
QString | |
e-mail address | |
QString | tel |
telephone number | |
QString | mobile |
mobile number | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const KockpitUser &kuser) |
Output. |
Class which represents a user.
This class represents a user in the kockpit application. The inheritance of KockpitAccout, KockpintContact and KockpitBackend Entry is virtual because this class also inherits from QObject. Multiple inheritance in association with QObject is only possible this way. The inheritance of KockpitUnit is normal to make this object static castable.
KockpitUser::KockpitUser | ( | ) |
Constructor.
Object type is setted objtype.
KockpitUser::KockpitUser | ( | objmode | unitmode | ) |
Constructor.
Object type and mode are setted.
unitmode | Object mode. |
KockpitUser::KockpitUser | ( | const QString & | commonName, | |
const QString & | mail, | |||
const QString & | tel, | |||
const QString & | mobile, | |||
const QString & | icq, | |||
const QString & | uid, | |||
const QString & | homeDir, | |||
const QString & | loginShell, | |||
const QString & | domain, | |||
const QString & | sid, | |||
const QString & | primGrpSid, | |||
const QStringList & | memberOf, | |||
const QString & | distName, | |||
const QStringList & | objectClasses, | |||
int | shadowLastChange, | |||
int | shadowMin, | |||
int | shadowMax, | |||
int | shadowWarning, | |||
int | shadowInactive, | |||
int | shadowExpire, | |||
int | uidNumber, | |||
int | gidNumber, | |||
int | rid | |||
) |
Constructor.
commonName | commonName | |
tel | tel | |
mobile | mobile | |
icq | icq | |
uid | uid | |
homeDir | homeDir | |
loginShell | loginShell | |
domain | domain | |
sid | sid | |
primGrpSid | primGrpSid | |
memberOf | memberOf | |
distName | distName | |
objectClasses | objectClasses | |
shadowLastChange | shadowLastChange | |
shadowMin | shadowMin | |
shadowMax | shadowMax | |
shadowWarning | shadowWarning | |
shadowInactive | shadowInactive | |
shadowExpire | shadowExpire | |
uidNumber | uidNumber | |
gidNumber | gidNumber | |
rid | rid |
virtual KockpitUser::~KockpitUser | ( | ) | [inline, virtual] |
Destructor.
QString KockpitUser::getDistName | ( | ) | const [virtual] |
Getter.
Get distinguished name.
Reimplemented from KockpitBackendEntry.
objmode KockpitUser::getObjMode | ( | ) | const [virtual] |
objtype KockpitUser::getObjType | ( | ) | const [virtual] |
void KockpitUser::setDistName | ( | const QString & | distName | ) | [virtual] |
Setter.
Set distinguished name.
distName | Distinguished Name. |
Reimplemented from KockpitBackendEntry.
void KockpitUser::setObjMode | ( | objmode | unitmode | ) | [virtual] |
void KockpitUser::setObjType | ( | objtype | type | ) |
Setter.
Set object type.
type | Object type. |
QString KockpitUser::toQString | ( | ) | const |
Generate output.
This function create a QString which contains all informations about the object. It is only needed for inforamtional output.
Reimplemented from KockpitAccount.
std::ostream& operator<< | ( | std::ostream & | output, | |
const KockpitUser & | kuser | |||
) | [friend] |
Output.
This function is only needed to give out the KockpitUser on STDOUT.
output | Reference to stdout. | |
kuser | Reference to a KockpitUser object. |
QString KockpitUser::commonName [read, write] |
full name
Reimplemented from KockpitContact.
QString KockpitUser::description [read, write] |
The user id of the user.
Reimplemented from KockpitAccount.
QString KockpitUser::distName [read, write] |
Distinguished name.
Reimplemented from KockpitBackendEntry.
QString KockpitUser::domain [read, write] |
The domain of the user.
Reimplemented from KockpitAccount.
int KockpitUser::gidNumber [read, write] |
The gidNumber of the user.
Reimplemented from KockpitAccount.
QString KockpitUser::givenName [read, write] |
Firstname also called christian name.
Reimplemented from KockpitContact.
QString KockpitUser::homeDir [read, write] |
The path to the home directory.
Reimplemented from KockpitAccount.
QString KockpitUser::loginShell [read, write] |
The user id of the user.
Reimplemented from KockpitAccount.
QString KockpitUser::mail [read, write] |
e-mail address
Reimplemented from KockpitContact.
QStringList KockpitUser::memberOf [read, write] |
List which contains the groups of the user.
Reimplemented from KockpitAccount.
QString KockpitUser::mobile [read, write] |
mobile number
Reimplemented from KockpitContact.
QString KockpitUser::name [read, write] |
Last name.
Reimplemented from KockpitContact.
QStringList KockpitUser::objectClasses [read, write] |
Object classes.
Reimplemented from KockpitBackendEntry.
QString KockpitUser::primGrpSid [read, write] |
Sid of the users primary group.
Reimplemented from KockpitAccount.
int KockpitUser::rid [read, write] |
The samba rid of the user.
Reimplemented from KockpitAccount.
int KockpitUser::shadowExpire [read, write] |
Contains the absolute date to expire the account.
Reimplemented from KockpitAccount.
int KockpitUser::shadowInactive [read, write] |
Contains the number of days of inactivity that is allowed for the user.
Reimplemented from KockpitAccount.
int KockpitUser::shadowLastChange [read, write] |
The time of password change.
Reimplemented from KockpitAccount.
int KockpitUser::shadowMax [read, write] |
Contains the maximum number of days a password can be valid.
Reimplemented from KockpitAccount.
int KockpitUser::shadowMin [read, write] |
Contains the minimum number of days between shadow changes.
Reimplemented from KockpitAccount.
int KockpitUser::shadowWarning [read, write] |
Contains the number of days before the password expires to warn the user.
Reimplemented from KockpitAccount.
QString KockpitUser::sid [read, write] |
Samba Sid of the user.
Reimplemented from KockpitAccount.
QString KockpitUser::tel [read, write] |
telephone number
Reimplemented from KockpitContact.
QString KockpitUser::uid [read, write] |
The user id of the user.
Reimplemented from KockpitAccount.
int KockpitUser::uidNumber [read, write] |
The user id number of the user.
Reimplemented from KockpitAccount.