Akonadi Contacts
openemailaddressjob.cpp
24 OpenEmailAddressJobPrivate(OpenEmailAddressJob *qq, const QString &emailString, QWidget *parentWidget)
46 QPointer<Akonadi::ContactEditorDialog> dlg = new Akonadi::ContactEditorDialog(Akonadi::ContactEditorDialog::EditMode, mParentWidget);
74 QPointer<Akonadi::ContactEditorDialog> dlg = new Akonadi::ContactEditorDialog(Akonadi::ContactEditorDialog::EditMode, mParentWidget);
89OpenEmailAddressJob::OpenEmailAddressJob(const QString &email, QWidget *parentWidget, QObject *parent)
102 searchJob->setQuery(Akonadi::ContactSearchJob::Email, d->mEmail.toLower(), Akonadi::ContactSearchJob::ExactMatch);
A job to add a new contact with a given email address to Akonadi.
Definition addemailaddressjob.h:28
Akonadi::Item contact() const
Returns the item that represents the new contact.
Definition addemailaddressjob.cpp:284
A dialog for creating or editing a contact in Akonadi.
Definition contacteditordialog.h:65
Job that searches for contacts in the Akonadi storage.
Definition contactsearchjob.h:69
void setQuery(Criterion criterion, const QString &value, Match match=ExactMatch)
Sets the criterion and value for the search with match.
Definition contactsearchjob.cpp:52
@ ExactMatch
The result must match exactly the pattern (case sensitive).
Definition contactsearchjob.h:102
void setLimit(int limit)
Sets a limit on how many results will be returned by this search job.
Definition contactsearchjob.cpp:74
Item::List items() const
A job to open the contact editor for a contact with a given email address.
Definition openemailaddressjob.h:27
OpenEmailAddressJob(const QString &email, QWidget *parentWidget, QObject *parent=nullptr)
Creates a new open email address job.
Definition openemailaddressjob.cpp:89
~OpenEmailAddressJob() override
Destroys the open email address job.
static void parseEmailAddress(const QString &rawEmail, QString &fullName, QString &email)
void setErrorText(const QString &errorText)
void emitResult()
int error() const
void result(KJob *job)
void setError(int errorCode)
QString errorText() const
A widget for editing the display name of a contact.
T & first()
bool isEmpty() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
This file is part of the KDE documentation.
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
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.