comparison data/fileio/FileSource.cpp @ 763:2b3a8ae04597 qt5

Get remainder of svcore building with Qt5
author Chris Cannam
date Mon, 11 Mar 2013 13:55:22 +0000
parents 3b2409646cc0
children 95d4a59295b7
comparison
equal deleted inserted replaced
762:3b2409646cc0 763:2b3a8ae04597
29 #include <iostream> 29 #include <iostream>
30 #include <cstdlib> 30 #include <cstdlib>
31 31
32 #include <unistd.h> 32 #include <unistd.h>
33 33
34 #define DEBUG_FILE_SOURCE 1 34 //#define DEBUG_FILE_SOURCE 1
35 35
36 int 36 int
37 FileSource::m_count = 0; 37 FileSource::m_count = 0;
38 38
39 QMutex 39 QMutex
723 m_done = true; 723 m_done = true;
724 emit ready(); 724 emit ready();
725 } 725 }
726 726
727 void 727 void
728 FileSource::replyFailed(QNetworkReply::NetworkError)
729 {
730 emit progress(100);
731 m_errorString = m_reply->errorString();
732 m_ok = false;
733 m_done = true;
734 cleanup();
735 emit ready();
736 }
737
738 void
728 FileSource::deleteCacheFile() 739 FileSource::deleteCacheFile()
729 { 740 {
730 #ifdef DEBUG_FILE_SOURCE 741 #ifdef DEBUG_FILE_SOURCE
731 std::cerr << "FileSource::deleteCacheFile(\"" << m_localFilename << "\")" << std::endl; 742 std::cerr << "FileSource::deleteCacheFile(\"" << m_localFilename << "\")" << std::endl;
732 #endif 743 #endif