diff options
Diffstat (limited to 'src/plugins/Transports/http')
| -rw-r--r-- | src/plugins/Transports/http/downloader.cpp | 9 | ||||
| -rw-r--r-- | src/plugins/Transports/http/downloader.h | 5 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/plugins/Transports/http/downloader.cpp b/src/plugins/Transports/http/downloader.cpp index d7b2077bb..7e3fda2b9 100644 --- a/src/plugins/Transports/http/downloader.cpp +++ b/src/plugins/Transports/http/downloader.cpp @@ -220,10 +220,10 @@ void Downloader::abort() } } -int Downloader::bytesAvailable() +qint64 Downloader::bytesAvailable() { m_mutex.lock(); - int b = m_stream.buf_fill; + qint64 b = m_stream.buf_fill; m_mutex.unlock(); return b; } @@ -308,11 +308,6 @@ qint64 Downloader::readBuffer(char* data, qint64 maxlen) return 0; } -const QString &Downloader::title() const -{ - return m_title; -} - void Downloader::checkBuffer() { if (m_stream.buf_fill > m_buffer_size && !m_ready) diff --git a/src/plugins/Transports/http/downloader.h b/src/plugins/Transports/http/downloader.h index 5688fee00..fd61486ba 100644 --- a/src/plugins/Transports/http/downloader.h +++ b/src/plugins/Transports/http/downloader.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2008 by Ilya Kotov * + * Copyright (C) 2006-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -59,8 +59,7 @@ public: QMutex *mutex(); QString contentType(); void abort(); - int bytesAvailable(); - const QString& title() const; + qint64 bytesAvailable(); void checkBuffer(); bool isReady(); |
