Mercurial > hg > svcore
diff data/fileio/CachedFile.h @ 520:e340b2fb9471
* Make FileSource able to indicate its preferred content type (e.g.
application/rdf+xml in preference to text/html for rdf content)
* Temp directory on Windows -- make $HOME expand to homedrive+homepath
instead of user profile location (which may be networked)
author | Chris Cannam |
---|---|
date | Thu, 11 Dec 2008 15:18:10 +0000 |
parents | a82645e788fc |
children | b99dc5465b80 |
line wrap: on
line diff
--- a/data/fileio/CachedFile.h Thu Dec 11 12:37:16 2008 +0000 +++ b/data/fileio/CachedFile.h Thu Dec 11 15:18:10 2008 +0000 @@ -26,8 +26,12 @@ class CachedFile { public: - CachedFile(QString fileOrUrl, ProgressReporter *reporter = 0); - CachedFile(QUrl url, ProgressReporter *reporter = 0); + CachedFile(QString fileOrUrl, + ProgressReporter *reporter = 0, + QString preferredContentType = ""); + CachedFile(QUrl url, + ProgressReporter *reporter = 0, + QString preferredContentType = ""); virtual ~CachedFile(); @@ -38,6 +42,7 @@ protected: QString m_origin; QString m_localFilename; + QString m_preferredContentType; ProgressReporter *m_reporter; bool m_ok;