summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-01-29 07:31:58 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-01-29 09:57:15 (GMT)
commit7612cdefa1c6789c1b286691b198c28551286703 (patch)
tree701e42dfa0f627cd1fe4d441efd4f60ca47c108f
parent613079eef4a3a1faf9cf513b44551173f06e07a6 (diff)
Fix compilation of MythDownloadManager.
-rw-r--r--mythtv/libs/libmythdb/mythdownloadmanager.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/mythtv/libs/libmythdb/mythdownloadmanager.cpp b/mythtv/libs/libmythdb/mythdownloadmanager.cpp
index 89349a2..658d1ea 100644
--- a/mythtv/libs/libmythdb/mythdownloadmanager.cpp
+++ b/mythtv/libs/libmythdb/mythdownloadmanager.cpp
@@ -7,6 +7,7 @@
#include <QThreadPool>
// libmythdb
+#include "stdlib.h"
#include "compat.h"
#include "mythcorecontext.h"
#include "mythcoreutil.h"
@@ -54,7 +55,7 @@ class MythDownloadInfo
{
m_url.detach();
m_outFile.detach();
- }
+ }
QString m_url;
QUrl m_redirectedTo;
@@ -113,7 +114,7 @@ class RemoteFileDownloadThread : public QRunnable
/** \fn ShutdownMythDownloadManager(void)
* \brief Deletes the running MythDownloadManager at program exit.
*/
-void ShutdownMythDownloadManager(void)
+static void ShutdownMythDownloadManager(void)
{
if (downloadManager)
{
@@ -550,7 +551,7 @@ void MythDownloadManager::downloadQNetworkRequest(MythDownloadInfo *dlInfo)
static const char dateFormat[] = "ddd, dd MMM yyyy hh:mm:ss 'GMT'";
QUrl qurl(dlInfo->m_url);
QNetworkRequest request;
-
+
if (dlInfo->m_request)
{
request = *dlInfo->m_request;
@@ -607,7 +608,7 @@ void MythDownloadManager::downloadQNetworkRequest(MythDownloadInfo *dlInfo)
connect(dlInfo->m_reply, SIGNAL(error(QNetworkReply::NetworkError)), this,
SLOT(downloadError(QNetworkReply::NetworkError)));
connect(dlInfo->m_reply, SIGNAL(downloadProgress(qint64, qint64)),
- this, SLOT(downloadProgress(qint64, qint64)));
+ this, SLOT(downloadProgress(qint64, qint64)));
}
/** \fn MythDownloadManager::downloadNow(MythDownloadInfo *dlInfo,
@@ -655,7 +656,7 @@ bool MythDownloadManager::downloadNow(MythDownloadInfo *dlInfo, bool deleteInfo)
return success;
}
-
+
/** \fn MythDownloadManager::removeListener(QObject *caller)
* \brief Disconnects the specify caller from any existing
* MythDownloadInfo instances.
@@ -795,7 +796,7 @@ void MythDownloadManager::downloadFinished(MythDownloadInfo *dlInfo)
connect(dlInfo->m_reply, SIGNAL(error(QNetworkReply::NetworkError)), this,
SLOT(downloadError(QNetworkReply::NetworkError)));
connect(dlInfo->m_reply, SIGNAL(downloadProgress(qint64, qint64)),
- this, SLOT(downloadProgress(qint64, qint64)));
+ this, SLOT(downloadProgress(qint64, qint64)));
m_downloadReplies.remove(reply);
reply->deleteLater();