20#ifndef LIBREPCB_CORE_NETWORKACCESSMANAGER_H
21#define LIBREPCB_CORE_NETWORKACCESSMANAGER_H
26#include "../fileio/filepath.h"
74 QNetworkReply*
get(const QNetworkRequest& request) noexcept;
75 QNetworkReply*
post(const QNetworkRequest& request,
76 const QByteArray& data) noexcept;
78 QString& contentType) noexcept;
80 const QDateTime& dt) noexcept;
89 void run() noexcept override;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
A network access manager which processes network requests in a separate thread.
Definition networkaccessmanager.h:64
bool setMinimumCacheExpirationDate(const QUrl &url, const QDateTime &dt) noexcept
Definition networkaccessmanager.cpp:116
void run() noexcept override
Definition networkaccessmanager.cpp:147
const FilePath mCacheFp
Definition networkaccessmanager.h:93
static NetworkAccessManager * sInstance
Definition networkaccessmanager.h:96
std::unique_ptr< QIODevice > readFromCache(const QUrl &url, QString &contentType) noexcept
Definition networkaccessmanager.cpp:99
~NetworkAccessManager() noexcept
Definition networkaccessmanager.cpp:65
QNetworkReply * post(const QNetworkRequest &request, const QByteArray &data) noexcept
Definition networkaccessmanager.cpp:87
NetworkAccessManager(const NetworkAccessManager &other)=delete
QNetworkReply * get(const QNetworkRequest &request) noexcept
Definition networkaccessmanager.cpp:75
void stop() noexcept
Definition networkaccessmanager.cpp:172
QSemaphore mThreadStartSemaphore
Definition networkaccessmanager.h:94
QNetworkAccessManager * mManager
Definition networkaccessmanager.h:95
static NetworkAccessManager * instance() noexcept
Definition networkaccessmanager.cpp:139
Definition occmodel.cpp:76