comparison framework/SVFileReader.h @ 79:b1a68403714b

* Further model lifecycle fixes
author Chris Cannam
date Thu, 24 Jan 2008 11:03:59 +0000
parents 4aa40182321f
children b9faa1418d29
comparison
equal deleted inserted replaced
78:58bfaaed07ed 79:b1a68403714b
159 159
160 \endverbatim 160 \endverbatim
161 */ 161 */
162 162
163 163
164 class SVFileReader : public QXmlDefaultHandler 164 class SVFileReader : public QObject, QXmlDefaultHandler
165 { 165 {
166 Q_OBJECT
167
166 public: 168 public:
167 SVFileReader(Document *document, 169 SVFileReader(Document *document,
168 SVFileReaderPaneCallback &callback, 170 SVFileReaderPaneCallback &callback,
169 QString location = ""); // for audio file locate mechanism 171 QString location = ""); // for audio file locate mechanism
170 virtual ~SVFileReader(); 172 virtual ~SVFileReader();
189 const QString &localName, 191 const QString &localName,
190 const QString &qName); 192 const QString &qName);
191 193
192 bool error(const QXmlParseException &exception); 194 bool error(const QXmlParseException &exception);
193 bool fatalError(const QXmlParseException &exception); 195 bool fatalError(const QXmlParseException &exception);
196
197 signals:
198 void modelRegenerationFailed(QString layerName, QString transformName,
199 QString message);
200 void modelRegenerationWarning(QString layerName, QString transformName,
201 QString message);
194 202
195 protected: 203 protected:
196 bool readWindow(const QXmlAttributes &); 204 bool readWindow(const QXmlAttributes &);
197 bool readModel(const QXmlAttributes &); 205 bool readModel(const QXmlAttributes &);
198 bool readView(const QXmlAttributes &); 206 bool readView(const QXmlAttributes &);