1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2007 by Dominik Riebeling
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
27 #include <QTemporaryFile>
29 #include "ui_rbutilqtfrm.h"
31 #include "installzip.h"
32 #include "progressloggergui.h"
33 #include "installbootloader.h"
35 #include "rbsettings.h"
37 class RbUtilQt
: public QMainWindow
42 RbUtilQt(QWidget
*parent
= 0);
48 void initDeviceNames(void);
49 QString
deviceName(QString
);
54 QTemporaryFile buildInfo
;
55 QTemporaryFile bleedingInfo
;
56 void updateManual(void);
57 ProgressLoggerGui
*logger
;
58 ZipInstaller
*installer
;
59 BootloaderInstaller
* blinstaller
;
61 QMap
<QString
, QString
> versmap
;
64 volatile bool m_installed
;
65 volatile bool m_error
;
72 void configDialog(void);
73 void updateDevice(void);
74 void updateSettings(void);
76 void completeInstall(void);
77 void smallInstall(void);
78 bool smallInstallInner(void);
79 void installdone(bool error
);
81 void installBtn(void);
82 bool installAuto(void);
85 void installBootloaderBtn(void);
86 bool installBootloaderAuto(void);
87 void installBootloader(void);
89 void installFontsBtn(void);
90 bool installFontsAuto(void);
91 void installFonts(void);
94 void installDoomBtn(void);
95 bool installDoomAuto(void);
96 void installDoom(void);
98 void createTalkFiles(void);
99 void createVoiceFile(void);
100 void downloadDone(bool);
101 void downloadDone(int, bool);
102 void downloadBleedingDone(bool);
103 void downloadInfo(void);
104 void installVoice(void);
105 void installThemes(void);
106 void uninstall(void);
107 void uninstallBootloader(void);
108 void downloadManual(void);
109 void installPortable(void);
110 void updateInfo(void);
111 void updateTabs(int);