diff options
Diffstat (limited to 'lib/networkaccessmanager.h')
-rw-r--r-- | lib/networkaccessmanager.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/networkaccessmanager.h b/lib/networkaccessmanager.h index ebaaa5b2..bf8f0cbc 100644 --- a/lib/networkaccessmanager.h +++ b/lib/networkaccessmanager.h @@ -22,27 +22,27 @@ #include <memory> -namespace QMatrixClient { - class NetworkAccessManager : public QNetworkAccessManager - { - Q_OBJECT - public: - NetworkAccessManager(QObject* parent = nullptr); - ~NetworkAccessManager() override; - - QList<QSslError> ignoredSslErrors() const; - void addIgnoredSslError(const QSslError& error); - void clearIgnoredSslErrors(); - - /** Get a pointer to the singleton */ - static NetworkAccessManager* instance(); - - private: - QNetworkReply* - createRequest(Operation op, const QNetworkRequest& request, - QIODevice* outgoingData = Q_NULLPTR) override; - - class Private; - std::unique_ptr<Private> d; - }; +namespace QMatrixClient +{ +class NetworkAccessManager : public QNetworkAccessManager +{ + Q_OBJECT +public: + NetworkAccessManager(QObject* parent = nullptr); + ~NetworkAccessManager() override; + + QList<QSslError> ignoredSslErrors() const; + void addIgnoredSslError(const QSslError& error); + void clearIgnoredSslErrors(); + + /** Get a pointer to the singleton */ + static NetworkAccessManager* instance(); + +private: + QNetworkReply* createRequest(Operation op, const QNetworkRequest& request, + QIODevice* outgoingData = Q_NULLPTR) override; + + class Private; + std::unique_ptr<Private> d; +}; } // namespace QMatrixClient |