Mercurial > hg > svapp
comparison framework/SVFileReader.h @ 140:9ccaa8fd9b9f
* Add code to identify (usually) the type of an XML file that contains
either SV session or layer data, and use it to permit loading files
with plain .xml extension that contain complete uncompression sessions
author | Chris Cannam |
---|---|
date | Thu, 20 Nov 2008 10:59:14 +0000 |
parents | b9faa1418d29 |
children | 289d65722123 |
comparison
equal
deleted
inserted
replaced
139:2cf711ed89e2 | 140:9ccaa8fd9b9f |
---|---|
191 const QString &localName, | 191 const QString &localName, |
192 const QString &qName); | 192 const QString &qName); |
193 | 193 |
194 bool error(const QXmlParseException &exception); | 194 bool error(const QXmlParseException &exception); |
195 bool fatalError(const QXmlParseException &exception); | 195 bool fatalError(const QXmlParseException &exception); |
196 | |
197 enum FileType | |
198 { | |
199 SVSessionFile, | |
200 SVLayerFile, | |
201 UnknownFileType | |
202 }; | |
203 | |
204 static FileType identifyXmlFile(QString path); | |
196 | 205 |
197 signals: | 206 signals: |
198 void modelRegenerationFailed(QString layerName, QString transformName, | 207 void modelRegenerationFailed(QString layerName, QString transformName, |
199 QString message); | 208 QString message); |
200 void modelRegenerationWarning(QString layerName, QString transformName, | 209 void modelRegenerationWarning(QString layerName, QString transformName, |