#pragma once // STL includes #include #include #include #include // QT includes #include #include #include // Utils includes #include class MessageForwarder { public: struct JsonSlaveAddress { QHostAddress addr; quint16 port; }; MessageForwarder(); ~MessageForwarder(); void addJsonSlave(QString slave); void addProtoSlave(QString slave); bool protoForwardingEnabled(); bool jsonForwardingEnabled(); bool forwardingEnabled() { return jsonForwardingEnabled() || protoForwardingEnabled(); }; QStringList getProtoSlaves(); QList getJsonSlaves(); private: QStringList _protoSlaves; QList _jsonSlaves; };