Kgapi

contactsgroupcreatejob.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef LIBKGAPI2_CONTACTSGROUPCREATEJOB_H
10 #define LIBKGAPI2_CONTACTSGROUPCREATEJOB_H
11 
12 #include "createjob.h"
13 #include "kgapicontacts_export.h"
14 
15 namespace KGAPI2 {
16 
24 class KGAPICONTACTS_EXPORT ContactsGroupCreateJob : public KGAPI2::CreateJob
25 {
26  Q_OBJECT
27 
28  public:
29 
38  explicit ContactsGroupCreateJob(const ContactsGroupsList &groups,
39  const AccountPtr &account,
40  QObject* parent = nullptr);
41 
50  explicit ContactsGroupCreateJob(const ContactsGroupPtr &group,
51  const AccountPtr &account,
52  QObject* parent = nullptr);
53 
57  ~ContactsGroupCreateJob() override;
58 
59  protected:
60 
64  void start() override;
65 
72  ObjectsList handleReplyWithItems(const QNetworkReply *reply,
73  const QByteArray& rawData) override;
74 
75  private:
76  class Private;
77  Private * const d;
78  friend class Private;
79 
80 };
81 
82 } // namespace KGAPI2
83 
84 #endif // LIBKGAPI2_CONTACTSGROUPCREATEJOB_H
Abstract superclass for all jobs that create new objects on the server.
Definition: createjob.h:25
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
A job to create one or more new groups (folders) in Google Contacts addressbook.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Sep 18 2020 23:08:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.