1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2007 by Dominik Riebeling
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.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
26 #include <QTemporaryFile>
28 #include <QTranslator>
30 #include "ui_rbutilqtfrm.h"
32 #include "zipinstaller.h"
33 #include "progressloggergui.h"
34 #include "bootloaderinstallbase.h"
35 #include "manualwidget.h"
36 #include "infowidget.h"
37 #include "selectiveinstallwidget.h"
38 #include "backupdialog.h"
40 class RbUtilQt
: public QMainWindow
45 RbUtilQt(QWidget
*parent
= 0);
46 static QList
<QTranslator
*> translators
;
47 static bool chkConfig(QWidget
*parent
= 0);
52 SelectiveInstallWidget
* selectiveinstallwidget
;
53 BackupDialog
*backupdialog
;
56 void changeEvent(QEvent
*e
);
57 void initDeviceNames(void);
58 QString
deviceName(QString
);
64 QTemporaryFile buildInfo
;
65 QTemporaryFile bleedingInfo
;
66 ProgressLoggerGui
*logger
;
67 ZipInstaller
*installer
;
70 volatile bool m_installed
;
71 volatile bool m_error
;
72 QString m_networkerror
;
83 void configDialog(void);
84 void updateDevice(void);
85 void updateSettings(void);
87 void installdone(bool error
);
89 void createTalkFiles(void);
90 void createVoiceFile(void);
91 void downloadDone(bool);
92 void downloadInfo(void);
95 void installVoice(void);
97 void uninstallBootloader(void);
98 void installPortable(void);
101 void checkUpdate(void);
102 void downloadUpdateDone(bool errror
);