#include <contact.h>
Public Member Functions | |
Contact (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 | init (const QList< KockpitUnitMap * > *, const QList< KockpitUnitMap * > *, KockpitValidator *) |
Initialize. | |
void | update (const QList< KockpitUnitMap * > *, const QList< KockpitUnitMap * > *) |
Refresh. | |
void | deleteEntry (KockpitUser *) |
Delete attributes. | |
void | deleteEntry (KockpitGroup *) |
Delete attributes. | |
void | writeAdditional (QList< KockpitGroup * > &, wraddmod) |
Write additional. | |
void | writeAdditional (QList< KockpitUser * > &, wraddmod) |
Write additional. |
Contact plugin.
This class represents the plugin to manage contact attributes.
Contact::Contact | ( | QWidget * | parent = 0 |
) |
void Contact::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.
kgrp | The actual group chosen by the user |
Implements KockpitIface.
void Contact::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.
kuser | The actual user chosen by the user |
Implements KockpitIface.
void Contact::deleteEntry | ( | KockpitGroup * | kgrp | ) | [inline, 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).
kgrp | The actual group chosen by the user |
Implements KockpitIface.
void Contact::deleteEntry | ( | KockpitUser * | kuser | ) | [inline, 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).
kuser | The actual user chosen by the user |
Implements KockpitIface.
QWidget * Contact::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.
Implements KockpitIface.
QString Contact::getName | ( | ) | [virtual] |
Get name.
This function must return the name of the plugin and will be used as tab label.
Implements KockpitIface.
QWidget * Contact::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.
Implements KockpitIface.
void Contact::init | ( | const QList< KockpitUnitMap * > * | kumap, | |
const QList< KockpitUnitMap * > * | kgmap, | |||
KockpitValidator * | val | |||
) | [inline, 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.
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 Contact::showAttributes | ( | KockpitGroup * | kgrp | ) | [virtual] |
Show attributes.
This function is called by the main application. It should be used to diplay attributes in the formular.
kgrp | The actual group chosen by the user |
Implements KockpitIface.
void Contact::showAttributes | ( | KockpitUser * | kuser | ) | [virtual] |
Show attributes.
This function is called by the main application. It should be used to diplay attributes in the formular.
kuser | The actual user chosen by the user |
Implements KockpitIface.
void Contact::update | ( | const QList< KockpitUnitMap * > * | kumap, | |
const QList< KockpitUnitMap * > * | kgmap | |||
) | [inline, 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.
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 Contact::writeAdditional | ( | QList< KockpitUser * > & | kusrl, | |
wraddmod | mod | |||
) | [inline, 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.
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 Contact::writeAdditional | ( | QList< KockpitGroup * > & | kgrpl, | |
wraddmod | mod | |||
) | [inline, 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.
kgrpl | Refernce to group list from the main application. | |
mod | This Variable is needed to determine the intension of the additional writing. |
Implements KockpitIface.