small simplification, whitespace cleanup and dos2unix.
[Rockbox.git] / rbutil / rbutilqt / installzipwindow.h
blob7208ff9ffbc5c238744d30da1527f10757276836
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: installzipwindow.h 14027 2007-07-27 17:42:49Z domonoky $
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 INSTALLZIPWINDOW_H
21 #define INSTALLZIPWINDOW_H
23 #include <QtGui>
25 #include <QSettings>
27 #include "ui_installzipfrm.h"
28 #include "ui_installprogressfrm.h"
29 #include "installzip.h"
32 class InstallZipWindow : public QDialog
34 Q_OBJECT
35 public:
36 InstallZipWindow(QWidget *parent = 0);
37 void setProxy(QUrl);
38 void setMountPoint(QString);
39 void setUrl(QString);
40 void setLogSection(QString name){logsection = name; }
41 void setUserSettings(QSettings*);
42 void setDeviceSettings(QSettings*);
44 public slots:
45 void accept(void);
47 private:
48 Ui::InstallZipFrm ui;
49 Ui::InstallProgressFrm dp;
50 QUrl proxy;
51 QSettings *devices;
52 QSettings *userSettings;
53 QDialog *downloadProgress;
54 QString file;
55 QString fileName;
56 QString mountPoint;
57 QString url;
58 QString logsection;
59 ZipInstaller* installer;
61 private slots:
62 void browseFolder(void);
63 void done(bool);
68 #endif