mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Stats
Testing time! Also new: Effects dirs are now created automatically
This commit is contained in:
34
include/utils/Stats.h
Normal file
34
include/utils/Stats.h
Normal file
@@ -0,0 +1,34 @@
|
||||
// qt includes
|
||||
#include <QDebug>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
#include <QUrl>
|
||||
#include <QUrlQuery>
|
||||
#include <QEventLoop>
|
||||
#include <QTimer>
|
||||
|
||||
// hyperion includes
|
||||
#include <utils/Logger.h>
|
||||
|
||||
class Stats : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Stats();
|
||||
~Stats();
|
||||
|
||||
private:
|
||||
Logger* _log;
|
||||
QString _hash = "";
|
||||
QNetworkAccessManager _mgr;
|
||||
|
||||
bool trigger(bool set = false);
|
||||
|
||||
private slots:
|
||||
void sendHTTP(bool put = false);
|
||||
void resolveReply(QNetworkReply *reply);
|
||||
|
||||
|
||||
};
|
Reference in New Issue
Block a user