Add a slot to set the progress bar value and a member to hide it.
[Rockbox.git] / rbutil / rbutilqt / progressloggergui.h
blob231e6d82c9652e607d4d8e799a9c717f04b4619a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef PROGRESSLOGGERGUI_H
20 #define PROGRESSLOGGERGUI_H
22 #include <QtGui>
24 #include "progressloggerinterface.h"
25 #include "ui_progressloggerfrm.h"
27 class ProgressLoggerGui :public ProgressloggerInterface
29 Q_OBJECT
30 public:
31 ProgressLoggerGui(QWidget * parent);
33 virtual void setProgressValue(int value);
34 virtual void setProgressMax(int max);
35 virtual int getProgressMax();
36 virtual void setProgressVisible(bool);
38 signals:
39 virtual void aborted();
40 virtual void closed();
42 public slots:
43 virtual void addItem(const QString &text); //! add a string to the progress list
44 virtual void addItem(const QString &text, int flag); //! add a string to the list
45 virtual void setProgress(int, int); //! set progress bar
47 virtual void abort();
48 virtual void undoAbort();
49 virtual void close();
50 virtual void show();
52 private:
53 Ui::ProgressLoggerFrm dp;
54 QDialog *downloadProgress;
58 #endif