Mercurial > hg > svapp
diff 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 |
line wrap: on
line diff
--- a/framework/SVFileReader.h Wed Nov 19 14:55:17 2008 +0000 +++ b/framework/SVFileReader.h Thu Nov 20 10:59:14 2008 +0000 @@ -194,6 +194,15 @@ bool error(const QXmlParseException &exception); bool fatalError(const QXmlParseException &exception); + enum FileType + { + SVSessionFile, + SVLayerFile, + UnknownFileType + }; + + static FileType identifyXmlFile(QString path); + signals: void modelRegenerationFailed(QString layerName, QString transformName, QString message);