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 // libmyth
8 #include "programinfo.h"
9 
10 // libmythtv
11 #include "tvremoteutil.h"
12 
13 // libmythui
14 #include "mythscreentype.h"
15 #include "mythuibutton.h"
16 #include "mythuitext.h"
17 #include "mythdialogbox.h"
18 
19 class GroupSetting;
20 
22 {
23 
24  Q_OBJECT
25 
26  public:
27 
28  WelcomeDialog(MythScreenStack *parent, const char *name);
29  ~WelcomeDialog() override;
30 
31  bool Create(void) override; // MythScreenType
32  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
33  void customEvent(QEvent *e) override; // MythUIType
34 
35  protected slots:
36  void startFrontendClick(void);
37  void startFrontend(void);
38  void updateAll(void);
39  void updateStatus(void);
40  void updateScreen(void);
41  void closeDialog(void);
42  void ShowMenu(void) override; // MythScreenType
43  void shutdownNow(void);
44  void runEPGGrabber(void);
45  void lockShutdown(void);
46  void unlockShutdown(void);
47  bool updateRecordingList(void);
48  bool updateScheduledList(void);
49 
50  private:
51  void updateStatusMessage(void);
52  bool checkConnectionToServer(void);
53  void checkAutoStart(void);
54  static void runMythFillDatabase(void);
55  static void ShowSettings(GroupSetting* screen);
56 
57  //
58  // GUI stuff
59  //
60  MythUIText *m_statusText { nullptr };
63  MythUIText *m_warningText { nullptr };
64 
66 
67  MythDialogBox *m_menuPopup { nullptr };
68 
69  QTimer *m_updateStatusTimer { nullptr }; // audited ref #5318
70  QTimer *m_updateScreenTimer { nullptr }; // audited ref #5318
71 
72  QString m_appBinDir;
73  bool m_isRecording { false };
74  bool m_hasConflicts { false };
75  bool m_willShutdown { false };
76  int m_secondsToShutdown { -1 };
78  int m_preRollSeconds { 0 };
80  int m_idleTimeoutSecs { 0 };
84  QStringList m_statusList;
85  bool m_frontendIsRunning { false };
86 
87  vector<TunerStatus> m_tunerList;
88  vector<ProgramInfo> m_scheduledList;
89 
91  bool m_pendingRecListUpdate { false };
92 
94  void setPendingRecListUpdate(bool newState) { m_pendingRecListUpdate = newState; }
95 
97  bool m_pendingSchedUpdate { false };
98 
99  bool pendingSchedUpdate() const { return m_pendingSchedUpdate; }
100  void setPendingSchedUpdate(bool newState) { m_pendingSchedUpdate = newState; }
101 
102 };
103 
104 #endif
e
QDomElement e
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:1417
WelcomeDialog::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: welcomedialog.cpp:220
WelcomeDialog::m_updateScreenTimer
QTimer * m_updateScreenTimer
Definition: welcomedialog.h:70
mythuitext.h
WelcomeDialog::m_statusList
QStringList m_statusList
Definition: welcomedialog.h:84
WelcomeDialog::updateRecordingList
bool updateRecordingList(void)
Definition: welcomedialog.cpp:447
WelcomeDialog::m_statusListNo
uint m_statusListNo
Definition: welcomedialog.h:83
WelcomeDialog::customEvent
void customEvent(QEvent *e) override
Definition: welcomedialog.cpp:132
WelcomeDialog::updateScreen
void updateScreen(void)
Definition: welcomedialog.cpp:322
mythdialogbox.h
MythScreenStack
Definition: mythscreenstack.h:15
WelcomeDialog::unlockShutdown
void unlockShutdown(void)
Definition: welcomedialog.cpp:611
WelcomeDialog::m_recordingText
MythUIText * m_recordingText
Definition: welcomedialog.h:61
WelcomeDialog::pendingRecListUpdate
bool pendingRecListUpdate() const
Definition: welcomedialog.h:93
slots
unsigned int slots[4]
Definition: element.cpp:38
WelcomeDialog::m_appBinDir
QString m_appBinDir
Definition: welcomedialog.h:72
WelcomeDialog::m_frontendIsRunning
bool m_frontendIsRunning
Definition: welcomedialog.h:85
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
WelcomeDialog::~WelcomeDialog
~WelcomeDialog() override
Definition: welcomedialog.cpp:304
WelcomeDialog::m_idleTimeoutSecs
int m_idleTimeoutSecs
Definition: welcomedialog.h:80
WelcomeDialog::shutdownNow
void shutdownNow(void)
Definition: welcomedialog.cpp:628
WelcomeDialog::m_updateStatusTimer
QTimer * m_updateStatusTimer
Definition: welcomedialog.h:69
WelcomeDialog::updateScheduledList
bool updateScheduledList(void)
Definition: welcomedialog.cpp:468
WelcomeDialog::closeDialog
void closeDialog(void)
Definition: welcomedialog.cpp:299
programinfo.h
WelcomeDialog::m_schedUpdateMuxtex
QMutex m_schedUpdateMuxtex
Definition: welcomedialog.h:96
WelcomeDialog::Create
bool Create(void) override
Definition: welcomedialog.cpp:55
WelcomeDialog::pendingSchedUpdate
bool pendingSchedUpdate() const
Definition: welcomedialog.h:99
WelcomeDialog::m_tunerList
vector< TunerStatus > m_tunerList
Definition: welcomedialog.h:87
MythDialogBox
Basic menu dialog, message and a list of options.
Definition: mythdialogbox.h:137
WelcomeDialog::checkConnectionToServer
bool checkConnectionToServer(void)
Definition: welcomedialog.cpp:550
WelcomeDialog::m_scheduledList
vector< ProgramInfo > m_scheduledList
Definition: welcomedialog.h:88
WelcomeDialog
Definition: welcomedialog.h:21
WelcomeDialog::m_isRecording
bool m_isRecording
Definition: welcomedialog.h:73
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
WelcomeDialog::m_nextRecordingStart
QDateTime m_nextRecordingStart
Definition: welcomedialog.h:77
WelcomeDialog::updateAll
void updateAll(void)
Definition: welcomedialog.cpp:441
WelcomeDialog::m_screenTunerNo
uint m_screenTunerNo
Definition: welcomedialog.h:81
WelcomeDialog::lockShutdown
void lockShutdown(void)
Definition: welcomedialog.cpp:602
WelcomeDialog::updateStatusMessage
void updateStatusMessage(void)
Definition: welcomedialog.cpp:495
WelcomeDialog::m_pendingRecListUpdate
bool m_pendingRecListUpdate
Definition: welcomedialog.h:91
WelcomeDialog::m_startFrontendButton
MythUIButton * m_startFrontendButton
Definition: welcomedialog.h:65
WelcomeDialog::m_screenScheduledNo
uint m_screenScheduledNo
Definition: welcomedialog.h:82
uint
unsigned int uint
Definition: compat.h:140
WelcomeDialog::startFrontend
void startFrontend(void)
Definition: welcomedialog.cpp:91
WelcomeDialog::m_statusText
MythUIText * m_statusText
Definition: welcomedialog.h:60
tvremoteutil.h
WelcomeDialog::m_preRollSeconds
int m_preRollSeconds
Definition: welcomedialog.h:78
WelcomeDialog::runMythFillDatabase
static void runMythFillDatabase(void)
Definition: welcomedialog.cpp:422
WelcomeDialog::startFrontendClick
void startFrontendClick(void)
Definition: welcomedialog.cpp:101
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
WelcomeDialog::updateStatus
void updateStatus(void)
Definition: welcomedialog.cpp:315
WelcomeDialog::m_scheduledText
MythUIText * m_scheduledText
Definition: welcomedialog.h:62
WelcomeDialog::m_menuPopup
MythDialogBox * m_menuPopup
Definition: welcomedialog.h:67
WelcomeDialog::setPendingRecListUpdate
void setPendingRecListUpdate(bool newState)
Definition: welcomedialog.h:94
WelcomeDialog::checkAutoStart
void checkAutoStart(void)
Definition: welcomedialog.cpp:112
WelcomeDialog::m_warningText
MythUIText * m_warningText
Definition: welcomedialog.h:63
WelcomeDialog::ShowMenu
void ShowMenu(void) override
Definition: welcomedialog.cpp:577
mythuibutton.h
WelcomeDialog::m_idleWaitForRecordingTime
int m_idleWaitForRecordingTime
Definition: welcomedialog.h:79
WelcomeDialog::ShowSettings
static void ShowSettings(GroupSetting *screen)
Definition: welcomedialog.cpp:210
WelcomeDialog::setPendingSchedUpdate
void setPendingSchedUpdate(bool newState)
Definition: welcomedialog.h:100
WelcomeDialog::m_pendingSchedUpdate
bool m_pendingSchedUpdate
Definition: welcomedialog.h:97
WelcomeDialog::m_hasConflicts
bool m_hasConflicts
Definition: welcomedialog.h:74
WelcomeDialog::m_recListUpdateMuxtex
QMutex m_recListUpdateMuxtex
Definition: welcomedialog.h:90
WelcomeDialog::m_willShutdown
bool m_willShutdown
Definition: welcomedialog.h:75
WelcomeDialog::m_secondsToShutdown
int m_secondsToShutdown
Definition: welcomedialog.h:76
mythscreentype.h
GroupSetting
Definition: standardsettings.h:432
WelcomeDialog::runEPGGrabber
void runEPGGrabber(void)
Definition: welcomedialog.cpp:620
WelcomeDialog::WelcomeDialog
WelcomeDialog(MythScreenStack *parent, const char *name)
Definition: welcomedialog.cpp:30