Kgapi

createjob.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_CREATEJOB_H
10 #define LIBKGAPI2_CREATEJOB_H
11 
12 #include "job.h"
13 #include "kgapicore_export.h"
14 
15 namespace KGAPI2 {
16 
25 class KGAPICORE_EXPORT CreateJob: public KGAPI2::Job
26 {
27  Q_OBJECT
28 
29  public:
30 
36  explicit CreateJob(QObject* parent = nullptr);
37 
44  explicit CreateJob(const KGAPI2::AccountPtr &account, QObject* parent = nullptr);
45 
49  ~CreateJob() override;
50 
54  virtual ObjectsList items() const;
55 
56  protected:
57 
66  void dispatchRequest(QNetworkAccessManager* accessManager,
67  const QNetworkRequest& request,
68  const QByteArray& data, const QString& contentType) override;
69 
76  void handleReply(const QNetworkReply *reply, const QByteArray& rawData) override;
77 
81  void aboutToStart() override;
82 
102  virtual ObjectsList handleReplyWithItems(const QNetworkReply *reply,
103  const QByteArray &rawData);
104 
105 
106  private:
107  class Private;
108  Private * const d;
109  friend class Private;
110 
111 };
112 
113 } // namespace KGAPI2
114 
115 #endif // LIBKGAPI2_CREATEJOB_H
Abstract superclass for all jobs that create new objects on the server.
Definition: createjob.h:25
Abstract base class for all jobs in LibKGAPI.
Definition: job.h:40
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Dec 3 2020 23:11:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.