src/documentloader.h

changeset 1217
314e12e23c3a
parent 980
4a95c6b06ebe
child 1222
34def2630300
equal deleted inserted replaced
1216:12f9ea615cbc 1217:314e12e23c3a
28 class DocumentLoader : public QObject 28 class DocumentLoader : public QObject
29 { 29 {
30 Q_OBJECT 30 Q_OBJECT
31 31
32 public: 32 public:
33 DocumentLoader (bool onForeground = false, QObject* parent = 0); 33 DocumentLoader(bool onForeground = false, QObject* parent = 0);
34 34
35 Q_SLOT void abort(); 35 Q_SLOT void abort();
36 bool hasAborted(); 36 bool hasAborted();
37 bool isDone() const; 37 bool isDone() const;
38 bool isOnForeground() const; 38 bool isOnForeground() const;
39 const LDObjectList& objects() const; 39 const LDObjectList& objects() const;
40 int progress() const; 40 int progress() const;
41 void read (QIODevice* fp); 41 void read(QIODevice* fp);
42 Q_SLOT void start(); 42 Q_SLOT void start();
43 int warningCount() const; 43 int warningCount() const;
44 44
45 private: 45 private:
46 class OpenProgressDialog* m_progressDialog; 46 class OpenProgressDialog* m_progressDialog;
51 bool m_isDone; 51 bool m_isDone;
52 bool m_hasAborted; 52 bool m_hasAborted;
53 bool m_isOnForeground; 53 bool m_isOnForeground;
54 54
55 private slots: 55 private slots:
56 void work (int i); 56 void work(int i);
57 57
58 signals: 58 signals:
59 void progressUpdate (int progress); 59 void progressUpdate(int progress);
60 void workDone(); 60 void workDone();
61 }; 61 };

mercurial