blob: 3ac30bd98385bf0d1127240f9c73a04148e19303 [file] [log] [blame]
Dominik Riebeling680408f2007-07-25 20:21:06 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Dominik Riebeling
Dominik Wengera78d51c2007-07-26 21:04:55 +000010 * $Id$
Dominik Riebeling680408f2007-07-25 20:21:06 +000011 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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 Riebeling680408f2007-07-25 20:21:06 +000016 *
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 Riebeling680408f2007-07-25 20:21:06 +000026
Dominik Riebeling680408f2007-07-25 20:21:06 +000027#include "ui_installfrm.h"
Dominik Wenger092c1782007-07-27 17:42:49 +000028#include "installzip.h"
Dominik Wenger917e0ac2007-07-29 18:07:31 +000029#include "progressloggergui.h"
Dominik Wenger3a54c9b2008-01-25 00:12:25 +000030#include "rbsettings.h"
Dominik Riebeling680408f2007-07-25 20:21:06 +000031
32class Install : public QDialog
33{
34 Q_OBJECT
35 public:
Dominik Wengerd24eb9e2008-05-11 18:22:42 +000036 Install(RbSettings* sett,QWidget *parent = 0);
Dominik Riebeling848abc82007-08-26 16:03:56 +000037 void setVersionStrings(QMap<QString, QString>);
Dominik Riebeling680408f2007-07-25 20:21:06 +000038
39 public slots:
40 void accept(void);
Dominik Wengerd24eb9e2008-05-11 18:22:42 +000041
42 private:
Dominik Riebeling680408f2007-07-25 20:21:06 +000043 Ui::InstallFrm ui;
Dominik Wenger917e0ac2007-07-29 18:07:31 +000044 ProgressLoggerGui* logger;
Dominik Wenger3a54c9b2008-01-25 00:12:25 +000045 RbSettings* settings;
Dominik Riebeling680408f2007-07-25 20:21:06 +000046 QHttp *download;
47 QFile *target;
Dominik Riebeling680408f2007-07-25 20:21:06 +000048 QString file;
49 QString fileName;
Dominik Wenger092c1782007-07-27 17:42:49 +000050 ZipInstaller* installer;
Dominik Riebeling848abc82007-08-26 16:03:56 +000051 QMap<QString, QString> version;
Dominik Wenger4296bc42008-05-11 20:20:19 +000052 QString m_backupName;
Dominik Riebeling680408f2007-07-25 20:21:06 +000053
54 private slots:
55 void setCached(bool);
Dominik Riebeling680408f2007-07-25 20:21:06 +000056 void setDetailsCurrent(bool);
57 void setDetailsStable(bool);
58 void setDetailsArchived(bool);
Dominik Wengera78d51c2007-07-26 21:04:55 +000059 void done(bool);
Dominik Wenger76e6ad92008-05-11 18:53:24 +000060 void changeBackupPath();
61 void backupCheckboxChanged(int state);
Dominik Riebelingd77a7ea2007-07-29 18:41:15 +000062
Dominik Riebeling680408f2007-07-25 20:21:06 +000063};
64
65
66#endif