MauiKit File Browsing

NetworkHelper.hpp
1#pragma once
2
3#include <QIODevice>
4#include <QMap>
5#include <QNetworkAccessManager>
6#include <QNetworkReply>
7#include <QObject>
8#include <QString>
9
10/**
11 * @private
12 */
13class NetworkHelper : public QObject {
15
16 private:
17 QString host;
18 QString username;
19 QString password;
20 QNetworkAccessManager* networkManager;
21
22 void setRequestAuthHeader(QNetworkRequest* request);
23 void setRequestHeaders(QNetworkRequest* request,
25
26 public:
27 NetworkHelper(QString host, QString username, QString password);
28
29 QNetworkReply* makeRequest(QString method, QString path,
31 QNetworkReply* makePutRequest(QString path, QMap<QString, QString> headers,
32 QIODevice* file);
33};
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.