mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
91c7637a2b
Zeroconf TXT record is missing
38 lines
597 B
C++
38 lines
597 B
C++
// qt includes
|
|
#include <QNetworkAccessManager>
|
|
#include <QNetworkRequest>
|
|
#include <QNetworkReply>
|
|
#include <QUrl>
|
|
#include <QUrlQuery>
|
|
#include <QTimer>
|
|
|
|
// hyperion includes
|
|
#include <utils/Logger.h>
|
|
#include <hyperion/Hyperion.h>
|
|
|
|
class Stats : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Stats();
|
|
~Stats();
|
|
|
|
private:
|
|
Logger* _log;
|
|
Hyperion* _hyperion;
|
|
QString _hash = "";
|
|
QByteArray _ba;
|
|
QNetworkRequest _req;
|
|
QNetworkAccessManager _mgr;
|
|
|
|
bool trigger(bool set = false);
|
|
|
|
private slots:
|
|
void initialExec();
|
|
void sendHTTP();
|
|
void sendHTTPp();
|
|
void resolveReply(QNetworkReply *reply);
|
|
|
|
};
|