krita
kis_progress_subject.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KIS_PROGRESS_SUBJECT_H_
00020 #define KIS_PROGRESS_SUBJECT_H_
00021
00022 #include <qobject.h>
00023 #include <koffice_export.h>
00024
00025 class KRITAUI_EXPORT KisProgressSubject : public QObject {
00026 Q_OBJECT
00027
00028 protected:
00029 KisProgressSubject() {};
00030 KisProgressSubject(QObject * parent, const char * name) : QObject(parent, name) {};
00031 virtual ~KisProgressSubject();
00032
00033 public:
00034 virtual void cancel() = 0;
00035
00036 signals:
00037 void notifyProgress(int percent);
00038 void notifyProgressStage(const QString& stage, int percent);
00039 void notifyProgressDone();
00040 void notifyProgressError();
00041 };
00042
00043 #endif // KIS_PROGRESS_SUBJECT_H_
00044
|