summaryrefslogtreecommitdiff
path: root/src/DownloadCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
commit048a2cf59737f761876e81a77e8d064c45c752d7 (patch)
tree65c9d5498aafe6a8c8e640ddfcc43c7013504d0d /src/DownloadCommand.h
parente26bbbb9eee140ba24402fe872a752b42f0077de (diff)
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented BitTorrent/http/ftp integrated download. I've rewritten lots of files and now some headers have forward class declarations to reduce compile time. The implementation is extremely alpha stage, I recommend to use this for testing purpose only.
Diffstat (limited to 'src/DownloadCommand.h')
-rw-r--r--src/DownloadCommand.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/DownloadCommand.h b/src/DownloadCommand.h
index c8176dcb..0e675d35 100644
--- a/src/DownloadCommand.h
+++ b/src/DownloadCommand.h
@@ -36,11 +36,11 @@
#define _D_DOWNLOAD_COMMAND_H_
#include "AbstractCommand.h"
-#include "TransferEncoding.h"
-#include "TimeA2.h"
-#include "PeerStat.h"
-using namespace std;
+class TransferEncoding;
+extern typedef SharedHandle<TransferEncoding> TransferEncodingHandle;
+class PeerStat;
+extern typedef SharedHandle<PeerStat> PeerStatHandle;
class DownloadCommand : public AbstractCommand {
private:
@@ -62,10 +62,7 @@ public:
const SocketHandle& s);
virtual ~DownloadCommand();
- void setTransferDecoder(const TransferEncodingHandle& transferDecoder)
- {
- this->transferDecoder = transferDecoder;
- }
+ void setTransferDecoder(const TransferEncodingHandle& transferDecoder);
void setMaxDownloadSpeedLimit(int32_t maxDownloadSpeedLimit) {
this->maxDownloadSpeedLimit = maxDownloadSpeedLimit;