Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * |
| 9 | * Copyright (C) 2007 by Dominik Riebeling |
Dominik Wenger | a78d51c | 2007-07-26 21:04:55 +0000 | [diff] [blame] | 10 | * $Id$ |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License |
| 14 | * as published by the Free Software Foundation; either version 2 |
| 15 | * of the License, or (at your option) any later version. |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
| 21 | |
| 22 | #ifndef INSTALL_H |
| 23 | #define INSTALL_H |
| 24 | |
| 25 | #include <QtGui> |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 26 | |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 27 | #include "ui_installfrm.h" |
Dominik Wenger | 092c178 | 2007-07-27 17:42:49 +0000 | [diff] [blame] | 28 | #include "installzip.h" |
Dominik Wenger | 917e0ac | 2007-07-29 18:07:31 +0000 | [diff] [blame] | 29 | #include "progressloggergui.h" |
Dominik Wenger | 3a54c9b | 2008-01-25 00:12:25 +0000 | [diff] [blame] | 30 | #include "rbsettings.h" |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 31 | |
| 32 | class Install : public QDialog |
| 33 | { |
| 34 | Q_OBJECT |
| 35 | public: |
Dominik Wenger | d24eb9e | 2008-05-11 18:22:42 +0000 | [diff] [blame] | 36 | Install(RbSettings* sett,QWidget *parent = 0); |
Dominik Riebeling | 848abc8 | 2007-08-26 16:03:56 +0000 | [diff] [blame] | 37 | void setVersionStrings(QMap<QString, QString>); |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 38 | |
| 39 | public slots: |
| 40 | void accept(void); |
Dominik Wenger | d24eb9e | 2008-05-11 18:22:42 +0000 | [diff] [blame] | 41 | |
| 42 | private: |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 43 | Ui::InstallFrm ui; |
Dominik Wenger | 917e0ac | 2007-07-29 18:07:31 +0000 | [diff] [blame] | 44 | ProgressLoggerGui* logger; |
Dominik Wenger | 3a54c9b | 2008-01-25 00:12:25 +0000 | [diff] [blame] | 45 | RbSettings* settings; |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 46 | QHttp *download; |
| 47 | QFile *target; |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 48 | QString file; |
| 49 | QString fileName; |
Dominik Wenger | 092c178 | 2007-07-27 17:42:49 +0000 | [diff] [blame] | 50 | ZipInstaller* installer; |
Dominik Riebeling | 848abc8 | 2007-08-26 16:03:56 +0000 | [diff] [blame] | 51 | QMap<QString, QString> version; |
Dominik Wenger | 4296bc4 | 2008-05-11 20:20:19 +0000 | [diff] [blame] | 52 | QString m_backupName; |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 53 | |
| 54 | private slots: |
| 55 | void setCached(bool); |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 56 | void setDetailsCurrent(bool); |
| 57 | void setDetailsStable(bool); |
| 58 | void setDetailsArchived(bool); |
Dominik Wenger | a78d51c | 2007-07-26 21:04:55 +0000 | [diff] [blame] | 59 | void done(bool); |
Dominik Wenger | 76e6ad9 | 2008-05-11 18:53:24 +0000 | [diff] [blame] | 60 | void changeBackupPath(); |
| 61 | void backupCheckboxChanged(int state); |
Dominik Riebeling | d77a7ea | 2007-07-29 18:41:15 +0000 | [diff] [blame] | 62 | |
Dominik Riebeling | 680408f | 2007-07-25 20:21:06 +0000 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | |
| 66 | #endif |