KockpitAccount Class Reference

Class which represents a POSIX account. More...

#include <kockpitaccount.h>

Inheritance diagram for KockpitAccount:
Inheritance graph
[legend]

Public Member Functions

 KockpitAccount ()
 Standard Constructor.
 KockpitAccount (const QString &uid, const QString &homeDir, const QString &loginShell, const QString &domain, const QString &sid, const QString &primGrpSid, const QStringList &memberOf, int shadowLastChange, int shadowMin, int shadowMax, int shadowWarning, int shadowInactive, int shadowExpire, int uidNumber, int gidNumber, int rid)
 Constructor.
virtual ~KockpitAccount ()
 Destructor.
QString toQString () const
 Generate output.
virtual QString getUid () const
 Getter.
virtual QString getHomeDir () const
 Getter.
virtual QString getLoginShell () const
 Getter.
virtual QString getDescription () const
 Getter.
virtual QString getDomain () const
 Getter.
virtual QString getSid () const
 Getter.
virtual QString getPrimGrpSid () const
 Getter.
virtual QString getAuthTok () const
 Getter.
virtual QStringList getMemberOf () const
 Getter.
virtual int getShadowLastChange () const
 Getter.
virtual int getShadowMin () const
 Getter.
virtual int getShadowMax () const
 Getter.
virtual int getShadowWarning () const
 Getter.
virtual int getShadowInactive () const
 Getter.
virtual int getShadowExpire () const
 Getter.
virtual int getUidNumber () const
 Getter.
virtual int getGidNumber () const
 Getter.
virtual int getRid () const
 Getter.
virtual void setUid (const QString &uid)
 Setter.
virtual void setHomeDir (const QString &homeDir)
 Setter.
virtual void setLoginShell (const QString &loginShell)
 Setter.
virtual void setDescription (const QString &description)
 Setter.
virtual void setDomain (const QString &domain)
 Setter.
virtual void setSid (const QString &sid)
 Setter.
virtual void setPrimGrpSid (const QString &primGrpSid)
 Setter.
virtual void setAuthTok (const QString &authTok)
 Setter.
virtual void setMemberOf (const QStringList &memberof)
 Setter.
virtual void setShadowLastChange (int shadowLastChange)
 Setter.
virtual void setShadowMin (int shadowMin)
 Setter.
virtual void setShadowMax (int shadowMax)
 Setter.
virtual void setShadowWarning (int shadowWarning)
 Setter.
virtual void setShadowInactive (int shadowInactive)
 Setter.
virtual void setShadowExpire (int shadowExpire)
 Setter.
virtual void setUidNumber (int uidNumber)
 Setter.
virtual void setGidNumber (int gidNumber)
 Setter.
virtual void setRid (int rid)
 Setter.

Protected Attributes

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.
QString authTok
 The user id of the user.
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.

Friends

class XMLMapReader
std::ostream & operator<< (std::ostream &output, const KockpitAccount &kacc)
 Output.

Detailed Description

Class which represents a POSIX account.

This class represents a POSIX account.


Constructor & Destructor Documentation

KockpitAccount::KockpitAccount (  ) 

Standard Constructor.

Only initialize int values to zero

KockpitAccount::KockpitAccount ( const QString &  uid,
const QString &  homeDir,
const QString &  loginShell,
const QString &  domain,
const QString &  sid,
const QString &  primGrpSid,
const QStringList &  memberOf,
int  shadowLastChange,
int  shadowMin,
int  shadowMax,
int  shadowWarning,
int  shadowInactive,
int  shadowExpire,
int  uidNumber,
int  gidNumber,
int  rid 
)

Constructor.

Parameters:
uid The user id of the user.
homeDir The path to the home directory.
loginShell Login Shell of the user.
domain Domain of the user.
sid Samba Sid of the user
primGrpSid Sid of the users primary group.
memberOf List which contains the groups of the user.
shadowLastChange The time of password change.
shadowMin Contains the minimum number of days between shadow changes.
shadowMax Contains the maximum number of days a password can be valid.
shadowWarning Contains the number of days before the password expires to warn the user.
shadowInactive Contains the number of days of inactivity that is allowed for the user.
shadowExpire Contains the absolute date to expire the account.
uidNumber The user id number of the user.
gidNumber The gidNumber of the user.
rid The samba rid of the user.
virtual KockpitAccount::~KockpitAccount (  )  [inline, virtual]

Destructor.


Member Function Documentation

QString KockpitAccount::getAuthTok (  )  const [virtual]

Getter.

See also:
authTok
QString KockpitAccount::getDescription (  )  const [virtual]

Getter.

See also:
description
QString KockpitAccount::getDomain (  )  const [virtual]

Getter.

See also:
domain
int KockpitAccount::getGidNumber (  )  const [virtual]

Getter.

See also:
gidNumber
QString KockpitAccount::getHomeDir (  )  const [virtual]

Getter.

See also:
homeDir
QString KockpitAccount::getLoginShell (  )  const [virtual]

Getter.

See also:
loginShell
QStringList KockpitAccount::getMemberOf (  )  const [virtual]

Getter.

See also:
memberOf
QString KockpitAccount::getPrimGrpSid (  )  const [virtual]

Getter.

See also:
primGrpSid
int KockpitAccount::getRid (  )  const [virtual]

Getter.

See also:
rid
int KockpitAccount::getShadowExpire (  )  const [virtual]

