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/DHTBucketRefreshCommand.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/DHTBucketRefreshCommand.h')
| -rw-r--r-- | src/DHTBucketRefreshCommand.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/DHTBucketRefreshCommand.h b/src/DHTBucketRefreshCommand.h index e000c5e0..068ea268 100644 --- a/src/DHTBucketRefreshCommand.h +++ b/src/DHTBucketRefreshCommand.h @@ -36,17 +36,21 @@ #define _D_DHT_BUCKET_REFRESH_COMMAND_H_ #include "TimeBasedCommand.h" -#include "DHTRoutingTableDecl.h" -#include "DHTTaskQueueDecl.h" -#include "DHTTaskFactoryDecl.h" +#include "SharedHandle.h" + +namespace aria2 { + +class DHTRoutingTable; +class DHTTaskQueue; +class DHTTaskFactory; class DHTBucketRefreshCommand:public TimeBasedCommand { private: - DHTRoutingTableHandle _routingTable; + SharedHandle<DHTRoutingTable> _routingTable; - DHTTaskQueueHandle _taskQueue; + SharedHandle<DHTTaskQueue> _taskQueue; - DHTTaskFactoryHandle _taskFactory; + SharedHandle<DHTTaskFactory> _taskFactory; public: DHTBucketRefreshCommand(int32_t cuid, DownloadEngine* e, time_t interval); @@ -56,11 +60,13 @@ public: virtual void process(); - void setRoutingTable(const DHTRoutingTableHandle& routingTable); + void setRoutingTable(const SharedHandle<DHTRoutingTable>& routingTable); - void setTaskQueue(const DHTTaskQueueHandle& taskQueue); + void setTaskQueue(const SharedHandle<DHTTaskQueue>& taskQueue); - void setTaskFactory(const DHTTaskFactoryHandle& taskFactory); + void setTaskFactory(const SharedHandle<DHTTaskFactory>& taskFactory); }; +} // namespace aria2 + #endif // _D_DHT_BUCKET_REFRESH_COMMAND_H_ |
