Torc  0.1
torcnotify.h
Go to the documentation of this file.
1 #ifndef TORCNOTIFY_H
2 #define TORCNOTIFY_H
3 
4 // Qt
5 #include <QVariant>
6 
7 // Torc
8 #include "torcdevicehandler.h"
9 #include "torcnotification.h"
10 #include "torcnotifier.h"
11 
12 class TorcNotifier;
13 
14 class TorcNotify final : public QObject, public TorcDeviceHandler
15 {
16  Q_OBJECT
17 
18  public:
20 
21  public:
22  TorcNotify();
23 
24  bool Validate (void);
25  TorcNotifier* FindNotifierByName (const QString &Name);
26  QVariantMap SetNotificationText (const QString &Title, const QString &Body, const QMap<QString,QString> &Custom);
27  void Graph (QByteArray* Data);
28 
29  public slots:
30  void ApplicationNameChanged (void);
31 
32  protected:
33  void Create (const QVariantMap &Details) override;
34  void Destroy (void) override;
35 
36  private:
37  QList<TorcNotifier*> m_notifiers;
38  QList<TorcNotification*> m_notifications;
39  bool m_applicationNameChanged;
40 };
41 #endif // TORCNOTIFY_H
void Graph(QByteArray *Data)
Definition: torcnotify.cpp:64
void Create(const QVariantMap &Details) override
Definition: torcnotify.cpp:199
bool Validate(void)
Definition: torcnotify.cpp:40
void ApplicationNameChanged(void)
Definition: torcnotify.cpp:193
void Destroy(void) override
Definition: torcnotify.cpp:281
QVariantMap SetNotificationText(const QString &Title, const QString &Body, const QMap< QString, QString > &Custom)
Definition: torcnotify.cpp:102
TorcNotifier * FindNotifierByName(const QString &Name)
Definition: torcnotify.cpp:54
static TorcNotify * gNotify
Definition: torcnotify.h:19