Attica

putjob.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2011 Laszlo Papp <[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 ATTICA_PUTJOB_H
10 #define ATTICA_PUTJOB_H
11 
12 #include <QNetworkRequest>
13 
14 #include "attica_export.h"
15 #include "atticabasejob.h"
16 
17 // workaround to get initialization working with gcc < 4.4
19 
20 namespace Attica
21 {
22 class Provider;
23 
24 class ATTICA_EXPORT PutJob : public BaseJob
25 {
26  Q_OBJECT
27 
28 protected:
29  PutJob(PlatformDependent *internals, const QNetworkRequest &request, QIODevice *data);
30  PutJob(PlatformDependent *internals, const QNetworkRequest &request, const StringMap &parameters = StringMap());
31  PutJob(PlatformDependent *internals, const QNetworkRequest &request, const QByteArray &byteArray);
32 
33 private:
34  QNetworkReply *executeRequest() override;
35  void parse(const QString &) override;
36 
37  QIODevice *m_ioDevice;
38  QByteArray m_byteArray;
39 
40  QString m_responseData;
41  const QNetworkRequest m_request;
42 
43  QString m_status;
44  QString m_statusMessage;
45 
46  friend class Attica::Provider;
47 };
48 
49 }
50 
51 #endif
QVector< QVariant > parse(const QString &message, const QDate &externalIssueDate=QDate())
The Provider class represents one Open Collaboration Service provider.
Definition: provider.h:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.