2007-07-25 20:21:06 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 by Dominik Riebeling
|
2007-07-26 21:04:55 +00:00
|
|
|
* $Id$
|
2007-07-25 20:21:06 +00:00
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-07-25 20:21:06 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef INSTALL_H
|
|
|
|
#define INSTALL_H
|
|
|
|
|
|
|
|
#include <QtGui>
|
|
|
|
|
|
|
|
#include "ui_installfrm.h"
|
2007-07-27 17:42:49 +00:00
|
|
|
#include "installzip.h"
|
2007-07-29 18:07:31 +00:00
|
|
|
#include "progressloggergui.h"
|
2008-01-25 00:12:25 +00:00
|
|
|
#include "rbsettings.h"
|
2007-07-25 20:21:06 +00:00
|
|
|
|
|
|
|
class Install : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2008-05-11 18:22:42 +00:00
|
|
|
Install(RbSettings* sett,QWidget *parent = 0);
|
2007-08-26 16:03:56 +00:00
|
|
|
void setVersionStrings(QMap<QString, QString>);
|
2007-07-25 20:21:06 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept(void);
|
2008-05-11 18:22:42 +00:00
|
|
|
|
|
|
|
private:
|
2007-07-25 20:21:06 +00:00
|
|
|
Ui::InstallFrm ui;
|
2007-07-29 18:07:31 +00:00
|
|
|
ProgressLoggerGui* logger;
|
2008-01-25 00:12:25 +00:00
|
|
|
RbSettings* settings;
|
2007-07-25 20:21:06 +00:00
|
|
|
QHttp *download;
|
|
|
|
QFile *target;
|
|
|
|
QString file;
|
|
|
|
QString fileName;
|
2007-07-27 17:42:49 +00:00
|
|
|
ZipInstaller* installer;
|
2007-08-26 16:03:56 +00:00
|
|
|
QMap<QString, QString> version;
|
2008-05-11 20:20:19 +00:00
|
|
|
QString m_backupName;
|
2007-07-25 20:21:06 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void setCached(bool);
|
|
|
|
void setDetailsCurrent(bool);
|
|
|
|
void setDetailsStable(bool);
|
|
|
|
void setDetailsArchived(bool);
|
2007-07-26 21:04:55 +00:00
|
|
|
void done(bool);
|
2008-05-11 18:53:24 +00:00
|
|
|
void changeBackupPath();
|
|
|
|
void backupCheckboxChanged(int state);
|
2007-07-29 18:41:15 +00:00
|
|
|
|
2007-07-25 20:21:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|