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/DHTEntryPointNameResolveCommand.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/DHTEntryPointNameResolveCommand.h')
| -rw-r--r-- | src/DHTEntryPointNameResolveCommand.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/src/DHTEntryPointNameResolveCommand.h b/src/DHTEntryPointNameResolveCommand.h index 2bf3a9db..3e72c872 100644 --- a/src/DHTEntryPointNameResolveCommand.h +++ b/src/DHTEntryPointNameResolveCommand.h @@ -36,32 +36,34 @@ #define _D_DHT_ENTRY_POINT_NAME_RESOVE_COMMAND_H_ #include "Command.h" -#include "DHTTaskQueueDecl.h" -#include "DHTTaskFactoryDecl.h" -#include "DHTNodeDecl.h" +#include "SharedHandle.h" +namespace aria2 { + +class DHTTaskQueue; +class DHTTaskFactory; +class DHTNode; class DownloadEngine; class NameResolver; -typedef SharedHandle<NameResolver> NameResolverHandle; class DHTEntryPointNameResolveCommand:public Command { protected: DownloadEngine* _e; private: - NameResolverHandle _resolver; + SharedHandle<NameResolver> _resolver; - DHTTaskQueueHandle _taskQueue; + SharedHandle<DHTTaskQueue> _taskQueue; - DHTTaskFactoryHandle _taskFactory; + SharedHandle<DHTTaskFactory> _taskFactory; - DHTNodeHandle _localNode; + SharedHandle<DHTNode> _localNode; - bool resolveHostname(const string& hostname, - const NameResolverHandle& resolver); + bool resolveHostname(const std::string& hostname, + const SharedHandle<NameResolver>& resolver); - void setNameResolverCheck(const NameResolverHandle& resolver); + void setNameResolverCheck(const SharedHandle<NameResolver>& resolver); - void disableNameResolverCheck(const NameResolverHandle& resolver); + void disableNameResolverCheck(const SharedHandle<NameResolver>& resolver); public: DHTEntryPointNameResolveCommand(int32_t cuid, DownloadEngine* e); @@ -70,11 +72,13 @@ public: virtual bool execute(); - void setTaskQueue(const DHTTaskQueueHandle& taskQueue); + void setTaskQueue(const SharedHandle<DHTTaskQueue>& taskQueue); - void setTaskFactory(const DHTTaskFactoryHandle& taskFactory); + void setTaskFactory(const SharedHandle<DHTTaskFactory>& taskFactory); - void setLocalNode(const DHTNodeHandle& localNode); + void setLocalNode(const SharedHandle<DHTNode>& localNode); }; +} // namespace aria2 + #endif // _D_DHT_ENTRY_POINT_NAME_RESOVE_COMMAND_H_ |
