diff 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
line wrap: on
line diff
--- a/data/fileio/FileSource.cpp	Mon Mar 11 13:42:01 2013 +0000
+++ b/data/fileio/FileSource.cpp	Mon Mar 11 13:55:22 2013 +0000
@@ -31,7 +31,7 @@
 
 #include <unistd.h>
 
-#define DEBUG_FILE_SOURCE 1
+//#define DEBUG_FILE_SOURCE 1
 
 int
 FileSource::m_count = 0;
@@ -725,6 +725,17 @@
 }
 
 void
+FileSource::replyFailed(QNetworkReply::NetworkError)
+{
+    emit progress(100);
+    m_errorString = m_reply->errorString();
+    m_ok = false;
+    m_done = true;
+    cleanup();
+    emit ready();
+}
+
+void
 FileSource::deleteCacheFile()
 {
 #ifdef DEBUG_FILE_SOURCE