Kgapi

contactsgroupdeletejob.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * Copyright (C) 2013 Daniel Vrátil <[email protected]>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) version 3, or any
10  * later version accepted by the membership of KDE e.V. (or its
11  * successor approved by the membership of KDE e.V.), which shall
12  * act as a proxy defined in Section 6 of version 3 of the license.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library. If not, see <https://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef LIBKGAPI2_CONTACTSGROUPDELETEJOB_H
24 #define LIBKGAPI2_CONTACTSGROUPDELETEJOB_H
25 
26 #include "deletejob.h"
27 #include "kgapicontacts_export.h"
28 
29 namespace KGAPI2 {
30 
45 class KGAPICONTACTS_EXPORT ContactsGroupDeleteJob : public KGAPI2::DeleteJob
46 {
47  Q_OBJECT
48 
49  public:
50 
59  explicit ContactsGroupDeleteJob(const ContactsGroupsList &groups,
60  const AccountPtr &account, QObject* parent);
61 
70  explicit ContactsGroupDeleteJob(const ContactsGroupPtr &group,
71  const AccountPtr &account, QObject* parent);
72 
81  explicit ContactsGroupDeleteJob(const QStringList &groupsIds,
82  const AccountPtr &account, QObject* parent);
83 
92  explicit ContactsGroupDeleteJob(const QString &groupId,
93  const AccountPtr &account, QObject *parent);
94 
98  ~ContactsGroupDeleteJob() override;
99 
100  protected:
101 
105  void start() override;
106 
113  void handleReply(const QNetworkReply* reply, const QByteArray& rawData) override;
114 
115  private:
116  class Private;
117  Private * const d;
118  friend class Private;
119 
120 };
121 
122 } // namespace KGAPI2
123 
124 #endif // LIBKGAPI2_CONTACTSGROUPDELETEJOB_H
A job to delete one or more contact groups from addressbook in user&#39;s Google Contacts account...
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:30
Abstract superclass for all jobs that delete resources from Google.
Definition: deletejob.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed May 27 2020 22:36:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.