mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
ec67caf24e
forwarder: add flag to detect if forwarding is enabled Former-commit-id: c814651ec4973fe3b2bfca7c0370a0bac752f025
39 lines
690 B
C++
39 lines
690 B
C++
#pragma once
|
|
|
|
// STL includes
|
|
#include <vector>
|
|
#include <map>
|
|
#include <cstdint>
|
|
#include <limits>
|
|
|
|
// QT includes
|
|
#include <QList>
|
|
#include <QStringList>
|
|
#include <QHostAddress>
|
|
|
|
// Utils includes
|
|
#include <utils/ColorRgb.h>
|
|
class MessageForwarder
|
|
{
|
|
public:
|
|
|
|
struct JsonSlaveAddress {
|
|
QHostAddress addr;
|
|
quint16 port;
|
|
};
|
|
|
|
MessageForwarder();
|
|
~MessageForwarder();
|
|
|
|
void addJsonSlave(std::string slave);
|
|
void addProtoSlave(std::string slave);
|
|
|
|
bool protoForwardingEnabled();
|
|
QStringList getProtoSlaves();
|
|
QList<MessageForwarder::JsonSlaveAddress> getJsonSlaves();
|
|
|
|
private:
|
|
QStringList _protoSlaves;
|
|
QList<MessageForwarder::JsonSlaveAddress> _jsonSlaves;
|
|
};
|