Optimize hline, fillrect and mono bitmap drawing for chunky displays (16 bit colour...
[kugel-rb.git] / rbutil / rbutilqt / rbutilqt.h
blobbf1f64e7b380475c52b7d4c4bca1f3e08bf25c01
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Riebeling
10 * $Id$
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 ****************************************************************************/
23 #ifndef QRBUTIL_H
24 #define QRBUTIL_H
26 #include <QSettings>
27 #include <QTemporaryFile>
29 #include "ui_rbutilqtfrm.h"
30 #include "httpget.h"
31 #include "installzip.h"
32 #include "progressloggergui.h"
33 #include "bootloaderinstallbase.h"
35 #include "rbsettings.h"
37 class RbUtilQt : public QMainWindow
39 Q_OBJECT
41 public:
42 RbUtilQt(QWidget *parent = 0);
44 private:
45 Ui::RbUtilQtFrm ui;
46 RbSettings* settings;
48 void initDeviceNames(void);
49 QString deviceName(QString);
50 QString platform;
51 HttpGet *daily;
52 HttpGet *bleeding;
53 QString absolutePath;
54 QTemporaryFile buildInfo;
55 QTemporaryFile bleedingInfo;
56 void updateManual(void);
57 ProgressLoggerGui *logger;
58 ZipInstaller *installer;
59 QUrl proxy(void);
60 QMap<QString, QString> versmap;
61 bool chkConfig(bool);
63 volatile bool m_installed;
64 volatile bool m_error;
65 QString m_networkerror;
66 bool m_gotInfo;
67 bool m_auto;
69 private slots:
70 void about(void);
71 void help(void);
72 void sysinfo(void);
73 void configDialog(void);
74 void updateDevice(void);
75 void updateSettings(void);
77 void completeInstall(void);
78 void smallInstall(void);
79 bool smallInstallInner(void);
80 void installdone(bool error);
82 void installBtn(void);
83 bool installAuto(void);
84 void install(void);
86 void installBootloaderBtn(void);
87 bool installBootloaderAuto(void);
88 void installBootloader(void);
89 void installBootloaderPost(bool error);
91 void installFontsBtn(void);
92 bool installFontsAuto(void);
93 void installFonts(void);
95 bool hasDoom(void);
96 void installDoomBtn(void);
97 bool installDoomAuto(void);
98 void installDoom(void);
100 void createTalkFiles(void);
101 void createVoiceFile(void);
102 void downloadDone(bool);
103 void downloadDone(int, bool);
104 void downloadBleedingDone(bool);
105 void downloadInfo(void);
107 void installVoice(void);
108 void installThemes(void);
109 void uninstall(void);
110 void uninstallBootloader(void);
111 void downloadManual(void);
112 void installPortable(void);
113 void updateInfo(void);
114 void updateTabs(int);
117 #endif