mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
implement json forwarder
Former-commit-id: 5519118304bd5690e6b512481347579339e78ac9
This commit is contained in:
@@ -9,12 +9,19 @@
|
||||
// QT includes
|
||||
#include <QList>
|
||||
#include <QStringList>
|
||||
#include <QHostAddress>
|
||||
|
||||
// Utils includes
|
||||
#include <utils/ColorRgb.h>
|
||||
class MessageForwarder
|
||||
{
|
||||
public:
|
||||
|
||||
struct JsonSlaveAddress {
|
||||
QHostAddress addr;
|
||||
quint16 port = 19444;
|
||||
};
|
||||
|
||||
MessageForwarder();
|
||||
~MessageForwarder();
|
||||
|
||||
@@ -23,9 +30,9 @@ public:
|
||||
void sendMessage();
|
||||
|
||||
QStringList getProtoSlaves();
|
||||
QList<MessageForwarder::JsonSlaveAddress> getJsonSlaves();
|
||||
|
||||
private:
|
||||
bool _running;
|
||||
|
||||
QStringList _protoSlaves;
|
||||
QStringList _protoSlaves;
|
||||
QList<MessageForwarder::JsonSlaveAddress> _jsonSlaves;
|
||||
};
|
||||
|
Reference in New Issue
Block a user