mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	* split content and js tune leds config * implement connection lost page * split js/html in huebridge * add js action for connection lost * extend led config make connection loss nicer * tune led code add menu entry for grabber * more tuning of webui * switch back to botstrap textarea add v4l to components * add icon * extend schema for jsoneditor * implement ledcolors streaming with 4fps * implement component state
		
			
				
	
	
		
			41 lines
		
	
	
		
			812 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			812 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();
 | 
						|
	bool jsonForwardingEnabled();
 | 
						|
	bool forwardingEnabled() { return jsonForwardingEnabled() || protoForwardingEnabled(); };
 | 
						|
	QStringList getProtoSlaves();
 | 
						|
	QList<MessageForwarder::JsonSlaveAddress> getJsonSlaves();
 | 
						|
 | 
						|
private:
 | 
						|
	QStringList               _protoSlaves;
 | 
						|
	QList<MessageForwarder::JsonSlaveAddress>   _jsonSlaves;
 | 
						|
};
 |