Small changes to debug menu: Higher precision when showing boost ratio. Added average...
[kugel-rb.git] / rbutil / rbutilqt / rbutilqt.h
blob76d05c117505e7646d0d481dbf21a939268b0d90
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Riebeling
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
21 #ifndef QRBUTIL_H
22 #define QRBUTIL_H
24 #include <QSettings>
25 #include <QTemporaryFile>
27 #include "ui_rbutilqtfrm.h"
28 #include "httpget.h"
29 #include "installzip.h"
30 #include "progressloggergui.h"
31 #include "installbootloader.h"
33 #include "rbsettings.h"
35 class RbUtilQt : public QMainWindow
37 Q_OBJECT
39 public:
40 RbUtilQt(QWidget *parent = 0);
42 private:
43 Ui::RbUtilQtFrm ui;
44 RbSettings* settings;
46 void initDeviceNames(void);
47 QString deviceName(QString);
48 QString platform;
49 HttpGet *daily;
50 HttpGet *bleeding;
51 QString absolutePath;
52 QTemporaryFile buildInfo;
53 QTemporaryFile bleedingInfo;
54 void updateManual(void);
55 ProgressLoggerGui *logger;
56 ZipInstaller *installer;
57 BootloaderInstaller* blinstaller;
58 QUrl proxy(void);
59 QMap<QString, QString> versmap;
60 bool chkConfig(bool);
62 volatile bool m_installed;
63 volatile bool m_error;
64 bool m_gotInfo;
66 private slots:
67 void about(void);
68 void help(void);
69 void configDialog(void);
70 void updateDevice(void);
71 void updateSettings(void);
73 void completeInstall(void);
74 void smallInstall(void);
75 bool smallInstallInner(void);
76 void installdone(bool error);
78 void installBtn(void);
79 bool installAuto(void);
80 void install(void);
82 void installBootloaderBtn(void);
83 bool installBootloaderAuto(void);
84 void installBootloader(void);
86 void installFontsBtn(void);
87 bool installFontsAuto(void);
88 void installFonts(void);
90 bool hasDoom(void);
91 void installDoomBtn(void);
92 bool installDoomAuto(void);
93 void installDoom(void);
95 void createTalkFiles(void);
96 void createVoiceFile(void);
97 void downloadDone(bool);
98 void downloadDone(int, bool);
99 void downloadBleedingDone(bool);
100 void downloadInfo(void);
101 void installVoice(void);
102 void installThemes(void);
103 void uninstall(void);
104 void uninstallBootloader(void);
105 void downloadManual(void);
106 void installPortable(void);
107 void updateInfo(void);
108 void updateTabs(int);
112 #endif