hyperion.ng
GlobalSignals.h
1 #pragma once
2 
3 // util
4 #include <utils/Image.h>
5 #include <utils/ColorRgb.h>
6 
7 // qt
8 #include <QObject>
9 
13 class GlobalSignals : public QObject
14 {
15  Q_OBJECT
16 public:
17  static GlobalSignals* getInstance()
18  {
19  static GlobalSignals instance;
20  return & instance;
21  }
22 private:
23  GlobalSignals() {}
24 
25 public:
26  GlobalSignals(GlobalSignals const&) = delete;
27  void operator=(GlobalSignals const&) = delete;
28 
29 signals:
35  void setSystemImage(const QString& name, const Image<ColorRgb>& image);
36 
42  void setV4lImage(const QString& name, const Image<ColorRgb> & image);
43 };
void setV4lImage(const QString &name, const Image< ColorRgb > &image)
PIPE v4lCapture images from v4lCapture over HyperionDaemon to Hyperion class.
void setSystemImage(const QString &name, const Image< ColorRgb > &image)
PIPE SystemCapture images from GrabberWrapper to Hyperion class.
Singleton instance for simple signal sharing across threads, should be never used with Qt:DirectConne...
Definition: GlobalSignals.h:13