MythTV  master
alarmnotifythread.h
Go to the documentation of this file.
1 #ifndef ALARMNOTIFYTHREAD_H
2 #define ALARMNOTIFYTHREAD_H
3 
4 // Qt headers
5 
6 // MythTV headers
7 #include "mthread.h"
8 
9 // zm
10 #include "zmdefines.h"
11 
12 class AlarmNotifyThread : public MThread
13 {
14  protected:
15  AlarmNotifyThread(void);
16 
18 
19  public:
20  ~AlarmNotifyThread(void) override;
21 
22  static AlarmNotifyThread *get(void);
23  void stop(void);
24 
25  protected:
26  void run(void) override; // MThread
27 
28  private:
29  volatile bool m_stop;
30 };
31 
32 #endif // ALARMNOTIFYTHREAD_H
zmdefines.h
AlarmNotifyThread::run
void run(void) override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Definition: alarmnotifythread.cpp:39
AlarmNotifyThread
Definition: alarmnotifythread.h:13
AlarmNotifyThread::stop
void stop(void)
Definition: alarmnotifythread.cpp:30
AlarmNotifyThread::get
static AlarmNotifyThread * get(void)
Definition: alarmnotifythread.cpp:13
AlarmNotifyThread::m_stop
volatile bool m_stop
Definition: alarmnotifythread.h:29
AlarmNotifyThread::m_alarmNotifyThread
static AlarmNotifyThread * m_alarmNotifyThread
Definition: alarmnotifythread.h:17
AlarmNotifyThread::AlarmNotifyThread
AlarmNotifyThread(void)
Definition: alarmnotifythread.cpp:20
AlarmNotifyThread::~AlarmNotifyThread
~AlarmNotifyThread(void) override
Definition: alarmnotifythread.cpp:25
MThread
This is a wrapper around QThread that does several additional things.
Definition: mthread.h:49
mthread.h