diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-08 15:53:45 +0000 |
| commit | 1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch) | |
| tree | d12047cb37ded1e18d4d5b97844412538beb19ff /src/PeerInteractionCommand.h | |
| parent | d82e183d346375ac8a58a298a58728be615f947e (diff) | |
2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std::
prefix to c++
standard classes.
Included string.h where mem* function are used.
Diffstat (limited to 'src/PeerInteractionCommand.h')
| -rw-r--r-- | src/PeerInteractionCommand.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/PeerInteractionCommand.h b/src/PeerInteractionCommand.h index 046504cc..e27974c0 100644 --- a/src/PeerInteractionCommand.h +++ b/src/PeerInteractionCommand.h @@ -38,8 +38,11 @@ #include "PeerAbstractCommand.h" #include "RequestGroupAware.h" #include "BtContextAwareCommand.h" -#include "BtInteractive.h" -#include "PeerConnection.h" + +namespace aria2 { + +class BtInteractive; +class PeerConnection; class PeerInteractionCommand : public PeerAbstractCommand, public BtContextAwareCommand, @@ -49,12 +52,11 @@ public: enum Seq { INITIATOR_SEND_HANDSHAKE, INITIATOR_WAIT_HANDSHAKE, - //RECEIVER_SEND_HANDSHAKE, RECEIVER_WAIT_HANDSHAKE, WIRED}; private: Seq sequence; - BtInteractiveHandle btInteractive; + SharedHandle<BtInteractive> btInteractive; int32_t maxDownloadSpeedLimit; protected: virtual bool executeInternal(); @@ -65,15 +67,17 @@ protected: public: PeerInteractionCommand(int32_t cuid, RequestGroup* requestGroup, - const PeerHandle& peer, + const SharedHandle<Peer>& peer, DownloadEngine* e, - const BtContextHandle& btContext, - const SocketHandle& s, + const SharedHandle<BtContext>& btContext, + const SharedHandle<SocketCore>& s, Seq sequence, - const PeerConnectionHandle& peerConnection = 0); + const SharedHandle<PeerConnection>& peerConnection = 0); virtual ~PeerInteractionCommand(); }; +} // namespace aria2 + #endif // _D_PEER_INTERACTION_COMMAND_H_ |
