2017-10-27 20:09:02 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-26 15:33:51 +02:00
|
|
|
#include "common/NetworkRequester.hpp"
|
|
|
|
#include "common/NetworkWorker.hpp"
|
2018-06-26 17:20:03 +02:00
|
|
|
#include "debug/Log.hpp"
|
2017-10-27 22:04:05 +02:00
|
|
|
|
2017-10-27 21:22:06 +02:00
|
|
|
#include <QJsonDocument>
|
|
|
|
#include <QJsonObject>
|
2017-10-27 20:09:02 +02:00
|
|
|
#include <QNetworkAccessManager>
|
2017-10-27 21:22:06 +02:00
|
|
|
#include <QNetworkReply>
|
2017-10-27 20:09:02 +02:00
|
|
|
#include <QThread>
|
2017-10-27 22:04:05 +02:00
|
|
|
#include <QTimer>
|
2017-10-27 20:09:02 +02:00
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class NetworkManager : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
static QThread workerThread;
|
2018-08-10 19:00:14 +02:00
|
|
|
static QNetworkAccessManager accessManager;
|
2017-10-27 20:09:02 +02:00
|
|
|
|
|
|
|
static void init();
|
|
|
|
static void deinit();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|