mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	* std::string -> qstring part 1 * more string migration * more string migration ... * ... * more qstring mogrations add sysinfo via json * remove unneccessary includes * integrate sysinfo into webui
		
			
				
	
	
		
			41 lines
		
	
	
		
			804 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			804 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(QString slave);
 | |
| 	void addProtoSlave(QString slave);
 | |
| 
 | |
| 	bool protoForwardingEnabled();
 | |
| 	bool jsonForwardingEnabled();
 | |
| 	bool forwardingEnabled() { return jsonForwardingEnabled() || protoForwardingEnabled(); };
 | |
| 	QStringList getProtoSlaves();
 | |
| 	QList<MessageForwarder::JsonSlaveAddress> getJsonSlaves();
 | |
| 
 | |
| private:
 | |
| 	QStringList               _protoSlaves;
 | |
| 	QList<MessageForwarder::JsonSlaveAddress>   _jsonSlaves;
 | |
| };
 |