Kgapi

taskmovejob.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_TASKMOVEJOB_H
25 #define LIBKGAPI2_TASKMOVEJOB_H
26 
27 #include "modifyjob.h"
28 #include "kgapitasks_export.h"
29 
30 namespace KGAPI2 {
31 
38 class KGAPITASKS_EXPORT TaskMoveJob : public KGAPI2::ModifyJob
39 {
40 
41  Q_OBJECT
42 
43  public:
44 
59  explicit TaskMoveJob(const TaskPtr &task, const QString &taskListId,
60  const QString &newParentId, const AccountPtr &account,
61  QObject* parent = nullptr);
62 
77  explicit TaskMoveJob(const TasksList &tasks, const QString &taskListId,
78  const QString &newParentId, const AccountPtr &account,
79  QObject* parent = nullptr);
80 
95  explicit TaskMoveJob(const QString &taskId, const QString &taskListId,
96  const QString &newParentId, const AccountPtr &account,
97  QObject* parent = nullptr);
98 
113  explicit TaskMoveJob(const QStringList &tasksIds, const QString &taskListId,
114  const QString &newParentId, const AccountPtr &account,
115  QObject* parent = nullptr);
116 
120  ~TaskMoveJob() override;
121 
122  protected:
123 
127  void start() override;
128 
137  void dispatchRequest(QNetworkAccessManager *accessManager,
138  const QNetworkRequest &request,
139  const QByteArray &data,
140  const QString &contentType) override;
141 
148  void handleReply(const QNetworkReply *reply,
149  const QByteArray& rawData) override;
150 
151  private:
152  class Private;
153  Private * const d;
154  friend class Private;
155 
156 };
157 
158 } // namespace KGAPI2
159 
160 #endif // LIBKGAPI2_TASKMOVEJOB_H
A job that can reparent tasks to become subtasks of another task.
Definition: taskmovejob.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 Sun May 24 2020 22:39:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.