hyperion.ng/libsrc/webserver/WebJsonRpc.h

31 lines
571 B
C
Raw Permalink Normal View History

#pragma once
#include <utils/Logger.h>
#include <QJsonObject>
class QtHttpServer;
class QtHttpRequest;
class QtHttpClientWrapper;
2018-12-27 23:11:32 +01:00
class JsonAPI;
class WebJsonRpc : public QObject {
Q_OBJECT
public:
2020-08-08 13:09:15 +02:00
WebJsonRpc(QtHttpRequest* request, QtHttpServer* server, bool localConnection, QtHttpClientWrapper* parent);
void handleMessage(QtHttpRequest* request);
private:
QtHttpServer* _server;
QtHttpClientWrapper* _wrapper;
Logger* _log;
2018-12-27 23:11:32 +01:00
JsonAPI* _jsonAPI;
bool _stopHandle = false;
bool _unlocked = false;
private slots:
void handleCallback(QJsonObject obj);
};