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
|
|
|
|
2021-12-26 10:05:25 +00:00
|
|
|
#include "progressloglevels.h"
|
2008-03-28 17:30:37 +00:00
|
|
|
#include "ui_progressloggerfrm.h"
|
2007-07-29 18:07:31 +00:00
|
|
|
|
2021-12-26 10:05:25 +00:00
|
|
|
class ProgressLoggerGui :public QObject
|
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
|
|
|
|
2021-12-28 15:40:16 +00:00
|
|
|
void setProgressValue(int value);
|
|
|
|
void setProgressMax(int max);
|
|
|
|
int getProgressMax();
|
|
|
|
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:
|
2021-12-28 15:40:16 +00:00
|
|
|
void addItem(const QString &text, int flag); //! add a string to the list
|
|
|
|
void setProgress(int, int); //! set progress bar
|
2008-05-21 20:57:19 +00:00
|
|
|
|
2021-12-28 15:40:16 +00:00
|
|
|
void close();
|
|
|
|
void show();
|
|
|
|
void setRunning();
|
|
|
|
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
|
|
|
|
|