Akonadi Contacts

addcontactjob.h
1 /*
2  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef ADDCONTACTJOB_H
8 #define ADDCONTACTJOB_H
9 
10 #include "akonadi-contact_export.h"
11 
12 #include <KJob>
13 
14 namespace KContacts {
15 class Addressee;
16 }
17 
18 namespace Akonadi {
19 class Collection;
26 class AKONADI_CONTACT_EXPORT AddContactJob : public KJob
27 {
28  Q_OBJECT
29 
30 public:
41  AddContactJob(const KContacts::Addressee &contact, QWidget *parentWidget, QObject *parent = nullptr);
42 
50  AddContactJob(const KContacts::Addressee &contact, const Akonadi::Collection &collection, QObject *parent = nullptr);
51 
55  ~AddContactJob() override;
56 
60  void start() override;
61 
62  void showMessageBox(bool b);
63 
64 private:
65  //@cond PRIVATE
66  class Private;
67  Private *const d;
68  //@endcond
69 };
70 }
71 
72 #endif
A job to add a new contact to Akonadi.
Definition: addcontactjob.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Sep 18 2020 23:07:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.