# HG changeset patch # User Chris Cannam # Date 1192703066 0 # Node ID 96ef9746c56083f84599a7ff549b08580e4df2e8 # Parent 70a232b1f12aab0cc9cafff90d0a660595a89ce4 * Add content type to remote file diff -r 70a232b1f12a -r 96ef9746c560 data/fileio/RemoteFile.cpp --- 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(); } } diff -r 70a232b1f12a -r 96ef9746c560 data/fileio/RemoteFile.h --- 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;