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