Handle language change events in widgets.
[maemo-rb.git] / rbutil / rbutilqt / base / progressloggerinterface.h
blob9431b0d25dbf828a451c8e301fcd495f8cf814c1
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 ****************************************************************************/
21 #ifndef PROGRESSLOGGERINTERFACE_H
22 #define PROGRESSLOGGERINTERFACE_H
24 #include <QtCore>
26 enum {
27 LOGNOICON, LOGOK, LOGINFO, LOGWARNING, LOGERROR
32 class ProgressloggerInterface : public QObject
34 Q_OBJECT
36 public:
37 ProgressloggerInterface(QObject* parent) : QObject(parent) {}
39 virtual void setProgressValue(int value)=0;
40 virtual void setProgressMax(int max)=0;
41 virtual int getProgressMax()=0;
43 signals:
44 void aborted();
47 public slots:
48 virtual void addItem(const QString &text)=0; //! add a string to the progress
49 virtual void addItem(const QString &text, int flag)=0; //! add a string to the list, with icon
51 virtual void close()=0;
52 virtual void show()=0;
53 virtual void setRunning()=0;
54 virtual void setFinished()=0;
56 private:
60 #endif