summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/rbutilqt.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/rbutilqt.h')
-rw-r--r--utils/rbutilqt/rbutilqt.h104
1 files changed, 104 insertions, 0 deletions
diff --git a/utils/rbutilqt/rbutilqt.h b/utils/rbutilqt/rbutilqt.h
new file mode 100644
index 0000000000..e20749d438
--- /dev/null
+++ b/utils/rbutilqt/rbutilqt.h
@@ -0,0 +1,104 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Dominik Riebeling
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
18 *
19 ****************************************************************************/
20
21
22#ifndef QRBUTIL_H
23#define QRBUTIL_H
24
25#include <QSettings>
26#include <QTemporaryFile>
27#include <QList>
28#include <QTranslator>
29
30#include "ui_rbutilqtfrm.h"
31#include "httpget.h"
32#include "zipinstaller.h"
33#include "progressloggergui.h"
34#include "bootloaderinstallbase.h"
35#include "infowidget.h"
36#include "selectiveinstallwidget.h"
37#include "backupdialog.h"
38
39class RbUtilQt : public QMainWindow
40{
41 Q_OBJECT
42
43 public:
44 RbUtilQt(QWidget *parent = nullptr);
45 static QList<QTranslator*> translators;
46 static bool chkConfig(QWidget *parent = nullptr);
47
48 private:
49 InfoWidget *info;
50 SelectiveInstallWidget* selectiveinstallwidget;
51 BackupDialog *backupdialog;
52 Ui::RbUtilQtFrm ui;
53
54 void changeEvent(QEvent *e);
55 void initDeviceNames(void);
56 QString deviceName(QString);
57 QString platform;
58 HttpGet *daily;
59 HttpGet *bleeding;
60 HttpGet *update;
61 QString absolutePath;
62 QTemporaryFile buildInfo;
63 QTemporaryFile bleedingInfo;
64 ProgressLoggerGui *logger;
65 ZipInstaller *installer;
66 QUrl proxy(void);
67
68 volatile bool m_installed;
69 volatile bool m_error;
70 QString m_networkerror;
71 bool m_gotInfo;
72 bool m_auto;
73
74 private slots:
75 void shutdown(void);
76 void about(void);
77 void help(void);
78 void sysinfo(void);
79 void changelog(void);
80 void trace(void);
81 void eject(void);
82 void configDialog(void);
83 void updateDevice(void);
84 void updateSettings(void);
85
86 void installdone(bool error);
87
88 void createTalkFiles(void);
89 void createVoiceFile(void);
90 void downloadDone(bool);
91 void downloadInfo(void);
92 void backup(void);
93
94 void uninstall(void);
95 void uninstallBootloader(void);
96 void installPortable(void);
97 void updateTabs(int);
98
99 void checkUpdate(void);
100 void downloadUpdateDone(bool errror);
101};
102
103#endif
104