comparison base/ProgressReporter.h @ 439:beb2948baa77

* Merge revisions 1041 to 1130 from sv-rdf-import branch
author Chris Cannam
date Thu, 18 Sep 2008 12:09:32 +0000
parents 183ee2a55fc7
children 1dc64d3d323c
comparison
equal deleted inserted replaced
438:32c399d06374 439:beb2948baa77
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _PROGRESS_REPORTER_H_ 16 #ifndef _PROGRESS_REPORTER_H_
17 #define _PROGRESS_REPORTER_H_
17 18
18 #include <QObject> 19 #include <QObject>
19 #include <QString> 20 #include <QString>
20 21
21 class ProgressReporter : public QObject 22 class ProgressReporter : public QObject
24 25
25 public: 26 public:
26 ProgressReporter(QObject *parent = 0); 27 ProgressReporter(QObject *parent = 0);
27 virtual ~ProgressReporter(); 28 virtual ~ProgressReporter();
28 29
30 virtual bool isDefinite() const = 0;
31 virtual void setDefinite(bool definite) = 0; // default should be definite
32
33 virtual bool wasCancelled() const = 0;
34
29 signals: 35 signals:
30 void cancelled(); 36 void cancelled();
31 37
32 public slots: 38 public slots:
33 virtual void setMessage(QString text) = 0; 39 virtual void setMessage(QString text) = 0;