Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
519:21f86744d38e | 520:e340b2fb9471 |
---|---|
68 * If a ProgressReporter is provided, it will be updated with | 68 * If a ProgressReporter is provided, it will be updated with |
69 * progress status. Note that the progress() signal will also be | 69 * progress status. Note that the progress() signal will also be |
70 * emitted regularly during retrieval, even if no reporter is | 70 * emitted regularly during retrieval, even if no reporter is |
71 * supplied here. Caller retains ownership of the reporter object. | 71 * supplied here. Caller retains ownership of the reporter object. |
72 */ | 72 */ |
73 FileSource(QString fileOrUrl, ProgressReporter *reporter = 0); | 73 FileSource(QString fileOrUrl, |
74 ProgressReporter *reporter = 0, | |
75 QString preferredContentType = ""); | |
74 | 76 |
75 /** | 77 /** |
76 * Construct a FileSource using the given remote URL. | 78 * Construct a FileSource using the given remote URL. |
77 * | 79 * |
78 * If a ProgressReporter is provided, it will be updated with | 80 * If a ProgressReporter is provided, it will be updated with |
210 QHttp *m_http; | 212 QHttp *m_http; |
211 QFile *m_localFile; | 213 QFile *m_localFile; |
212 QString m_localFilename; | 214 QString m_localFilename; |
213 QString m_errorString; | 215 QString m_errorString; |
214 QString m_contentType; | 216 QString m_contentType; |
217 QString m_preferredContentType; | |
215 bool m_ok; | 218 bool m_ok; |
216 int m_lastStatus; | 219 int m_lastStatus; |
217 bool m_remote; | 220 bool m_remote; |
218 bool m_done; | 221 bool m_done; |
219 bool m_leaveLocalFile; | 222 bool m_leaveLocalFile; |