MythTV  master
zmminiplayer.h
Go to the documentation of this file.
1 #ifndef ZMMINIPLAYER_H_
2 #define ZMMINIPLAYER_H_
3 
4 #include <mythexp.h>
5 #include "zmliveplayer.h"
6 
7 class QTimer;
8 class MythUIImage;
9 
11 {
12  Q_OBJECT
13 
14  public:
15  explicit ZMMiniPlayer(MythScreenStack *parent);
16  ~ZMMiniPlayer();
17 
18  bool Create(void) override; // ZMLivePlayer
19  bool keyPressEvent(QKeyEvent *) override; // ZMLivePlayer
20  void customEvent (QEvent* event) override; // MythUIType
21 
22  void setAlarmMonitor(int monID) { m_alarmMonitor = monID; }
23 
24  public slots:
25  void timerTimeout(void);
26 
27  private:
28  QTimer *m_displayTimer {nullptr};
29 
30  MythUIText *m_monitorText {nullptr};
31  MythUIText *m_statusText {nullptr};
32  MythUIImage *m_image {nullptr};
33 };
34 
35 #endif
unsigned int slots[4]
Definition: element.c:38
#define MPUBLIC
Definition: mythexp.h:10
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
void customEvent(QEvent *event) override
bool Create(void) override
void setAlarmMonitor(int monID)
Definition: zmminiplayer.h:22
bool keyPressEvent(QKeyEvent *) override
Key event handler.