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>
|
|
|
|
|
2010-02-16 18:30:24 +00:00
|
|
|
#include "ui_installwindowfrm.h"
|
2009-04-27 19:58:24 +00:00
|
|
|
#include "zipinstaller.h"
|
2007-07-29 18:07:31 +00:00
|
|
|
#include "progressloggergui.h"
|
2007-07-25 20:21:06 +00:00
|
|
|
|
2010-01-20 22:18:36 +00:00
|
|
|
class InstallWindow : public QDialog
|
2007-07-25 20:21:06 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2010-01-20 22:18:36 +00:00
|
|
|
InstallWindow(QWidget *parent);
|
2007-07-25 20:21:06 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept(void);
|
2009-01-23 22:03:46 +00:00
|
|
|
|
|
|
|
private:
|
2010-02-16 18:30:24 +00:00
|
|
|
Ui::InstallWindowFrm ui;
|
2007-07-29 18:07:31 +00:00
|
|
|
ProgressLoggerGui* logger;
|
2007-07-25 20:21:06 +00:00
|
|
|
QHttp *download;
|
|
|
|
QFile *target;
|
|
|
|
QString file;
|
2007-07-27 17:42:49 +00:00
|
|
|
ZipInstaller* installer;
|
2008-05-11 20:20:19 +00:00
|
|
|
QString m_backupName;
|
2009-01-23 22:03:46 +00:00
|
|
|
void resizeEvent(QResizeEvent*);
|
2011-10-02 14:30:05 +00:00
|
|
|
void changeEvent(QEvent *event);
|
2007-07-25 20:21:06 +00:00
|
|
|
|
2008-09-28 17:02:36 +00:00
|
|
|
void changeBackupPath(QString);
|
2009-01-23 22:03:46 +00:00
|
|
|
void updateBackupLocation(void);
|
2008-09-28 17:02:36 +00:00
|
|
|
|
2007-07-25 20:21:06 +00:00
|
|
|
private slots:
|
|
|
|
void setDetailsCurrent(bool);
|
|
|
|
void setDetailsStable(bool);
|
|
|
|
void setDetailsArchived(bool);
|
2007-07-26 21:04:55 +00:00
|
|
|
void done(bool);
|
2008-09-28 17:02:36 +00:00
|
|
|
void changeBackupPath(void);
|
2008-05-11 18:53:24 +00:00
|
|
|
void backupCheckboxChanged(int state);
|
2007-07-29 18:41:15 +00:00
|
|
|
|
2007-07-25 20:21:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|