Kgapi

taskmodifyjob.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 
24 #ifndef LIBKGAPI2_TASKMODIFYJOB_H
25 #define LIBKGAPI2_TASKMODIFYJOB_H
26 
27 #include "modifyjob.h"
28 #include "kgapitasks_export.h"
29 
30 namespace KGAPI2 {
31 
38 class KGAPITASKS_EXPORT TaskModifyJob : public KGAPI2::ModifyJob
39 {
40 
41  Q_OBJECT
42 
43  public:
44 
54  explicit TaskModifyJob(const TaskPtr &task, const QString &taskListId,
55  const AccountPtr &account, QObject* parent = nullptr);
56 
66  explicit TaskModifyJob(const TasksList &tasks, const QString &taskListId,
67  const AccountPtr &account, QObject* parent = nullptr);
68 
72  ~TaskModifyJob() override;
73 
74  protected:
75 
79  void start() override;
80 
87  ObjectsList handleReplyWithItems(const QNetworkReply *reply,
88  const QByteArray& rawData) override;
89 
90  private:
91  class Private;
92  Private * const d;
93  friend class Private;
94 
95 };
96 
97 } // namespace KGAPI2
98 
99 #endif // LIBKGAPI2_TASKMODIFYJOB_H
A job to modify tasks in a tasklist in user&#39;s Google Tasks account.
Definition: taskmodifyjob.h:38
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:30
Abstract superclass for all jobs that somehow modify resources on Google.
Definition: modifyjob.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:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.