Akonadi Contacts
contacteditorwidget.cpp
31 ContactEditorWidgetPrivate(ContactEditorWidget::DisplayMode displayMode, ContactEditorWidget *parent)
113 mTabWidget->addTab(mPersonalEditorWidget, i18nc("@title:tab Personal properties of a contact", "Personal"));
150 Akonadi::ContactEditorPagePlugin *plugin = qobject_cast<Akonadi::ContactEditorPagePlugin *>(loader.instance());
164QString ContactEditorWidgetPrivate::loadCustom(const KContacts::Addressee &contact, const QString &key) const
169void ContactEditorWidgetPrivate::storeCustom(KContacts::Addressee &contact, const QString &key, const QString &value) const
185ContactEditorWidget::ContactEditorWidget(ContactEditorWidget::DisplayMode displayMode, QWidget *parent)
194void ContactEditorWidget::loadContact(const KContacts::Addressee &contact, const Akonadi::ContactMetaDataBase &metaData)
220void ContactEditorWidget::storeContact(KContacts::Addressee &contact, Akonadi::ContactMetaDataBase &metaData) const
The base class for custom ContactEditor page plugins.
Definition contacteditorpageplugin.h:27
virtual void loadContact(const KContacts::Addressee &contact)=0
This method is called to fill the editor widget with the data from contact.
virtual void setReadOnly(bool readOnly)=0
This method is called to set the editor widget readOnly.
virtual void storeContact(KContacts::Addressee &contact) const =0
This method is called to store the data from the editor widget into contact.
virtual QString title() const =0
Returns the i18n'd page title.
~ContactEditorWidget() override
Destroys the contact editor widget.
void setReadOnly(bool readOnly) override
Sets whether the contact in the editor allows the user to edit the contact or not.
Definition contacteditorwidget.cpp:248
void storeContact(KContacts::Addressee &contact, Akonadi::ContactMetaDataBase &metaData) const override
Stores back the fields of the contact editor into the given contact.
Definition contacteditorwidget.cpp:220
void loadContact(const KContacts::Addressee &contact, const Akonadi::ContactMetaDataBase &metaData) override
Initializes the fields of the contact editor with the values from a contact.
Definition contacteditorwidget.cpp:194
ContactEditorWidget(QWidget *parent=nullptr)
Creates a new contact editor widget.
Definition contacteditorwidget.cpp:178
void insertCustom(const QString &app, const QString &name, const QString &value)
QString custom(const QString &app, const QString &name) const
QString note() const
void removeCustom(const QString &app, const QString &name)
void setNote(const QString ¬e)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QStringList libraryPaths()
Files
void append(QList< T > &&value)
void clear()
bool isEmpty() const const
int addTab(QWidget *page, const QIcon &icon, const QString &label)
void setAcceptRichText(bool accept)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.