summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/installthemes.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/installthemes.h')
-rw-r--r--rbutil/rbutilqt/installthemes.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/installthemes.h b/rbutil/rbutilqt/installthemes.h
new file mode 100644
index 0000000000..da6ad86485
--- /dev/null
+++ b/rbutil/rbutilqt/installthemes.h
@@ -0,0 +1,72 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Dominik Riebeling
10 * $Id$
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef INSTALLTHEMES_H
21#define INSTALLTHEMES_H
22
23#include <QtGui>
24#include <QTemporaryFile>
25
26#include "ui_installthemesfrm.h"
27#include "httpget.h"
28#include "installzip.h"
29#include "progressloggergui.h"
30
31class ThemesInstallWindow : public QDialog
32{
33 Q_OBJECT
34
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);
43
44 public slots:
45
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;
62
63 private slots:
64 void downloadDone(bool);
65 void downloadDone(int, bool);
66 void updateDetails(int);
67 void updateImage(bool);
68 void abort(void);
69};
70
71
72#endif