Oops, part 2: I shouldn't remove an icon that is still in use. Also convert some...
[Rockbox.git] / rbutil / rbutilqt / installthemes.h
blobda6ad86485d7d64641616467e6353e2b874197d9
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Riebeling
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef INSTALLTHEMES_H
21 #define INSTALLTHEMES_H
23 #include <QtGui>
24 #include <QTemporaryFile>
26 #include "ui_installthemesfrm.h"
27 #include "httpget.h"
28 #include "installzip.h"
29 #include "progressloggergui.h"
31 class ThemesInstallWindow : public QDialog
33 Q_OBJECT
35 public:
36 ThemesInstallWindow(QWidget* parent = 0);
37 void setDeviceSettings(QSettings*);
38 void setUserSettings(QSettings *);
39 void setProxy(QUrl);
40 void downloadInfo(void);
41 void show(void);
42 void accept(void);
44 public slots:
46 private:
47 Ui::ThemeInstallFrm ui;
48 QSettings *devices;
49 QSettings *userSettings;
50 HttpGet *getter;
51 HttpGet igetter;
52 QTemporaryFile themesInfo;
53 QString resolution(void);
54 QUrl proxy;
55 int currentItem;
56 void resizeEvent(QResizeEvent*);
57 QByteArray imgData;
58 ProgressLoggerGui *logger;
59 ZipInstaller *installer;
60 QString file;
61 QString fileName;
63 private slots:
64 void downloadDone(bool);
65 void downloadDone(int, bool);
66 void updateDetails(int);
67 void updateImage(bool);
68 void abort(void);
72 #endif