set color on json connection implemented

This commit is contained in:
johan
2013-08-18 12:21:07 +02:00
parent 46076998a0
commit 638d5aa424
5 changed files with 39 additions and 6 deletions

View File

@@ -10,6 +10,9 @@
// jsoncpp includes
#include <json/json.h>
// Hyperion includes
#include <hyperion/Hyperion.h>
// util includes
#include <utils/jsonschema/JsonSchemaChecker.h>
@@ -18,7 +21,7 @@ class JsonClientConnection : public QObject
Q_OBJECT
public:
JsonClientConnection(QTcpSocket * socket);
JsonClientConnection(QTcpSocket * socket, Hyperion * hyperion);
~JsonClientConnection();
signals:
@@ -39,6 +42,7 @@ private:
void handleNotImplemented();
void sendMessage(const Json::Value & message);
void sendSuccessReply();
void sendErrorReply(const std::string & error);
private:
@@ -47,5 +51,7 @@ private:
private:
QTcpSocket * _socket;
Hyperion * _hyperion;
QByteArray _receiveBuffer;
};