1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2007 by Dominik Riebeling
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 ****************************************************************************/
25 #include <QTemporaryFile>
27 #include "ui_rbutilqtfrm.h"
29 #include "installzip.h"
30 #include "progressloggergui.h"
31 #include "installbootloader.h"
33 #include "rbsettings.h"
35 class RbUtilQt
: public QMainWindow
40 RbUtilQt(QWidget
*parent
= 0);
46 void initDeviceNames(void);
47 QString
deviceName(QString
);
52 QTemporaryFile buildInfo
;
53 QTemporaryFile bleedingInfo
;
54 void updateManual(void);
55 ProgressLoggerGui
*logger
;
56 ZipInstaller
*installer
;
57 BootloaderInstaller
* blinstaller
;
59 QMap
<QString
, QString
> versmap
;
62 volatile bool m_installed
;
63 volatile bool m_error
;
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);
82 void installBootloaderBtn(void);
83 bool installBootloaderAuto(void);
84 void installBootloader(void);
86 void installFontsBtn(void);
87 bool installFontsAuto(void);
88 void installFonts(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);