28 class DocumentLoader : public QObject |
29 class DocumentLoader : public QObject |
29 { |
30 { |
30 Q_OBJECT |
31 Q_OBJECT |
31 |
32 |
32 public: |
33 public: |
33 DocumentLoader (bool onForeground = false, QObject* parent = 0); |
34 DocumentLoader (Model* model, bool onForeground = false, QObject* parent = 0); |
34 |
35 |
35 Q_SLOT void abort(); |
36 Q_SLOT void abort(); |
36 bool hasAborted(); |
37 bool hasAborted(); |
37 bool isDone() const; |
38 bool isDone() const; |
38 bool isOnForeground() const; |
39 bool isOnForeground() const; |
39 const LDObjectList& objects() const; |
40 const QVector<LDObject*>& objects() const; |
40 int progress() const; |
41 int progress() const; |
41 void read (QIODevice* fp); |
42 void read (QIODevice* fp); |
42 Q_SLOT void start(); |
43 Q_SLOT void start(); |
43 int warningCount() const; |
44 int warningCount() const; |
44 |
45 |
45 private: |
46 private: |
46 class OpenProgressDialog* m_progressDialog; |
47 class OpenProgressDialog* m_progressDialog; |
47 LDObjectList m_objects; |
48 Model* _model; |
48 QStringList m_lines; |
49 QStringList m_lines; |
49 int m_progress; |
50 int m_progress; |
50 int m_warningCount; |
51 int m_warningCount; |
51 bool m_isDone; |
52 bool m_isDone; |
52 bool m_hasAborted; |
53 bool m_hasAborted; |