Kgapi

taskdeletejob.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 
10 #ifndef LIBKGAPI2_TASKDELETEJOB_H
11 #define LIBKGAPI2_TASKDELETEJOB_H
12 
13 #include "deletejob.h"
14 #include "kgapitasks_export.h"
15 
16 #include <QScopedPointer>
17 
18 namespace KGAPI2 {
19 
29 class KGAPITASKS_EXPORT TaskDeleteJob : public KGAPI2::DeleteJob
30 {
31  Q_OBJECT
32 
33  public:
34 
44  explicit TaskDeleteJob(const TaskPtr &task, const QString &taskListId,
45  const AccountPtr &account, QObject* parent = nullptr);
46 
56  explicit TaskDeleteJob(const TasksList &tasks, const QString &tasklistId,
57  const AccountPtr &account, QObject* parent = nullptr);
58 
68  explicit TaskDeleteJob(const QString &taskId, const QString &taskListId,
69  const AccountPtr &account, QObject* parent = nullptr);
70 
80  explicit TaskDeleteJob(const QStringList &tasksIds, const QString &taskListId,
81  const AccountPtr &account, QObject *parent = nullptr);
82 
86  ~TaskDeleteJob() override;
87 
88  protected:
89 
93  void start() override;
94 
101  void handleReply(const QNetworkReply* reply, const QByteArray& rawData) override;
102 
103  private:
104  class Private;
105  QScopedPointer<Private> const d;
106  friend class Private;
107 };
108 
109 } // namespace KGAPI2
110 
111 #endif // LIBKGAPI2_TASKDELETEJOB_H
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
Abstract superclass for all jobs that delete resources from Google.
Definition: deletejob.h:24
A job to delete one or more tasks from tasklist in user&#39;s Google Tasks account.
Definition: taskdeletejob.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Sep 18 2020 23:08:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.