ContactEditorWidget
#include <contacteditorwidget.h>
Public Types | |
enum | DisplayMode { FullMode , VCardMode } |
Public Member Functions | |
ContactEditorWidget (DisplayMode displayMode, QWidget *parent) | |
ContactEditorWidget (QWidget *parent=nullptr) | |
~ContactEditorWidget () override | |
bool | hasNoSavedData () const override |
void | loadContact (const KContacts::Addressee &contact, const Akonadi::ContactMetaDataBase &metaData) override |
void | setReadOnly (bool readOnly) override |
void | storeContact (KContacts::Addressee &contact, Akonadi::ContactMetaDataBase &metaData) const override |
Detailed Description
A widget for editing a contact.
Definition at line 28 of file contacteditorwidget.h.
Member Enumeration Documentation
◆ DisplayMode
Enumerator | |
---|---|
FullMode | Show all pages. |
VCardMode | Show just pages with elements stored in vcard. |
Definition at line 32 of file contacteditorwidget.h.
Constructor & Destructor Documentation
◆ ContactEditorWidget() [1/2]
|
explicit |
Creates a new contact editor widget.
- Parameters
-
parent The parent widget.
Definition at line 178 of file contacteditorwidget.cpp.
◆ ContactEditorWidget() [2/2]
ContactEditorWidget::ContactEditorWidget | ( | ContactEditorWidget::DisplayMode | displayMode, |
QWidget * | parent ) |
Definition at line 185 of file contacteditorwidget.cpp.
◆ ~ContactEditorWidget()
|
overridedefault |
Destroys the contact editor widget.
Member Function Documentation
◆ hasNoSavedData()
|
nodiscardoverride |
Definition at line 272 of file contacteditorwidget.cpp.
◆ loadContact()
|
override |
Initializes the fields of the contact editor with the values from a contact
.
Definition at line 194 of file contacteditorwidget.cpp.
◆ setReadOnly()
|
override |
Sets whether the contact in the editor allows the user to edit the contact or not.
Definition at line 248 of file contacteditorwidget.cpp.
◆ storeContact()
|
override |
Stores back the fields of the contact editor into the given contact
.
Definition at line 220 of file contacteditorwidget.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.