MythTV master
welcomedialog.h
Go to the documentation of this file.
1#ifndef WELCOMEDIALOG_H_
2#define WELCOMEDIALOG_H_
3
4// qt
5#include <QDateTime>
6
7// myth
14
15class GroupSetting;
16
18{
19
20 Q_OBJECT
21
22 public:
23
24 WelcomeDialog(MythScreenStack *parent, const char *name);
25 ~WelcomeDialog() override;
26
27 bool Create(void) override; // MythScreenType
28 void ShowMenu(void) override; // MythScreenType
29 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
30
31 protected:
32 void customEvent(QEvent *e) override; // MythUIType
33
34 protected slots:
35 void startFrontendClick(void);
36 void startFrontend(void);
37 void updateAll(void);
38 void updateStatus(void);
39 void updateScreen(void);
40 void closeDialog(void);
41 void shutdownNow(void);
42 void runEPGGrabber(void);
43 void lockShutdown(void);
44 void unlockShutdown(void);
45 bool updateRecordingList(void);
46 bool updateScheduledList(void);
47
48 private:
49 void updateStatusMessage(void);
50 bool checkConnectionToServer(void);
51 void checkAutoStart(void);
52 static void runMythFillDatabase(void);
53 static void ShowSettings(GroupSetting* screen);
54
55 //
56 // GUI stuff
57 //
62
64
66
67 QTimer *m_updateStatusTimer { nullptr }; // audited ref #5318
68 QTimer *m_updateScreenTimer { nullptr }; // audited ref #5318
69
70 QString m_appBinDir;
71 bool m_isRecording { false };
72 bool m_hasConflicts { false };
73 bool m_willShutdown { false };
76 std::chrono::seconds m_preRollSeconds { 0s };
77 std::chrono::seconds m_idleWaitForRecordingTime { 0s };
78 std::chrono::seconds m_idleTimeoutSecs { 0s };
82 QStringList m_statusList;
83 bool m_frontendIsRunning { false };
84
85 std::vector<TunerStatus> m_tunerList;
86 std::vector<ProgramInfo> m_scheduledList;
87
89 bool m_pendingRecListUpdate { false };
90
92 void setPendingRecListUpdate(bool newState) { m_pendingRecListUpdate = newState; }
93
95 bool m_pendingSchedUpdate { false };
96
98 void setPendingSchedUpdate(bool newState) { m_pendingSchedUpdate = newState; }
99
100};
101
102#endif
Basic menu dialog, message and a list of options.
Screen in which all other widgets are contained and rendered.
A single button widget.
Definition: mythuibutton.h:22
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
QTimer * m_updateScreenTimer
Definition: welcomedialog.h:68
QString m_appBinDir
Definition: welcomedialog.h:70
void setPendingSchedUpdate(bool newState)
Definition: welcomedialog.h:98
std::vector< TunerStatus > m_tunerList
Definition: welcomedialog.h:85
void lockShutdown(void)
bool checkConnectionToServer(void)
QDateTime m_nextRecordingStart
Definition: welcomedialog.h:75
void checkAutoStart(void)
void ShowMenu(void) override
bool updateRecordingList(void)
void customEvent(QEvent *e) override
bool pendingSchedUpdate() const
Definition: welcomedialog.h:97
static void ShowSettings(GroupSetting *screen)
MythUIText * m_recordingText
Definition: welcomedialog.h:59
uint m_screenScheduledNo
Definition: welcomedialog.h:80
std::chrono::seconds m_preRollSeconds
Definition: welcomedialog.h:76
QTimer * m_updateStatusTimer
Definition: welcomedialog.h:67
MythUIButton * m_startFrontendButton
Definition: welcomedialog.h:63
uint m_screenTunerNo
Definition: welcomedialog.h:79
std::chrono::seconds m_idleWaitForRecordingTime
Definition: welcomedialog.h:77
void startFrontendClick(void)
void setPendingRecListUpdate(bool newState)
Definition: welcomedialog.h:92
QMutex m_recListUpdateMuxtex
Definition: welcomedialog.h:88
std::chrono::seconds m_idleTimeoutSecs
Definition: welcomedialog.h:78
MythUIText * m_warningText
Definition: welcomedialog.h:61
void runEPGGrabber(void)
int m_secondsToShutdown
Definition: welcomedialog.h:74
MythUIText * m_statusText
Definition: welcomedialog.h:58
QMutex m_schedUpdateMuxtex
Definition: welcomedialog.h:94
void updateStatus(void)
bool Create(void) override
bool m_pendingSchedUpdate
Definition: welcomedialog.h:95
~WelcomeDialog() override
void updateAll(void)
QStringList m_statusList
Definition: welcomedialog.h:82
bool m_frontendIsRunning
Definition: welcomedialog.h:83
void shutdownNow(void)
std::vector< ProgramInfo > m_scheduledList
Definition: welcomedialog.h:86
WelcomeDialog(MythScreenStack *parent, const char *name)
void updateScreen(void)
static void runMythFillDatabase(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythDialogBox * m_menuPopup
Definition: welcomedialog.h:65
MythUIText * m_scheduledText
Definition: welcomedialog.h:60
bool updateScheduledList(void)
bool m_pendingRecListUpdate
Definition: welcomedialog.h:89
void updateStatusMessage(void)
bool pendingRecListUpdate() const
Definition: welcomedialog.h:91
void startFrontend(void)
void unlockShutdown(void)
void closeDialog(void)
unsigned int uint
Definition: compat.h:60