linux: respect http_proxy value for "system" proxy settings.
[Rockbox.git] / rbutil / rbutilqt / install.h
blob002963f75a87e46a944060339160647193d586f1
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 setReleased(QString);
38 void setMountPoint(QString);
39 void setUserSettings(QSettings*);
40 void setDeviceSettings(QSettings*);
41 void setArchivedString(QString);
43 public slots:
44 void accept(void);
46 private:
47 Ui::InstallFrm ui;
48 ProgressLoggerGui* logger;
49 QUrl proxy;
50 QString releasever;
51 QSettings *devices;
52 QSettings *userSettings;
53 QHttp *download;
54 QFile *target;
55 QString file;
56 QString fileName;
57 QString mountPoint;
58 QString archived;
59 ZipInstaller* installer;
61 private slots:
62 void setCached(bool);
63 void browseFolder(void);
64 void setDetailsCurrent(bool);
65 void setDetailsStable(bool);
66 void setDetailsArchived(bool);
67 void done(bool);
72 #endif