Mercurial > hg > svcore
diff data/fileio/FileSource.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 | a8a7b8f698c8 |
children | 948271d124ac |
line wrap: on
line diff
--- a/data/fileio/FileSource.h Thu Dec 11 12:37:16 2008 +0000 +++ b/data/fileio/FileSource.h Thu Dec 11 15:18:10 2008 +0000 @@ -70,7 +70,9 @@ * emitted regularly during retrieval, even if no reporter is * supplied here. Caller retains ownership of the reporter object. */ - FileSource(QString fileOrUrl, ProgressReporter *reporter = 0); + FileSource(QString fileOrUrl, + ProgressReporter *reporter = 0, + QString preferredContentType = ""); /** * Construct a FileSource using the given remote URL. @@ -212,6 +214,7 @@ QString m_localFilename; QString m_errorString; QString m_contentType; + QString m_preferredContentType; bool m_ok; int m_lastStatus; bool m_remote;