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);
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  void runMythFillDatabase(void);
55  void ShowSettings(GroupSetting* screen);
56 
57  //
58  // GUI stuff
59  //
64 
66 
68 
69  QTimer *m_updateStatusTimer; // audited ref #5318
70  QTimer *m_updateScreenTimer; // audited ref #5318
71 
72  QString m_appBinDir;
84  QStringList m_statusList;
86 
87  vector<TunerStatus> m_tunerList;
88  vector<ProgramInfo> m_scheduledList;
89 
92 
94  void setPendingRecListUpdate(bool newState) { m_pendingRecListUpdate = newState; }
95 
98 
99  bool pendingSchedUpdate() const { return m_pendingSchedUpdate; }
100  void setPendingSchedUpdate(bool newState) { m_pendingSchedUpdate = newState; }
101 
102 };
103 
104 #endif
bool updateScheduledList(void)
unsigned int slots[4]
Definition: element.c:38
uint m_screenScheduledNo
Definition: welcomedialog.h:82
void closeDialog(void)
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
MythUIText * m_warning_text
Definition: welcomedialog.h:63
QDateTime m_nextRecordingStart
Definition: welcomedialog.h:77
QString m_appBinDir
Definition: welcomedialog.h:72
Basic menu dialog, message and a list of options.
MythUIText * m_status_text
Definition: welcomedialog.h:60
bool checkConnectionToServer(void)
int m_idleWaitForRecordingTime
Definition: welcomedialog.h:79
void updateAll(void)
unsigned int uint
Definition: compat.h:140
bool m_pendingRecListUpdate
Definition: welcomedialog.h:91
void ShowMenu(void) override
MythDialogBox * m_menuPopup
Definition: welcomedialog.h:67
bool m_frontendIsRunning
Definition: welcomedialog.h:85
QTimer * m_updateStatusTimer
Definition: welcomedialog.h:69
bool pendingSchedUpdate() const
Definition: welcomedialog.h:99
MythUIText * m_scheduled_text
Definition: welcomedialog.h:62
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIText * m_recording_text
Definition: welcomedialog.h:61
vector< TunerStatus > m_tunerList
Definition: welcomedialog.h:87
QMutex m_SchedUpdateMuxtex
Definition: welcomedialog.h:96
QStringList m_statusList
Definition: welcomedialog.h:84
WelcomeDialog(MythScreenStack *parent, const char *name)
void setPendingSchedUpdate(bool newState)
void updateScreen(void)
const char * name
Definition: ParseText.cpp:328
void startFrontend(void)
vector< ProgramInfo > m_scheduledList
Definition: welcomedialog.h:88
A single button widget.
Definition: mythuibutton.h:21
void checkAutoStart(void)
uint m_screenTunerNo
Definition: welcomedialog.h:81
void updateStatus(void)
void updateStatusMessage(void)
MythUIButton * m_startfrontend_button
Definition: welcomedialog.h:65
void runMythFillDatabase(void)
bool pendingRecListUpdate() const
Definition: welcomedialog.h:93
void startFrontendClick(void)
void runEPGGrabber(void)
bool m_bWillShutdown
Definition: welcomedialog.h:75
void setPendingRecListUpdate(bool newState)
Definition: welcomedialog.h:94
bool m_pendingSchedUpdate
Definition: welcomedialog.h:97
QMutex m_RecListUpdateMuxtex
Definition: welcomedialog.h:90
Screen in which all other widgets are contained and rendered.
void unlockShutdown(void)
bool Create(void) override
void shutdownNow(void)
int m_secondsToShutdown
Definition: welcomedialog.h:76
bool updateRecordingList(void)
void ShowSettings(GroupSetting *screen)
QTimer * m_updateScreenTimer
Definition: welcomedialog.h:70
void customEvent(QEvent *e) override
void lockShutdown(void)