hyperion.ng/libsrc/webserver/WebJsonRpc.h

32 lines
555 B
C
Raw Normal View History

#pragma once
// utils includes
#include <utils/Logger.h>
// qt includes
#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:
WebJsonRpc(QtHttpRequest* request, QtHttpServer* server, QtHttpClientWrapper* parent);
void handleMessage(QtHttpRequest* request);
private:
QtHttpServer* _server;
QtHttpClientWrapper* _wrapper;
Logger* _log;
2018-12-27 23:11:32 +01:00
JsonAPI* _jsonAPI;
bool _unlocked = false;
private slots:
void handleCallback(QJsonObject obj);
};