mirror-chatterino2/src/common/NetworkManager.hpp

30 lines
524 B
C++
Raw Normal View History

#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
#include <QJsonDocument>
#include <QJsonObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QThread>
2017-10-27 22:04:05 +02:00
#include <QTimer>
#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;
static void init();
static void deinit();
};
} // namespace chatterino