Fix advanced EQ menu
[maemo-rb.git] / rbutil / rbutilqt / rbutilqt.h
blob350aca19562689e72b1c79ecb4395530e8e5eaa6
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"
37 #include "selectiveinstallwidget.h"
38 #include "backupdialog.h"
40 class RbUtilQt : public QMainWindow
42 Q_OBJECT
44 public:
45 RbUtilQt(QWidget *parent = 0);
46 static QList<QTranslator*> translators;
47 static bool chkConfig(QWidget *parent = 0);
49 private:
50 ManualWidget *manual;
51 InfoWidget *info;
52 SelectiveInstallWidget* selectiveinstallwidget;
53 BackupDialog *backupdialog;
54 Ui::RbUtilQtFrm ui;
56 void changeEvent(QEvent *e);
57 void initDeviceNames(void);
58 QString deviceName(QString);
59 QString platform;
60 HttpGet *daily;
61 HttpGet *bleeding;
62 HttpGet *update;
63 QString absolutePath;
64 QTemporaryFile buildInfo;
65 QTemporaryFile bleedingInfo;
66 ProgressLoggerGui *logger;
67 ZipInstaller *installer;
68 QUrl proxy(void);
70 volatile bool m_installed;
71 volatile bool m_error;
72 QString m_networkerror;
73 bool m_gotInfo;
74 bool m_auto;
76 private slots:
77 void shutdown(void);
78 void about(void);
79 void help(void);
80 void sysinfo(void);
81 void trace(void);
82 void eject(void);
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);
93 void backup(void);
95 void installVoice(void);
96 void uninstall(void);
97 void uninstallBootloader(void);
98 void installPortable(void);
99 void updateTabs(int);
101 void checkUpdate(void);
102 void downloadUpdateDone(bool errror);
105 #endif