comparison 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
comparison
equal deleted inserted replaced
705:66de0ad10bb3 706:579b2da21e7a
122 * available. 122 * available.
123 */ 123 */
124 bool isDone() const; 124 bool isDone() const;
125 125
126 /** 126 /**
127 * Return true if this FileSource is referring to a QRC resource.
128 */
129 bool isResource() const;
130
131 /**
127 * Return true if this FileSource is referring to a remote URL. 132 * Return true if this FileSource is referring to a remote URL.
128 */ 133 */
129 bool isRemote() const; 134 bool isRemote() const;
130 135
131 /** 136 /**
223 QString m_errorString; 228 QString m_errorString;
224 QString m_contentType; 229 QString m_contentType;
225 QString m_preferredContentType; 230 QString m_preferredContentType;
226 bool m_ok; 231 bool m_ok;
227 int m_lastStatus; 232 int m_lastStatus;
233 bool m_resource;
228 bool m_remote; 234 bool m_remote;
229 bool m_done; 235 bool m_done;
230 bool m_leaveLocalFile; 236 bool m_leaveLocalFile;
231 ProgressReporter *m_reporter; 237 ProgressReporter *m_reporter;
232 238