blob: f1c98ab5d1f42d4baee10599d8507bdd33e513a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#ifndef WELCOMEDIALOG_H_
#define WELCOMEDIALOG_H_
#include <iostream>
using namespace std;
#include <qdatetime.h>
#include "mythdialogs.h"
#include "libmyth/dialogbox.h"
class WelcomeDialog : public MythThemedDialog
{
Q_OBJECT
public:
WelcomeDialog(MythMainWindow *parent,
QString window_name,
QString theme_filename,
const char* name = 0);
~WelcomeDialog();
void keyPressEvent(QKeyEvent *e);
void wireUpTheme();
int exec(void);
protected slots:
void updateAll(void);
void updateStatus(void);
void updateScreen(void);
void closeDialog();
void updateTime();
void showPopup();
void showPopup_2();
void GO_popup(QString);
void Reboot_popup();
void cancelPopup();
void MAINPopup();
QString diskmodel(QString,QString);
QString findinstallsouce(void);
void Display_2ndpopup();
bool updateRecordingList(void);
bool updateScheduledList(void);
void shutdownNow(int);
void install_hda(void);
void install_hdb(void);
void install_hdc(void);
void install_hdd(void);
void install_sda(void);
void install_sdb(void);
void install_sdc(void);
void install_sdd(void);
void install_net(void);
void install_generic(void);
void install_it(void);
void runLIVECD(void);
void busy_box(void);
void busy_find_oldsettings(void);
int ask_validate_network(void);
private:
void updateStatusMessage(void);
UITextType* getTextType(QString name);
MythPopupBox *popup;
DialogBox *reboot_box;
DialogBox *upgrade_box;
//
// GUI stuff
//
UITextType *m_status_text;
UITextType *m_recording_text;
UITextType *m_scheduled_text;
UITextType *m_error_text;
UITextType *m_mv_text;
UITextType *m_warning_text;
UITextType *m_time_text;
UITextType *m_date_text;
QTimer *m_updateStatusTimer;
QTimer *m_updateScreenTimer;
QTimer *m_timeTimer;
QString m_installDir;
QString m_timeFormat;
QStringList m_statusList;
QString install_drive ;
QString install_text;
QString version_text;
QString recording_text;
QString scheduled_text;
QString error_text;
QString mythvantage_text;
string bin_prefix;
QString current_hostname;
bool I_AM_BUSY;
bool WORKING_ON_INSTALL;
};
#endif
|