akonadi
#include <contactgroupeditor.h>
Inherits QWidget.
Public Types | |
enum | Mode { CreateMode, EditMode } |
Public Slots | |
void | loadContactGroup (const Akonadi::Item &group) |
bool | saveContactGroup () |
Signals | |
void | contactGroupStored (const Akonadi::Item &group) |
void | error (const QString &errorMsg) |
Public Member Functions | |
ContactGroupEditor (Mode mode, QWidget *parent=0) | |
virtual | ~ContactGroupEditor () |
void | groupNameIsValid (bool isValid) |
void | setContactGroupTemplate (const KABC::ContactGroup &group) |
void | setDefaultAddressBook (const Akonadi::Collection &addressbook) |
Detailed Description
An widget to edit contact groups in Akonadi.
This widget provides a way to create a new contact group or edit an existing contact group in Akonadi.
Example for creating a new contact group:
Example for editing an existing contact group:
- Since
- 4.4
Definition at line 82 of file contactgroupeditor.h.
Member Enumeration Documentation
Describes the mode of the contact group editor.
Enumerator | |
---|---|
CreateMode |
Creates a new contact group. |
EditMode |
Edits an existing contact group. |
Definition at line 90 of file contactgroupeditor.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new contact group editor.
- Parameters
-
mode The mode of the editor. parent The parent widget of the editor.
Definition at line 210 of file contactgroupeditor.cpp.
|
virtual |
Destroys the contact group editor.
Definition at line 233 of file contactgroupeditor.cpp.
Member Function Documentation
|
signal |
This signal is emitted when the contact group
has been saved back to the storage.
|
signal |
This signal is emitted when an error occurred during the save.
errorMsg
The error message.
|
slot |
Loads the contact group
into the editor.
Definition at line 238 of file contactgroupeditor.cpp.
|
slot |
Saves the contact group from the editor back to the storage.
- Returns
true
if the contact group has been saved successfully, false otherwise.
Definition at line 256 of file contactgroupeditor.cpp.
void ContactGroupEditor::setContactGroupTemplate | ( | const KABC::ContactGroup & | group | ) |
Sets a contact group
that is used as template in create mode.
The fields of the editor will be prefilled with the content of the group.
Definition at line 310 of file contactgroupeditor.cpp.
void ContactGroupEditor::setDefaultAddressBook | ( | const Akonadi::Collection & | addressbook | ) |
Sets the addressbook
which shall be used to store new contact groups.
Definition at line 317 of file contactgroupeditor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:48 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.