akonadi/contact
#include <contacteditor.h>
Inherits QWidget.
Public Types | |
enum | DisplayMode { FullMode, VCardMode } |
enum | Mode { CreateMode, EditMode } |
Public Slots | |
void | loadContact (const Akonadi::Item &contact) |
bool | saveContact () |
Signals | |
void | contactStored (const Akonadi::Item &contact) |
void | error (const QString &errorMsg) |
Public Member Functions | |
ContactEditor (Mode mode, QWidget *parent=0) | |
ContactEditor (Mode mode, AbstractContactEditorWidget *editorWidget, QWidget *parent=0) | |
ContactEditor (Mode mode, DisplayMode displayMode, QWidget *parent=0) | |
virtual | ~ContactEditor () |
KABC::Addressee | contact () |
void | setContactTemplate (const KABC::Addressee &contact) |
void | setDefaultAddressBook (const Akonadi::Collection &addressbook) |
Detailed Description
An widget to edit contacts in Akonadi.
This widget provides a way to create a new contact or edit an existing contact in Akonadi.
Example for creating a new contact:
Example for editing an existing contact:
- Since
- 4.4
Definition at line 83 of file contacteditor.h.
Member Enumeration Documentation
Describes the mode of the editor.
Enumerator | |
---|---|
CreateMode |
Creates a new contact. |
EditMode |
Edits an existing contact. |
Definition at line 91 of file contacteditor.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new contact editor with the standard editor widget.
- Parameters
-
mode The mode of the editor. parent The parent widget of the editor.
Definition at line 203 of file contacteditor.cpp.
ContactEditor::ContactEditor | ( | Mode | mode, |
AbstractContactEditorWidget * | editorWidget, | ||
QWidget * | parent = 0 |
||
) |
Creates a new contact editor with a custom editor widget.
- Parameters
-
mode The mode of the editor. editorWidget The contact editor widget that shall be used for editing. parent The parent widget of the editor.
Definition at line 208 of file contacteditor.cpp.
ContactEditor::ContactEditor | ( | Mode | mode, |
DisplayMode | displayMode, | ||
QWidget * | parent = 0 |
||
) |
Creates a new contact editor dialog with a custom editor widget.
- Parameters
-
mode The mode of the dialog. editorWidget The contact editor widget that shall be used for editing. parent The parent widget of the dialog.
- Since
- 4.10
Definition at line 213 of file contacteditor.cpp.
|
virtual |
Destroys the contact editor.
Definition at line 219 of file contacteditor.cpp.
Member Function Documentation
KABC::Addressee ContactEditor::contact | ( | ) |
|
signal |
This signal is emitted when the contact
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
into the editor.
Definition at line 224 of file contacteditor.cpp.
|
slot |
Saves the contact from the editor back to the storage.
Definition at line 248 of file contacteditor.cpp.
void ContactEditor::setContactTemplate | ( | const KABC::Addressee & | contact | ) |
Sets a contact
that is used as template in create mode.
The fields of the editor will be prefilled with the content of the contact.
Definition at line 301 of file contacteditor.cpp.
void ContactEditor::setDefaultAddressBook | ( | const Akonadi::Collection & | addressbook | ) |
Sets the addressbook
which shall be used to store new contacts.
Definition at line 306 of file contacteditor.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:28:44 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.