mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
2a77f6f012
Signed-off-by: Paulchen-Panther <Paulchen--Panter@gmx.net>
32 lines
555 B
C++
32 lines
555 B
C++
#pragma once
|
|
|
|
// utils includes
|
|
#include <utils/Logger.h>
|
|
|
|
// qt includes
|
|
#include <QJsonObject>
|
|
|
|
class QtHttpServer;
|
|
class QtHttpRequest;
|
|
class QtHttpClientWrapper;
|
|
class JsonAPI;
|
|
|
|
class WebJsonRpc : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
WebJsonRpc(QtHttpRequest* request, QtHttpServer* server, QtHttpClientWrapper* parent);
|
|
|
|
void handleMessage(QtHttpRequest* request);
|
|
|
|
private:
|
|
QtHttpServer* _server;
|
|
QtHttpClientWrapper* _wrapper;
|
|
Logger* _log;
|
|
JsonAPI* _jsonAPI;
|
|
|
|
bool _unlocked = false;
|
|
|
|
private slots:
|
|
void handleCallback(QJsonObject obj);
|
|
};
|