1 | /* |
2 | This file is part of KDE. |
3 | |
4 | SPDX-FileCopyrightText: 2011 Laszlo Papp <djszapi@archlinux.us> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | |
9 | #ifndef ATTICA_PLATFORMDEPENDENT_V2_H |
10 | #define ATTICA_PLATFORMDEPENDENT_V2_H |
11 | |
12 | #include <QList> |
13 | #include <QtPlugin> |
14 | |
15 | #include "attica_export.h" |
16 | #include "platformdependent.h" |
17 | |
18 | class QByteArray; |
19 | class QIODevice; |
20 | class QNetworkAccessManager; |
21 | class QNetworkReply; |
22 | class QNetworkRequest; |
23 | class QString; |
24 | class QUrl; |
25 | |
26 | namespace Attica |
27 | { |
28 | class ATTICA_EXPORT PlatformDependentV2 : public PlatformDependent |
29 | { |
30 | public: |
31 | ~PlatformDependentV2() override; |
32 | virtual QNetworkReply *deleteResource(const QNetworkRequest &request) = 0; |
33 | virtual QNetworkReply *put(const QNetworkRequest &request, QIODevice *data) = 0; |
34 | virtual QNetworkReply *put(const QNetworkRequest &request, const QByteArray &data) = 0; |
35 | }; |
36 | |
37 | } |
38 | |
39 | Q_DECLARE_INTERFACE(Attica::PlatformDependentV2, "org.kde.Attica.InternalsV2/1.2" ) |
40 | |
41 | #endif |
42 | |