The threading model should be set from configure, not config.h.
[maemo-rb.git] / rbutil / rbutilqt / rbutilqt.h
blob67fbff78e1d2e1d78ba5fb44da7927fe9539d892
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
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 ****************************************************************************/
22 #ifndef QRBUTIL_H
23 #define QRBUTIL_H
25 #include <QSettings>
26 #include <QTemporaryFile>
27 #include <QList>
28 #include <QTranslator>
30 #include "ui_rbutilqtfrm.h"
31 #include "httpget.h"
32 #include "zipinstaller.h"
33 #include "progressloggergui.h"
34 #include "bootloaderinstallbase.h"
35 #include "manualwidget.h"
36 #include "infowidget.h"
38 class RbUtilQt : public QMainWindow
40 Q_OBJECT
42 public:
43 RbUtilQt(QWidget *parent = 0);
44 static QList<QTranslator*> translators;
45 static bool chkConfig(QWidget *parent = 0);
47 private:
48 ManualWidget *manual;
49 InfoWidget *info;
50 Ui::RbUtilQtFrm ui;
52 void changeEvent(QEvent *e);
53 void initDeviceNames(void);
54 QString deviceName(QString);
55 QString platform;
56 HttpGet *daily;
57 HttpGet *bleeding;
58 HttpGet *update;
59 QString absolutePath;
60 QTemporaryFile buildInfo;
61 QTemporaryFile bleedingInfo;
62 ProgressLoggerGui *logger;
63 ZipInstaller *installer;
64 QUrl proxy(void);
66 volatile bool m_installed;
67 volatile bool m_error;
68 QString m_networkerror;
69 bool m_gotInfo;
70 bool m_auto;
72 private slots:
73 void shutdown(void);
74 void about(void);
75 void help(void);
76 void sysinfo(void);
77 void trace(void);
78 void configDialog(void);
79 void updateDevice(void);
80 void updateSettings(void);
82 void completeInstall(void);
83 void smallInstall(void);
84 bool smallInstallInner(void);
85 void installdone(bool error);
87 void installBtn(void);
88 bool installAuto(void);
89 void install(void);
91 void installBootloaderBtn(void);
92 bool installBootloaderAuto(void);
93 void installBootloader(void);
94 void installBootloaderPost(bool error);
96 void installFontsBtn(void);
97 bool installFontsAuto(void);
98 void installFonts(void);
100 bool hasDoom(void);
101 void installDoomBtn(void);
102 bool installDoomAuto(void);
103 void installDoom(void);
105 void createTalkFiles(void);
106 void createVoiceFile(void);
107 void downloadDone(bool);
108 void downloadInfo(void);
110 void installVoice(void);
111 void installThemes(void);
112 void uninstall(void);
113 void uninstallBootloader(void);
114 void installPortable(void);
115 void updateTabs(int);
117 void checkUpdate(void);
118 void downloadUpdateDone(bool errror);
121 #endif