Posix Class Reference

POSIX plugin. More...

#include <posix.h>

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

Public Member Functions

 Posix (QWidget *parent=0)
QString getName ()
 Get name.
QWidget * getUserWidget ()
 Get Widget.
QWidget * getGroupWidget ()
 Get Widget.
void showAttributes (KockpitUser *kuser)
 Show attributes.
void assignAttributes (KockpitUser *kuser)
 Assign attributes.
void showAttributes (KockpitGroup *kgrp)
 Show attributes.
void assignAttributes (KockpitGroup *kgrp)
 Assign attributes.
void deleteEntry (KockpitUser *)
 Delete attributes.
void deleteEntry (KockpitGroup *)
 Delete attributes.
void writeAdditional (QList< KockpitGroup * > &kgrpl, wraddmod)
 Write additional.
void writeAdditional (QList< KockpitUser * > &kusr, wraddmod)
 Write additional.
void init (const QList< KockpitUnitMap * > *kumap, const QList< KockpitUnitMap * > *kgmap, KockpitValidator *val)
 Initialize.
void update (const QList< KockpitUnitMap * > *kumap, const QList< KockpitUnitMap * > *kgmap)
 Refresh.

Private Slots

void changeGroupMembershipForUser (QListWidgetItem *widget)
void changeUserMembershipForGroup (QListWidgetItem *widget)
void dateTimeEditShadowExpireActivation (bool state)
void setPrimaryGroup (int index)
void chAuthTok ()

Private Member Functions

void resetListWidgetItems (QListWidget *list)

Private Attributes

const QList< KockpitUnitMap * > * kumap
const QList< KockpitUnitMap * > * kgmap
KockpitUserselectedUser
KockpitGroupselectedGroup
KockpitValidatorval

Detailed Description

POSIX plugin.

This class represents the plugin to manage posix attributes.


Constructor & Destructor Documentation

Posix::Posix ( QWidget *  parent = 0  ) 

Member Function Documentation

void Posix::assignAttributes ( KockpitGroup kgrp  )  [virtual]

Assign attributes.

This function is called by the main application. It should be used to assign values which are entered by the user in the formular to the current KockpitGroup object.

Parameters:
kgrp The actual group chosen by the user

Implements KockpitIface.

void Posix::assignAttributes ( KockpitUser kuser  )  [virtual]

Assign attributes.

This function is called by the main application. It should be used to assign values which are entered by the user in the formular to the current KockpitUser object.

Parameters:
kuser The actual user chosen by the user

Implements KockpitIface.

void Posix::changeGroupMembershipForUser ( QListWidgetItem *  widget  )  [private, slot]
void Posix::changeUserMembershipForGroup ( QListWidgetItem *  widget  )  [private, slot]
void Posix::chAuthTok (  )  [private, slot]
void Posix::dateTimeEditShadowExpireActivation ( bool  state  )  [private, slot]
void Posix::deleteEntry ( KockpitGroup kgrp  )  [virtual]

Delete attributes.

This function is called by the main application. It should be used to delete entries. This approach only make sense if the plugin has an own datasource (f.e. a relational database).

Parameters:
kgrp The actual group chosen by the user

Implements KockpitIface.

void Posix::deleteEntry ( KockpitUser kuser  )  [virtual]

Delete attributes.

This function is called by the main application. It should be used to delete entries. This approach only make sense if the plugin has an own datasource (f.e. a relational database).

Parameters:
kuser The actual user chosen by the user

Implements KockpitIface.

QWidget * Posix::getGroupWidget (  )  [virtual]

Get Widget.

This function must return a pointer to a widget which will be displayed as a tab subordinated to the group main tab.

Returns:
QWidget* A poinger to the group tab.

Implements KockpitIface.

QString Posix::getName (  )  [virtual]

Get name.

This function must return the name of the plugin and will be used as tab label.

Implements KockpitIface.

QWidget * Posix::getUserWidget (  )  [virtual]

Get Widget.

This function must return a pointer to a widget which will be displayed as a Tab subordinated to the user main tab.

Returns:
QWidget* A pointer to the user tab.

Implements KockpitIface.

void Posix::init ( const QList< KockpitUnitMap * > *  kumap,
const QList< KockpitUnitMap * > *  kgmap,
KockpitValidator val 
) [virtual]

Initialize.

This function is the first function which is called to initialize the plugin. If a plugin need to manage a user or group list by itself it can access these lists via the giben pointers. A pointer to the validator is already handed to the plugin to make it possible to validate the values changed from the plugin.

Parameters:
kumap Pointer to user (in KockpitUnitMap encapsulated KockpitUser) list from the main application.
kgmap Pointer to group (in KockpitUnitMap encapsulated KockpitGroup) list from the main application.
val Pointer to validator from the main application.

Implements KockpitIface.

void Posix::resetListWidgetItems ( QListWidget *  list  )  [private]
void Posix::setPrimaryGroup ( int  index  )  [private, slot]
void Posix::showAttributes ( KockpitGroup kgrp  )  [virtual]

Show attributes.

This function is called by the main application. It should be used to diplay attributes in the formular.

Parameters:
kgrp The actual group chosen by the user

Implements KockpitIface.

void Posix::showAttributes ( KockpitUser kuser  )  [virtual]

Show attributes.

This function is called by the main application. It should be used to diplay attributes in the formular.

Parameters:
kuser The actual user chosen by the user

Implements KockpitIface.

void Posix::update ( const QList< KockpitUnitMap * > *  kumap,
const QList< KockpitUnitMap * > *  kgmap 
) [virtual]

Refresh.

This function is called from the main application in order to refresh the user or group list. If the plugin need to react to this action, this function has to be implemented.

Parameters:
kumap Pointer to user (in KockpitUnitMap encapsulated KockpitUser) list from the main application.
kgmap Pointer to group (in KockpitUnitMap encapsulated KockpitGroup) list from the main application.

Implements KockpitIface.

void Posix::writeAdditional ( QList< KockpitUser * > &  kusrl,
wraddmod  mod 
) [virtual]

Write additional.

This function has a very special task. Sometimes it is necessarry to change user attributes after group attributes has been changed. For this use case this function has to bee implemented. This Function is called after writing an entry into the LDAP Backend and before deleting an entry.

Parameters:
kusrl Refernce to group list from the main application.
mod This Variable is needed to determine the intension of the additional writing.

Implements KockpitIface.

void Posix::writeAdditional ( QList< KockpitGroup * > &  kgrpl,
wraddmod  mod 
) [virtual]

Write additional.

This function has a very special task. Sometimes it is necessarry to change group attributes after user attributes has been changed. For this use case this function has to bee implemented. This Function is called after writing an entry into the LDAP Backend and before deleting an entry.

Parameters:
kgrpl Refernce to group list from the main application.
mod This Variable is needed to determine the intension of the additional writing.

Implements KockpitIface.


Field Documentation

const QList<KockpitUnitMap*>* Posix::kgmap [private]
const QList<KockpitUnitMap*>* Posix::kumap [private]

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