2012-09-16 23:03:15 +02:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
*
|
2015-01-09 00:42:43 +01:00
|
|
|
* @file rebootdialog.h
|
2012-09-16 23:03:15 +02:00
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
|
2015-01-09 00:42:43 +01:00
|
|
|
* @addtogroup [Group]
|
2012-09-16 23:03:15 +02:00
|
|
|
* @{
|
2015-01-09 00:42:43 +01:00
|
|
|
* @addtogroup RebootDialog
|
2012-09-16 23:03:15 +02:00
|
|
|
* @{
|
2015-01-09 00:42:43 +01:00
|
|
|
* @brief [Brief]
|
2012-09-16 23:03:15 +02: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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2015-01-09 00:42:43 +01:00
|
|
|
#ifndef REBOOTDIALOG_H
|
|
|
|
#define REBOOTDIALOG_H
|
2012-09-16 23:03:15 +02:00
|
|
|
|
2015-01-09 00:42:43 +01:00
|
|
|
#include <QDialog>
|
|
|
|
#include "uploadergadgetwidget.h"
|
2012-09-16 23:03:15 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
2015-01-09 00:42:43 +01:00
|
|
|
class RebootDialog;
|
2012-09-16 23:03:15 +02:00
|
|
|
}
|
|
|
|
|
2015-01-09 00:42:43 +01:00
|
|
|
class RebootDialog : public QDialog
|
|
|
|
{
|
2012-09-16 23:03:15 +02:00
|
|
|
Q_OBJECT
|
2013-05-19 17:37:30 +03:00
|
|
|
|
2012-09-16 23:03:15 +02:00
|
|
|
public:
|
2015-01-15 09:42:58 +01:00
|
|
|
explicit RebootDialog(UploaderGadgetWidget *uploader);
|
2015-01-09 00:42:43 +01:00
|
|
|
~RebootDialog();
|
2012-09-16 23:03:15 +02:00
|
|
|
|
2015-01-09 00:42:43 +01:00
|
|
|
signals:
|
|
|
|
void reboot();
|
2012-09-16 23:03:15 +02:00
|
|
|
|
|
|
|
private slots:
|
2015-01-09 00:42:43 +01:00
|
|
|
void on_okButton_clicked();
|
2014-12-29 14:50:20 +01:00
|
|
|
void progressUpdate(uploader::ProgressStep progress, QVariant message);
|
2015-01-09 00:42:43 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::RebootDialog *ui;
|
|
|
|
UploaderGadgetWidget *m_uploader;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
int exec();
|
2012-09-16 23:03:15 +02:00
|
|
|
};
|
|
|
|
|
2015-01-09 00:42:43 +01:00
|
|
|
#endif // REBOOTDIALOG_H
|