2007-07-29 18:07:31 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 by Dominik Wenger
|
|
|
|
*
|
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-29 18:07:31 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef PROGRESSLOGGERGUI_H
|
|
|
|
#define PROGRESSLOGGERGUI_H
|
2007-09-15 22:13:41 +00:00
|
|
|
|
2013-01-27 11:01:56 +00:00
|
|
|
#include <QWidget>
|
2007-07-29 18:07:31 +00:00
|
|
|
|
|
|
|
#include "progressloggerinterface.h"
|
2008-03-28 17:30:37 +00:00
|
|
|
#include "ui_progressloggerfrm.h"
|
2007-07-29 18:07:31 +00:00
|
|
|
|
2007-09-15 22:13:41 +00:00
|
|
|
class ProgressLoggerGui :public ProgressloggerInterface
|
2007-07-29 18:07:31 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2008-05-10 17:53:15 +00:00
|
|
|
ProgressLoggerGui(QWidget * parent);
|
2007-09-15 22:13:41 +00:00
|
|
|
|
2007-07-29 18:07:31 +00:00
|
|
|
virtual void setProgressValue(int value);
|
|
|
|
virtual void setProgressMax(int max);
|
|
|
|
virtual int getProgressMax();
|
2008-05-23 21:07:58 +00:00
|
|
|
virtual void setProgressVisible(bool);
|
2007-07-29 18:07:31 +00:00
|
|
|
|
|
|
|
signals:
|
2009-12-04 21:33:25 +00:00
|
|
|
void aborted();
|
|
|
|
void closed();
|
2007-07-29 18:07:31 +00:00
|
|
|
|
|
|
|
public slots:
|
2008-05-21 20:57:19 +00:00
|
|
|
virtual void addItem(const QString &text); //! add a string to the progress list
|
|
|
|
virtual void addItem(const QString &text, int flag); //! add a string to the list
|
2008-05-23 21:07:58 +00:00
|
|
|
virtual void setProgress(int, int); //! set progress bar
|
2008-05-21 20:57:19 +00:00
|
|
|
|
2007-07-29 18:07:31 +00:00
|
|
|
virtual void close();
|
|
|
|
virtual void show();
|
2009-05-02 18:40:04 +00:00
|
|
|
virtual void setRunning();
|
|
|
|
virtual void setFinished();
|
2007-09-15 22:13:41 +00:00
|
|
|
|
2009-08-15 17:02:25 +00:00
|
|
|
void saveErrorLog();
|
2007-09-15 22:13:41 +00:00
|
|
|
private:
|
2008-03-28 17:30:37 +00:00
|
|
|
Ui::ProgressLoggerFrm dp;
|
2007-07-29 18:07:31 +00:00
|
|
|
QDialog *downloadProgress;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|