Torc  0.1
torctriggernotification.h
Go to the documentation of this file.
1 #ifndef TORCTRIGGERNOTIFICATION_H
2 #define TORCTRIGGERNOTIFICATION_H
3 
4 // Torc
5 #include "torcnotification.h"
6 
7 class TorcDevice;
8 
10 {
11  Q_OBJECT
12 
13  public:
14  explicit TorcTriggerNotification(const QVariantMap &Details);
15  ~TorcTriggerNotification() = default;
16  bool IsKnownInput (const QString &UniqueId) override;
17  QStringList GetDescription (void) override;
18  void Graph (QByteArray *Data) override;
19 
20  public slots:
21  void InputValueChanged (double Value);
22 
23  protected:
24  virtual bool Setup (void) override;
25 
26  private:
27  QString m_inputName;
28  TorcDevice* m_input;
29  double m_lastValue;
30  bool m_triggerHigh;
31  QMap<QString,QString> m_customData;
32  QStringList m_references;
33  QList<TorcDevice*> m_referenceDevices;
34 
35  private:
36  Q_DISABLE_COPY(TorcTriggerNotification)
37 };
38 
39 #endif // TORCTRIGGERNOTIFICATION_H
virtual bool Setup(void) override
Finalise the notification.
QStringList GetDescription(void) override
~TorcTriggerNotification()=default
TorcTriggerNotification(const QVariantMap &Details)
bool IsKnownInput(const QString &UniqueId) override
void Graph(QByteArray *Data) override