diff data/fileio/FileSource.h @ 706:579b2da21e7a

Make FileSource capable of handling resource files. Without this, we failed to open the silent resource file used as a placeholder in templates and thus failed to replace it with the proper file after loading the template -- the consequence was that (although the right audio file ended up being shown as the main model) any derived models were not regenerated
author Chris Cannam
date Fri, 07 Oct 2011 17:04:09 +0100
parents b4a8d8221eaf
children 3b2409646cc0
line wrap: on
line diff
--- a/data/fileio/FileSource.h	Fri Oct 07 17:03:04 2011 +0100
+++ b/data/fileio/FileSource.h	Fri Oct 07 17:04:09 2011 +0100
@@ -124,6 +124,11 @@
     bool isDone() const;
 
     /**
+     * Return true if this FileSource is referring to a QRC resource.
+     */
+    bool isResource() const;
+
+    /**
      * Return true if this FileSource is referring to a remote URL.
      */
     bool isRemote() const;
@@ -225,6 +230,7 @@
     QString m_preferredContentType;
     bool m_ok;
     int m_lastStatus;
+    bool m_resource;
     bool m_remote;
     bool m_done;
     bool m_leaveLocalFile;