MythTV master
idlescreen.h
Go to the documentation of this file.
1#ifndef IDLESCREEN_H
2#define IDLESCREEN_H
3
4// MythTV
7
10class QTimer;
11
13{
14 Q_OBJECT
15
16 public:
17 explicit IdleScreen(MythScreenStack *parent);
18 ~IdleScreen() override;
19
20 bool Create(void) override; // MythScreenType
21 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
22 void customEvent(QEvent *e) override; // MythUIType
23
24
25 public slots:
26 void UpdateStatus(void);
27 void UpdateScreen(void);
29
30 protected:
31 void Load(void) override; // MythScreenType
32 void Init(void) override; // MythScreenType
33
34 private:
35 bool CheckConnectionToServer(void);
37 void SetPendingSchedUpdate(bool newState) { m_pendingSchedUpdate = newState; }
38
39 QTimer *m_updateScreenTimer {nullptr};
40
46
47 std::chrono::seconds m_secondsToShutdown {-1s};
48
52 bool m_hasConflicts {false};
53};
54
55#endif // IDLESCREEN_H
bool m_pendingSchedUpdate
Definition: idlescreen.h:50
~IdleScreen() override
Definition: idlescreen.cpp:35
bool UpdateScheduledList()
Definition: idlescreen.cpp:219
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition: idlescreen.cpp:71
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition: idlescreen.cpp:76
MythUIText * m_conflictWarning
Definition: idlescreen.h:45
bool CheckConnectionToServer(void)
Definition: idlescreen.cpp:81
void UpdateScreen(void)
Definition: idlescreen.cpp:144
std::chrono::seconds m_secondsToShutdown
Definition: idlescreen.h:47
bool Create(void) override
Definition: idlescreen.cpp:44
void UpdateStatus(void)
Definition: idlescreen.cpp:103
MythUIStateType * m_statusState
Definition: idlescreen.h:41
MythUIButtonList * m_conflictingRecordings
Definition: idlescreen.h:44
IdleScreen(MythScreenStack *parent)
Definition: idlescreen.cpp:23
bool m_hasConflicts
Definition: idlescreen.h:52
void customEvent(QEvent *e) override
Definition: idlescreen.cpp:248
void SetPendingSchedUpdate(bool newState)
Definition: idlescreen.h:37
MythUIButtonList * m_currentRecordings
Definition: idlescreen.h:42
QTimer * m_updateScreenTimer
Definition: idlescreen.h:39
ProgramList m_scheduledList
Definition: idlescreen.h:51
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: idlescreen.cpp:243
MythUIButtonList * m_nextRecordings
Definition: idlescreen.h:43
QMutex m_schedUpdateMutex
Definition: idlescreen.h:49
bool PendingSchedUpdate() const
Definition: idlescreen.h:36
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
This widget is used for grouping other widgets for display when a particular named state is called.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29