Akonadi Contacts
contacteditor.cpp
47 new ContactEditorWidget(displayMode == AkonadiContactEditor::FullMode ? ContactEditorWidget::FullMode : ContactEditorWidget::VCardMode,
67 void loadContact(const KContacts::Addressee &addr, const Akonadi::ContactMetaDataAkonadi &metaData);
105 auto collectionFetchJob = new Akonadi::CollectionFetchJob(mItem.parentCollection(), Akonadi::CollectionFetchJob::Base);
106 mParent->connect(collectionFetchJob, &Akonadi::CollectionFetchJob::result, mParent, [this](KJob *job) {
157void Akonadi::AkonadiContactEditorPrivate::itemChanged(const Akonadi::Item &item, const QSet<QByteArray> &)
162 dlg->setInformativeText(i18n("The contact has been changed by someone else.\nWhat should be done?"));
164 dlg->addButton(i18nc("@action:button", "Ignore and Overwrite changes"), QMessageBox::RejectRole);
183void Akonadi::AkonadiContactEditorPrivate::loadContact(const KContacts::Addressee &addr, const ContactMetaDataAkonadi &metaData)
188void Akonadi::AkonadiContactEditorPrivate::storeContact(KContacts::Addressee &addr, ContactMetaDataAkonadi &metaData)
200 QObject::connect(mMonitor, &Akonadi::Monitor::itemChanged, mParent, [this](const Akonadi::Item &item, const QSet<QByteArray> &set) {
211Akonadi::AkonadiContactEditor::AkonadiContactEditor(Mode mode, Akonadi::AbstractContactEditorWidget *editorWidget, QWidget *parent)
217Akonadi::AkonadiContactEditor::AkonadiContactEditor(Mode mode, DisplayMode displayMode, QWidget *parent)
void setContactTemplate(const KContacts::Addressee &contact)
Sets a contact that is used as template in create mode.
Definition contacteditor.cpp:305
~AkonadiContactEditor() override
Destroys the contact editor.
void saveContactInAddressBook()
Save the contact from the editor back to the storage.
Definition contacteditor.cpp:251
void loadContact(const Akonadi::Item &contact)
Loads the contact into the editor.
Definition contacteditor.cpp:225
void error(const QString &errorMsg)
This signal is emitted when an error occurred during the save.
AkonadiContactEditor(Mode mode, QWidget *parent=nullptr)
Creates a new contact editor with the standard editor widget.
Definition contacteditor.cpp:205
void setDefaultAddressBook(const Akonadi::Collection &addressbook)
Sets the addressbook which shall be used to store new contacts.
Definition contacteditor.cpp:310
bool isValid() const
Rights rights() const
CanCreateItem
CanChangeItem
void setPayload(const T &p)
Collection & parentCollection()
void setMimeType(const QString &mimeType)
T payload() const
void itemChanged(const Akonadi::Item &item, const QSet< QByteArray > &partIdentifiers)
static Session * defaultSession()
static QString mimeType()
virtual QString errorString() const
int error() const
void result(KJob *job)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
Accepted
AcceptRole
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void setObjectName(QAnyStringView name)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.