diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-11 16:58:24 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-11 16:58:24 +0000 |
| commit | 048a2cf59737f761876e81a77e8d064c45c752d7 (patch) | |
| tree | 65c9d5498aafe6a8c8e640ddfcc43c7013504d0d /src/PeerInitiateConnectionCommand.h | |
| parent | e26bbbb9eee140ba24402fe872a752b42f0077de (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/PeerInitiateConnectionCommand.h')
| -rw-r--r-- | src/PeerInitiateConnectionCommand.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/PeerInitiateConnectionCommand.h b/src/PeerInitiateConnectionCommand.h index 7a86f097..ee366ce6 100644 --- a/src/PeerInitiateConnectionCommand.h +++ b/src/PeerInitiateConnectionCommand.h @@ -36,19 +36,28 @@ #define _D_PEER_INITIATE_CONNECTION_H_ #include "PeerAbstractCommand.h" +#include "RequestGroupAware.h" +#include "BtContextAwareCommand.h" -class PeerInitiateConnectionCommand : public PeerAbstractCommand { +class PeerInitiateConnectionCommand : public PeerAbstractCommand, + public BtContextAwareCommand, + public RequestGroupAware +{ protected: - bool executeInternal(); - bool prepareForRetry(int wait); - bool prepareForNextPeer(int wait); + virtual bool executeInternal(); + virtual bool prepareForRetry(int wait); + virtual bool prepareForNextPeer(int wait); + virtual void onAbort(Exception* ex); + virtual bool exitBeforeExecute(); + public: PeerInitiateConnectionCommand(int cuid, + RequestGroup* requestGroup, const PeerHandle& peer, - TorrentDownloadEngine* e, + DownloadEngine* e, const BtContextHandle& btContext); - ~PeerInitiateConnectionCommand(); + virtual ~PeerInitiateConnectionCommand(); }; #endif // _D_PEER_INITIATE_CONNECTION_H_ |
