akonadi
Akonadi::ContactGroupEditorDialog Class Reference
A dialog for creating or editing a contact group in Akonadi. More...
#include <contactgroupeditordialog.h>
Inherits KDialog.
Public Types | |
enum | Mode { CreateMode, EditMode } |
Signals | |
void | contactGroupStored (const Akonadi::Item &group) |
Public Member Functions | |
ContactGroupEditorDialog (Mode mode, QWidget *parent=0) | |
~ContactGroupEditorDialog () | |
ContactGroupEditor * | editor () const |
void | setContactGroup (const Akonadi::Item &group) |
void | setDefaultAddressBook (const Akonadi::Collection &addressbook) |
Protected Slots | |
virtual void | slotButtonClicked (int button) |
Detailed Description
A dialog for creating or editing a contact group in Akonadi.
This dialog provides a way to create a new contact group or edit an existing contact group in Akonadi.
Example for creating a new contact group:
using namespace Akonadi; ContactGroupEditorDialog *dlg = new ContactGroupEditorDialog( ContactGroupEditorDialog::CreateMode, this ); connect( dlg, SIGNAL( contactGroupStored( const Akonadi::Item& ) ), this, SLOT( contactGroupStored( const Akonadi::Item& ) ) ); dlg->show();
Example for editing an existing contact group:
using namespace Akonadi; const Item contactGroup = ...; ContactGroupEditorDialog *dlg = new ContactGroupEditorDialog( ContactGroupEditorDialog::EditMode, this ); connect( dlg, SIGNAL( contactGroupStored( const Akonadi::Item& ) ), this, SLOT( contactGroupStored( const Akonadi::Item& ) ) ); dlg->setContactGroup( contactGroup ); dlg->show();
- Since:
- 4.4
Definition at line 75 of file contactgroupeditordialog.h.
Member Enumeration Documentation
enum Akonadi::ContactGroupEditorDialog::Mode |
Describes the mode of the contact group editor.
Definition at line 83 of file contactgroupeditordialog.h.
Constructor & Destructor Documentation
Akonadi::ContactGroupEditorDialog::ContactGroupEditorDialog | ( | Mode | mode, |
QWidget * | parent = 0 |
||
) | [explicit] |
Creates a new contact group editor dialog.
- Parameters:
-
mode The mode of the dialog. parent The parent widget of the dialog.
Akonadi::ContactGroupEditorDialog::~ContactGroupEditorDialog | ( | ) |
Destroys the contact group editor dialog.
Member Function Documentation
void Akonadi::ContactGroupEditorDialog::contactGroupStored | ( | const Akonadi::Item & | group | ) | [signal] |
This signal is emitted whenever a contact group was updated or stored.
- Parameters:
-
group The contact group.
ContactGroupEditor* Akonadi::ContactGroupEditorDialog::editor | ( | ) | const |
Returns the ContactGroupEditor that is used by the dialog.
void Akonadi::ContactGroupEditorDialog::setContactGroup | ( | const Akonadi::Item & | group | ) |
Sets the contact group
to edit when in EditMode.
void ContactGroupEditor::setDefaultAddressBook | ( | const Akonadi::Collection & | addressbook | ) |
Sets the addressbook
that shall be selected as default for storage in create mode.
Definition at line 301 of file contactgroupeditor.cpp.
The documentation for this class was generated from the following files: