Akonadi::AddEmailAddressJob Class
A job to add a new contact with a given email address to Akonadi. More...
| Header: | #include <Akonadi/AddEmailAddressJob> |
| CMake: | find_package(KPim6AkonadiContactWidgets REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiContactWidgets) |
Public Functions
| AddEmailAddressJob(const QString &email, QWidget *parentWidget, QObject *parent = nullptr) | |
| virtual | ~AddEmailAddressJob() override |
| Akonadi::Item | contact() const |
Reimplemented Public Functions
| virtual void | start() override |
Signals
| void | successMessage(const QString &message) |
Detailed Description
The job will check whether a contact with the given email address already exists in Akonadi and inform the user about it, if it does not exist yet, a new contact is added.
Member Function Documentation
[explicit] AddEmailAddressJob::AddEmailAddressJob(const QString &email, QWidget *parentWidget, QObject *parent = nullptr)
Creates a new add email address job.
email The email address. parentWidget The widget that will be used as parent for dialog. parent The parent object.
[override virtual noexcept] AddEmailAddressJob::~AddEmailAddressJob()
Destroys the add email address job.
Akonadi::Item AddEmailAddressJob::contact() const
Returns the item that represents the new contact.
[override virtual] void AddEmailAddressJob::start()
Starts the job.