mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Protocol Buffer reimplemented to receive image data from third-party apps The status of the component "UDPListener" is now displayed correctly in WebUI Global signal names for WebUI added
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
// util
 | 
						|
#include <utils/Image.h>
 | 
						|
#include <utils/ColorRgb.h>
 | 
						|
 | 
						|
// qt
 | 
						|
#include <QObject>
 | 
						|
 | 
						|
///
 | 
						|
/// Singleton instance for simple signal sharing across threads, should be never used with Qt:DirectConnection!
 | 
						|
///
 | 
						|
class GlobalSignals : public QObject
 | 
						|
{
 | 
						|
	Q_OBJECT
 | 
						|
public:
 | 
						|
    static GlobalSignals* getInstance()
 | 
						|
    {
 | 
						|
        static GlobalSignals instance;
 | 
						|
        return & instance;
 | 
						|
    }
 | 
						|
private:
 | 
						|
    GlobalSignals() {}
 | 
						|
 | 
						|
public:
 | 
						|
    GlobalSignals(GlobalSignals const&)   = delete;
 | 
						|
    void operator=(GlobalSignals const&)  = delete;
 | 
						|
 | 
						|
signals:
 | 
						|
	///
 | 
						|
	/// @brief PIPE SystemCapture images from GrabberWrapper to Hyperion class
 | 
						|
	/// @param name   The name of the platform capture that is currently active
 | 
						|
	/// @param image  The prepared image
 | 
						|
	///
 | 
						|
	void setSystemImage(const QString& name, const Image<ColorRgb>&  image);
 | 
						|
 | 
						|
	///
 | 
						|
	/// @brief PIPE v4lCapture images from v4lCapture over HyperionDaemon to Hyperion class
 | 
						|
	/// @param name   The name of the v4l capture (path) that is currently active
 | 
						|
	/// @param image  The prepared image
 | 
						|
	///
 | 
						|
	void setV4lImage(const QString& name, const Image<ColorRgb> & image);
 | 
						|
};
 |