Akonadi::OpenEmailAddressJob Class
A job to open the contact editor for a contact with a given email address. More...
| Header: | #include <Akonadi/OpenEmailAddressJob> |
| CMake: | find_package(KPim6AkonadiContactWidgets REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiContactWidgets) |
Public Functions
| OpenEmailAddressJob(const QString &email, QWidget *parentWidget, QObject *parent = nullptr) | |
| virtual | ~OpenEmailAddressJob() override |
Reimplemented Public Functions
| virtual void | start() override |
Detailed Description
The job will check whether a contact with the given email address already exists in Akonadi. If not, it will add a new contact with the email address to Akonadi and then opens the contact editor.
Member Function Documentation
[explicit] OpenEmailAddressJob::OpenEmailAddressJob(const QString &email, QWidget *parentWidget, QObject *parent = nullptr)
Creates a new open email address job.
email The email address to open. parentWidget The widget that will be used as parent for dialog. parent The parent object.
[override virtual noexcept] OpenEmailAddressJob::~OpenEmailAddressJob()
Destroys the open email address job.
[override virtual] void OpenEmailAddressJob::start()
Starts the job.