add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / rbutil / rbutilqt / installthemes.h
blob0c71ff73768e0236410d16fffab84fb1ada15dc1
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"
30 #include "rbsettings.h"
32 class ThemesInstallWindow : public QDialog
34 Q_OBJECT
36 public:
37 ThemesInstallWindow(QWidget* parent = 0);
38 ~ThemesInstallWindow();
39 void setSettings(RbSettings* sett){settings=sett;}
40 void downloadInfo(void);
41 void show(void);
43 public slots:
44 void accept(void);
45 void acceptAll(void);
47 private:
48 Ui::ThemeInstallFrm ui;
49 RbSettings* settings;
50 HttpGet *getter;
51 HttpGet igetter;
52 QTemporaryFile themesInfo;
53 QString resolution(void);
54 int currentItem;
55 void resizeEvent(QResizeEvent*);
56 QByteArray imgData;
57 ProgressLoggerGui *logger;
58 ZipInstaller *installer;
59 QString file;
60 QString fileName;
62 QString infocachedir;
64 private slots:
65 void downloadDone(bool);
66 void downloadDone(int, bool);
67 void updateDetails(int);
68 void updateImage(bool);
69 void abort(void);
73 #endif