The png doesn't need to be of that high resolution.
[Rockbox.git] / rbutil / rbutilqt / install.h
blob17c4ba1086f669bb43d93f67e06fd084835d0874
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 INSTALL_H
21 #define INSTALL_H
23 #include <QtGui>
25 #include <QSettings>
27 #include "ui_installfrm.h"
28 #include "installzip.h"
29 #include "progressloggergui.h"
31 class Install : public QDialog
33 Q_OBJECT
34 public:
35 Install(QWidget *parent = 0);
36 void setProxy(QUrl);
37 void setUserSettings(QSettings*);
38 void setDeviceSettings(QSettings*);
39 void setVersionStrings(QMap<QString, QString>);
41 public slots:
42 void accept(void);
44 private:
45 Ui::InstallFrm ui;
46 ProgressLoggerGui* logger;
47 QUrl proxy;
48 QSettings *devices;
49 QSettings *userSettings;
50 QHttp *download;
51 QFile *target;
52 QString file;
53 QString fileName;
54 ZipInstaller* installer;
55 QMap<QString, QString> version;
57 private slots:
58 void setCached(bool);
59 void setDetailsCurrent(bool);
60 void setDetailsStable(bool);
61 void setDetailsArchived(bool);
62 void done(bool);
67 #endif