summaryrefslogtreecommitdiff
path: root/src/PeerChokeCommand.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/PeerChokeCommand.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/PeerChokeCommand.h')
-rw-r--r--src/PeerChokeCommand.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/PeerChokeCommand.h b/src/PeerChokeCommand.h
index 687f405c..0a2b2f67 100644
--- a/src/PeerChokeCommand.h
+++ b/src/PeerChokeCommand.h
@@ -35,14 +35,19 @@
#ifndef _D_PEER_CHOKE_COMMAND_H_
#define _D_PEER_CHOKE_COMMAND_H_
+#include "Command.h"
#include "BtContextAwareCommand.h"
-#include "TorrentDownloadEngine.h"
+#include "DownloadEngine.h"
#include "TimeA2.h"
+#include "RequestGroupAware.h"
-class PeerChokeCommand : public BtContextAwareCommand {
+class PeerChokeCommand : public Command,
+ public BtContextAwareCommand,
+ public RequestGroupAware
+{
private:
int32_t interval;
- TorrentDownloadEngine* e;
+ DownloadEngine* e;
int32_t rotate;
Time checkPoint;
@@ -52,13 +57,14 @@ private:
public:
PeerChokeCommand(int32_t cuid,
- TorrentDownloadEngine* e,
+ RequestGroup* requestGroup,
+ DownloadEngine* e,
const BtContextHandle& btContext,
int32_t interval);
virtual ~PeerChokeCommand();
- bool execute();
+ virtual bool execute();
};
#endif // _D_PEER_CHOKE_COMMAND_H_