Akonadi Contacts

openemailaddressjob.h
1 /*
2  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "akonadi-contact_export.h"
10 
11 #include <KJob>
12 
13 namespace Akonadi
14 {
15 /**
16  * @short A job to open the contact editor for a contact with a given email address.
17  *
18  * The job will check whether a contact with the given email address already
19  * exists in Akonadi. If not, it will add a new contact with the email address
20  * to Akonadi and then opens the contact editor.
21  */
22 class AKONADI_CONTACT_EXPORT OpenEmailAddressJob : public KJob
23 {
24  Q_OBJECT
25 
26 public:
27  /**
28  * Creates a new open email address job.
29  *
30  * @param email The email address to open.
31  * @param parentWidget The widget that will be used as parent for dialog.
32  * @param parent The parent object.
33  */
34  explicit OpenEmailAddressJob(const QString &email, QWidget *parentWidget, QObject *parent = nullptr);
35 
36  /**
37  * Destroys the open email address job.
38  */
39  ~OpenEmailAddressJob() override;
40 
41  /**
42  * Starts the job.
43  */
44  void start() override;
45 
46 private:
47  //@cond PRIVATE
48  class Private;
49  Private *const d;
50  //@endcond
51 };
52 }
53 
A job to open the contact editor for a contact with a given email address.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jun 22 2021 23:08:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.