Mercurial > hg > svcore
comparison data/fileio/FileSource.cpp @ 325:82a2d3161e14
* Document FileSource
author | Chris Cannam |
---|---|
date | Thu, 01 Nov 2007 12:34:17 +0000 |
parents | c324d410b096 |
children | 1d656dcda8ef |
comparison
equal
deleted
inserted
replaced
324:9cdc7a4efde2 | 325:82a2d3161e14 |
---|---|
82 << "trying again treating it as encoded URL" | 82 << "trying again treating it as encoded URL" |
83 << std::endl; | 83 << std::endl; |
84 m_url.setEncodedUrl(fileOrUrl.toAscii()); | 84 m_url.setEncodedUrl(fileOrUrl.toAscii()); |
85 init(showProgress); | 85 init(showProgress); |
86 } | 86 } |
87 } | |
88 | |
89 if (!isRemote()) { | |
90 emit statusAvailable(); | |
91 emit ready(); | |
87 } | 92 } |
88 } | 93 } |
89 | 94 |
90 FileSource::FileSource(QUrl url, bool showProgress) : | 95 FileSource::FileSource(QUrl url, bool showProgress) : |
91 m_url(url), | 96 m_url(url), |
479 << m_errorString.toStdString() << std::endl; | 484 << m_errorString.toStdString() << std::endl; |
480 } else { | 485 } else { |
481 std::cerr << "FileSource::responseHeaderReceived: " | 486 std::cerr << "FileSource::responseHeaderReceived: " |
482 << m_lastStatus << std::endl; | 487 << m_lastStatus << std::endl; |
483 if (resp.hasContentType()) m_contentType = resp.contentType(); | 488 if (resp.hasContentType()) m_contentType = resp.contentType(); |
484 } | 489 } |
490 emit statusAvailable(); | |
485 } | 491 } |
486 | 492 |
487 void | 493 void |
488 FileSource::ftpCommandFinished(int id, bool error) | 494 FileSource::ftpCommandFinished(int id, bool error) |
489 { | 495 { |