The threading model should be set from configure, not config.h.
[maemo-rb.git] / rbutil / rbutilqt / progressloggergui.h
blob8650b9760aacc5fa007e639816366059e7366a13
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
20 #ifndef PROGRESSLOGGERGUI_H
21 #define PROGRESSLOGGERGUI_H
23 #include <QtGui>
25 #include "progressloggerinterface.h"
26 #include "ui_progressloggerfrm.h"
28 class ProgressLoggerGui :public ProgressloggerInterface
30 Q_OBJECT
31 public:
32 ProgressLoggerGui(QWidget * parent);
34 virtual void setProgressValue(int value);
35 virtual void setProgressMax(int max);
36 virtual int getProgressMax();
37 virtual void setProgressVisible(bool);
39 signals:
40 void aborted();
41 void closed();
43 public slots:
44 virtual void addItem(const QString &text); //! add a string to the progress list
45 virtual void addItem(const QString &text, int flag); //! add a string to the list
46 virtual void setProgress(int, int); //! set progress bar
48 virtual void close();
49 virtual void show();
50 virtual void setRunning();
51 virtual void setFinished();
53 void saveErrorLog();
54 private:
55 Ui::ProgressLoggerFrm dp;
56 QDialog *downloadProgress;
60 #endif