Akonadi Contacts
contacteditorwidget.cpp
32 ContactEditorWidgetPrivate(ContactEditorWidget::DisplayMode displayMode, ContactEditorWidget *parent)
114 mTabWidget->addTab(mPersonalEditorWidget, i18nc("@title:tab Personal properties of a contact", "Personal"));
143 QDirIterator it(dir + QLatin1String("/pim" QT_STRINGIFY(QT_VERSION_MAJOR) "/contacteditor/editorpageplugins"), QDir::Files);
151 ContactEditor::ContactEditorPagePlugin *plugin = qobject_cast<ContactEditor::ContactEditorPagePlugin *>(loader.instance());
165 QString ContactEditorWidgetPrivate::loadCustom(const KContacts::Addressee &contact, const QString &key) const
170 void ContactEditorWidgetPrivate::storeCustom(KContacts::Addressee &contact, const QString &key, const QString &value) const
186 ContactEditorWidget::ContactEditorWidget(ContactEditorWidget::DisplayMode displayMode, QWidget *parent)
195 void ContactEditorWidget::loadContact(const KContacts::Addressee &contact, const ContactEditor::ContactMetaDataBase &metaData)
208 d->mGeneralInfoWidget->setDisplayType((DisplayNameEditWidget::DisplayType)metaData.displayNameMode());
221 void ContactEditorWidget::storeContact(KContacts::Addressee &contact, ContactEditor::ContactMetaDataBase &metaData) const
virtual void setReadOnly(bool readOnly)=0
This method is called to set the editor widget readOnly.
QString custom(const QString &app, const QString &name) const
void storeContact(KContacts::Addressee &contact, ContactEditor::ContactMetaDataBase &metaData) const override
Stores back the fields of the contact editor into the given contact.
Definition: contacteditorwidget.cpp:221
ContactEditorWidget(QWidget *parent=nullptr)
Creates a new contact editor widget.
Definition: contacteditorwidget.cpp:179
Files
QString note() const
~ContactEditorWidget() override
Destroys the contact editor widget.
void loadContact(const KContacts::Addressee &contact, const ContactEditor::ContactMetaDataBase &metaData) override
Initializes the fields of the contact editor with the values from a contact.
Definition: contacteditorwidget.cpp:195
QStringList libraryPaths()
virtual void storeContact(KContacts::Addressee &contact) const =0
This method is called to store the data from the editor widget into contact.
void setAcceptRichText(bool accept)
The base class for custom ContactEditor page plugins.
Definition: contacteditorpageplugin.h:26
bool isEmpty() const const
void setReadOnly(bool readOnly) override
Sets whether the contact in the editor allows the user to edit the contact or not.
Definition: contacteditorwidget.cpp:249
void setNote(const QString ¬e)
void insertCustom(const QString &app, const QString &name, const QString &value)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void removeCustom(const QString &app, const QString &name)
virtual void loadContact(const KContacts::Addressee &contact)=0
This method is called to fill the editor widget with the data from contact.
virtual QString title() const =0
Returns the i18n'd page title.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.