Kgapi

tasklistcreatejob.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_TASKLISTCREATEJOB_H
10 #define LIBKGAPI2_TASKLISTCREATEJOB_H
11 
12 #include "createjob.h"
13 #include "kgapitasks_export.h"
14 
15 #include <QScopedPointer>
16 
17 namespace KGAPI2 {
18 
25 class KGAPITASKS_EXPORT TaskListCreateJob : public KGAPI2::CreateJob
26 {
27 
28  Q_OBJECT
29 
30  public:
31 
40  explicit TaskListCreateJob(const TaskListPtr &taskList,
41  const AccountPtr &account, QObject* parent = nullptr);
42 
51  explicit TaskListCreateJob(const TaskListsList &taskLists,
52  const AccountPtr &account, QObject* parent = nullptr);
53 
57  ~TaskListCreateJob() 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;
78  friend class Private;
79 
80 };
81 
82 } // namespace KGAPI2
83 
84 #endif // LIBKGAPI2_TASKLISTCREATEJOB_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 tasklists in user&#39;s Google Tasks account.
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.