Mercurial > hg > svcore
changeset 315:96ef9746c560
* Add content type to remote file
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 10:24:26 +0000 |
parents | 70a232b1f12a |
children | 3a6725f285d6 |
files | data/fileio/RemoteFile.cpp data/fileio/RemoteFile.h |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/data/fileio/RemoteFile.cpp Thu Oct 18 10:15:07 2007 +0000 +++ b/data/fileio/RemoteFile.cpp Thu Oct 18 10:24:26 2007 +0000 @@ -290,6 +290,7 @@ } else { std::cerr << "RemoteFile::responseHeaderReceived: " << m_lastStatus << std::endl; + if (resp.hasContentType()) m_contentType = resp.contentType(); } }
--- a/data/fileio/RemoteFile.h Thu Oct 18 10:15:07 2007 +0000 +++ b/data/fileio/RemoteFile.h Thu Oct 18 10:24:26 2007 +0000 @@ -44,6 +44,8 @@ bool isOK() const; bool isDone() const; + QString getContentType() const; + QString getLocalFilename() const; QString getErrorString() const; @@ -72,6 +74,7 @@ QFile *m_localFile; QString m_localFilename; QString m_errorString; + QString m_contentType; bool m_ok; int m_lastStatus; bool m_done;