Getter.

See also:
shadowExpire
int KockpitAccount::getShadowInactive (  )  const [virtual]

Getter.

See also:
shadowInactive
int KockpitAccount::getShadowLastChange (  )  const [virtual]

Getter.

See also:
shadowLastChange
int KockpitAccount::getShadowMax (  )  const [virtual]

Getter.

See also:
shadowMax
int KockpitAccount::getShadowMin (  )  const [virtual]

Getter.

See also:
shadowMin
int KockpitAccount::getShadowWarning (  )  const [virtual]

Getter.

See also:
shadowWarning
QString KockpitAccount::getSid (  )  const [virtual]

Getter.

See also:
sid
QString KockpitAccount::getUid (  )  const [virtual]

Getter.

See also:
uid
int KockpitAccount::getUidNumber (  )  const [virtual]

Getter.

See also:
uidNumber
void KockpitAccount::setAuthTok ( const QString &  authTok  )  [virtual]

Setter.

See also:
authTok
void KockpitAccount::setDescription ( const QString &  description  )  [virtual]

Setter.

See also:
description
void KockpitAccount::setDomain ( const QString &  domain  )  [virtual]

Setter.

See also:
domain
void KockpitAccount::setGidNumber ( int  gidNumber  )  [virtual]

Setter.

See also:
gidNumber
void KockpitAccount::setHomeDir ( const QString &  homeDir  )  [virtual]

Setter.

See also:
homeDir
void KockpitAccount::setLoginShell ( const QString &  loginShell  )  [virtual]

Setter.

See also:
loginShell
void KockpitAccount::setMemberOf ( const QStringList &  memberof  )  [virtual]

Setter.

See also:
member
void KockpitAccount::setPrimGrpSid ( const QString &  primGrpSid  )  [virtual]

Setter.

See also:
primGrpSid
void KockpitAccount::setRid ( int  rid  )  [virtual]

Setter.

See also:
rid
void KockpitAccount::setShadowExpire ( int  shadowExpire  )  [virtual]

Setter.

See also:
shadowExpire
void KockpitAccount::setShadowInactive ( int  shadowInactive  )  [virtual]

Setter.

See also:
shadowInactive
void KockpitAccount::setShadowLastChange ( int  shadowLastChange  )  [virtual]

Setter.

See also:
shadowLastChange
void KockpitAccount::setShadowMax ( int  shadowMax  )  [virtual]

Setter.

See also:
shadowMax
void KockpitAccount::setShadowMin ( int  shadowMin  )  [virtual]

Setter.

See also:
shadowMin
void KockpitAccount::setShadowWarning ( int  shadowWarning  )  [virtual]

Setter.

See also:
shadowWarning
void KockpitAccount::setSid ( const QString &  sid  )  [virtual]

Setter.

See also:
sid
void KockpitAccount::setUid ( const QString &  uid  )  [virtual]

Setter.

See also:
uid
void KockpitAccount::setUidNumber ( int  uidNumber  )  [virtual]

Setter.

See also:
uidNumber
QString KockpitAccount::toQString (  )  const

Generate output.

This function create a QString which contains all informations about the object. It is only needed for inforamtional output.

Reimplemented in KockpitUser.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const KockpitAccount kacc 
) [friend]

Output.

This function is only needed to give out the KockpitAccount on STDOUT.

Parameters:
output reference to stdout.
kacc reference to an AttributeMap object.
friend class XMLMapReader [friend]

Field Documentation

QString KockpitAccount::authTok [protected]

The user id of the user.

QString KockpitAccount::description [protected]

The user id of the user.

Reimplemented in KockpitUser.

QString KockpitAccount::domain [protected]

The domain of the user.

Reimplemented in KockpitUser.

int KockpitAccount::gidNumber [protected]

The gidNumber of the user.

Reimplemented in KockpitUser.

QString KockpitAccount::homeDir [protected]

The path to the home directory.

Reimplemented in KockpitUser.

QString KockpitAccount::loginShell [protected]

The user id of the user.

Reimplemented in KockpitUser.

QStringList KockpitAccount::memberOf [protected]

List which contains the groups of the user.

Reimplemented in KockpitUser.

QString KockpitAccount::primGrpSid [protected]

Sid of the users primary group.

Reimplemented in KockpitUser.

int KockpitAccount::rid [protected]

The samba rid of the user.

Reimplemented in KockpitUser.

Contains the absolute date to expire the account.

Reimplemented in KockpitUser.

Contains the number of days of inactivity that is allowed for the user.

Reimplemented in KockpitUser.

The time of password change.

Reimplemented in KockpitUser.

int KockpitAccount::shadowMax [protected]

Contains the maximum number of days a password can be valid.

Reimplemented in KockpitUser.

int KockpitAccount::shadowMin [protected]

Contains the minimum number of days between shadow changes.

Reimplemented in KockpitUser.

Contains the number of days before the password expires to warn the user.

Reimplemented in KockpitUser.

QString KockpitAccount::sid [protected]

Samba Sid of the user.

Reimplemented in KockpitUser.

QString KockpitAccount::uid [protected]

The user id of the user.

Reimplemented in KockpitUser.

int KockpitAccount::uidNumber [protected]

The user id number of the user.

Reimplemented in KockpitUser.


The documentation for this class was generated from the following files:
Generated on Wed Mar 24 09:58:14 2010 for kockpit by  doxygen 1.6.3