add http jsonrpc (#450)

This commit is contained in:
brindosch
2017-07-05 23:19:52 +02:00
committed by GitHub
parent a99b7c5f59
commit 622a171808
4 changed files with 59 additions and 19 deletions

View File

@@ -41,15 +41,22 @@ class JsonProcessor : public QObject
Q_OBJECT
public:
JsonProcessor(QString peerAddress);
///
/// Constructor
///
/// @param peerAddress provide the Address of the peer
/// @param noListener if true, this instance won't listen for hyperion push events
///
JsonProcessor(QString peerAddress, bool noListener = false);
~JsonProcessor();
///
/// Handle an incoming JSON message
///
/// @param message the incoming message as string
/// @param peerAddress overwrite peerAddress of constructor
///
void handleMessage(const QString & message);
void handleMessage(const QString & message, const QString peerAddress = NULL);
///
/// send a forced serverinfo to a client