File indexing completed on 2024-10-13 09:28:49

0001 /*
0002     This file is part of KDE.
0003 
0004     SPDX-FileCopyrightText: 2011 Laszlo Papp <djszapi@archlinux.us>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef ATTICA_PLATFORMDEPENDENT_V2_H
0010 #define ATTICA_PLATFORMDEPENDENT_V2_H
0011 
0012 #include <QList>
0013 #include <QtPlugin>
0014 
0015 #include <platformdependent.h>
0016 
0017 class QByteArray;
0018 class QIODevice;
0019 class QNetworkAccessManager;
0020 class QNetworkReply;
0021 class QNetworkRequest;
0022 class QString;
0023 class QUrl;
0024 
0025 namespace Attica
0026 {
0027 class PlatformDependentV2 : public PlatformDependent
0028 {
0029 public:
0030     ~PlatformDependentV2() override;
0031     virtual QNetworkReply *deleteResource(const QNetworkRequest &request) = 0;
0032     virtual QNetworkReply *put(const QNetworkRequest &request, QIODevice *data) = 0;
0033     virtual QNetworkReply *put(const QNetworkRequest &request, const QByteArray &data) = 0;
0034 };
0035 
0036 }
0037 
0038 Q_DECLARE_INTERFACE(Attica::PlatformDependentV2, "org.kde.Attica.InternalsV2/1.2")
0039 
0040 #endif