Make addItem() a slot to be able adding items using a signal.
[Rockbox.git] / rbutil / rbutilqt / install.h
blob37fac4f8b7713c9f4d22b726f980ce7217516a04
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 "ui_installfrm.h"
26 #include "installzip.h"
27 #include "progressloggergui.h"
28 #include "rbsettings.h"
30 class Install : public QDialog
32 Q_OBJECT
33 public:
34 Install(RbSettings* sett,QWidget *parent = 0);
35 void setVersionStrings(QMap<QString, QString>);
37 public slots:
38 void accept(void);
40 private:
41 Ui::InstallFrm ui;
42 ProgressLoggerGui* logger;
43 RbSettings* settings;
44 QHttp *download;
45 QFile *target;
46 QString file;
47 QString fileName;
48 ZipInstaller* installer;
49 QMap<QString, QString> version;
50 QString m_backupName;
52 private slots:
53 void setCached(bool);
54 void setDetailsCurrent(bool);
55 void setDetailsStable(bool);
56 void setDetailsArchived(bool);
57 void done(bool);
58 void updateDataReadProgress(int read, int total);
59 void changeBackupPath();
60 void backupCheckboxChanged(int state);
65 #endif