Akonadi Contacts
contacteditordialog.cpp
45 q->setWindowTitle(mode == ContactEditorDialog::CreateMode ? i18nc("@title:window", "New Contact") : i18nc("@title:window", "Edit Contact"));
62 mEditor = new AkonadiContactEditor(mode == ContactEditorDialog::CreateMode ? AkonadiContactEditor::CreateMode : AkonadiContactEditor::EditMode,
66 mEditor = new AkonadiContactEditor(mode == ContactEditorDialog::CreateMode ? AkonadiContactEditor::CreateMode : AkonadiContactEditor::EditMode,
67 displaymode == ContactEditorDialog::FullMode ? AkonadiContactEditor::FullMode : AkonadiContactEditor::VCardMode,
85 QObject::connect(mEditor, &AkonadiContactEditor::contactStored, q, &ContactEditorDialog::contactStored);
141ContactEditorDialog::ContactEditorDialog(Mode mode, Akonadi::AbstractContactEditorWidget *editorWidget, QWidget *parent)
void contactStored(const Akonadi::Item &contact)
This signal is emitted when the contact has been saved back to the storage.
void saveContactInAddressBook()
Save the contact from the editor back to the storage.
Definition contacteditor.cpp:251
void error(const QString &errorMsg)
This signal is emitted when an error occurred during the save.
void setMimeTypeFilter(const QStringList &mimetypes)
void setAccessRightsFilter(Collection::Rights rights)
CanCreateItem
A dialog for creating or editing a contact in Akonadi.
Definition contacteditordialog.h:65
~ContactEditorDialog() override
Destroys the contact editor dialog.
Definition contacteditordialog.cpp:153
ContactEditorDialog(Mode mode, QWidget *parent=nullptr)
Creates a new contact editor dialog with the standard editor widget.
Definition contacteditordialog.cpp:135
void setContact(const Akonadi::Item &contact)
Sets the contact to edit when in EditMode.
Definition contacteditordialog.cpp:158
void error(const QString &errMsg)
This signal is emitted whenever a contact is not updated or stored.
void setDefaultAddressBook(const Akonadi::Collection &addressbook)
Sets the addressbook that shall be selected as default in create mode.
Definition contacteditordialog.cpp:163
void contactStored(const Akonadi::Item &contact)
This signal is emitted whenever a contact was updated or stored.
Akonadi::AkonadiContactEditor * editor() const
Returns the ContactEditor that is used by this dialog.
Definition contacteditordialog.cpp:172
static QString mimeType()
QString i18nc(const char *context, const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
ButtonCode questionTwoActions(QWidget *parent, const QString &text, const QString &title, const KGuiItem &primaryAction, const KGuiItem &secondaryAction, const QString &dontAskAgainName=QString(), Options options=Notify)
QString label(StandardShortcut id)
virtual void reject()
void accepted()
void rejected()
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool isValid() const const
void resize(const QSize &)
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.