Move device and mountpoint selection to configuration to eliminate the need of asking...
[Rockbox.git] / rbutil / rbutilqt / progressloggerinterface.h
blob65c2a23282f101f11d9996c131ee2d09e5a0e359
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: progressloggerinterface.h 14027 2007-07-27 17:42:49Z domonoky $
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 ****************************************************************************/
20 #ifndef PROGRESSLOGGERINTERFACE_H
21 #define PROGRESSLOGGERINTERFACE_H
23 #include <QtGui>
25 #define LOGOK 1
26 #define LOGINFO 2
27 #define LOGWARNING 3
28 #define LOGERROR 4
31 class ProgressloggerInterface : public QObject
33 Q_OBJECT
35 public:
36 ProgressloggerInterface(QObject* parent) : QObject(parent) {}
37 virtual void addItem(QString text) =0 ; //adds a string to the list
38 virtual void addItem(QString text,int flag) =0 ; //adds a string to the list, with icon
40 virtual void setProgressValue(int value)=0;
41 virtual void setProgressMax(int max)=0;
42 virtual int getProgressMax()=0;
44 signals:
45 virtual void aborted()=0;
48 public slots:
49 virtual void abort()=0;
50 virtual void close()=0;
51 virtual void show()=0;
53 private:
57 #endif