summaryrefslogtreecommitdiff
path: root/src/ActivePeerConnectionCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 15:53:45 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 15:53:45 +0000
commit1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch)
treed12047cb37ded1e18d4d5b97844412538beb19ff /src/ActivePeerConnectionCommand.h
parentd82e183d346375ac8a58a298a58728be615f947e (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/ActivePeerConnectionCommand.h')
-rw-r--r--src/ActivePeerConnectionCommand.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ActivePeerConnectionCommand.h b/src/ActivePeerConnectionCommand.h
index 4877101e..ac8d7503 100644
--- a/src/ActivePeerConnectionCommand.h
+++ b/src/ActivePeerConnectionCommand.h
@@ -37,9 +37,13 @@
#include "Command.h"
#include "BtContextAwareCommand.h"
-#include "DownloadEngine.h"
-#include "TimeA2.h"
#include "RequestGroupAware.h"
+#include "TimeA2.h"
+
+namespace aria2 {
+
+class DownloadEngine;
+class Peer;
class ActivePeerConnectionCommand : public Command,
public BtContextAwareCommand,
@@ -55,14 +59,14 @@ public:
ActivePeerConnectionCommand(int cuid,
RequestGroup* requestGroup,
DownloadEngine* e,
- const BtContextHandle& btContext,
+ const SharedHandle<BtContext>& btContext,
int32_t interval);
virtual ~ActivePeerConnectionCommand();
virtual bool execute();
- void connectToPeer(const PeerHandle& peer);
+ void connectToPeer(const SharedHandle<Peer>& peer);
void setLowestSpeedLimit(int32_t speed)
{
@@ -75,4 +79,6 @@ public:
}
};
+} // namespace aria2
+
#endif // _D_ACTIVE_PEER_CONNECTION_COMMAND_H_