diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-14 07:17:55 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-14 07:17:55 +0000 |
| commit | 1372ac51ade17bc27126449bf29f99c6c2cf7703 (patch) | |
| tree | 974a54b86b20555c8822f651c7b3a53c0a072df3 /src/AbstractCommand.h | |
| parent | 93e5dbed325f29c1bf867a2847d3b839d545cfb2 (diff) | |
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added .cc file for classes/structs that only provided by header
file. Defined non-POD classes' ctor, dtor in .cc file. Moved
implementation code in header file to .cc file for major
classes/strucsts.
Diffstat (limited to 'src/AbstractCommand.h')
| -rw-r--r-- | src/AbstractCommand.h | 45 |
1 files changed, 16 insertions, 29 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h index cd8b2c7c..687738b9 100644 --- a/src/AbstractCommand.h +++ b/src/AbstractCommand.h @@ -36,17 +36,24 @@ #define D_ABSTRACT_COMMAND_H #include "Command.h" + +#include <vector> +#include <string> + #include "SharedHandle.h" #include "TimerA2.h" -#include "FileEntry.h" -#include "RequestGroup.h" namespace aria2 { +class FileEntry; +class RequestGroup; +class CheckIntegrityEntry; +class DownloadContext; +class SegmentMan; +class PieceStorage; class Request; class DownloadEngine; class Segment; -class Exception; class SocketCore; class Option; #ifdef ENABLE_ASYNC_DNS @@ -98,20 +105,14 @@ protected: return req_; } - void setRequest(const SharedHandle<Request>& request) - { - req_ = request; - } + void setRequest(const SharedHandle<Request>& request); const SharedHandle<FileEntry>& getFileEntry() const { return fileEntry_; } - void setFileEntry(const SharedHandle<FileEntry>& fileEntry) - { - fileEntry_ = fileEntry; - } + void setFileEntry(const SharedHandle<FileEntry>& fileEntry); DownloadEngine* getDownloadEngine() const { @@ -123,10 +124,7 @@ protected: return socket_; } - void setSocket(const SharedHandle<SocketCore>& s) - { - socket_ = s; - } + void setSocket(const SharedHandle<SocketCore>& s); void createSocket(); @@ -213,20 +211,9 @@ protected: const SharedHandle<Option>& getOption() const; - const SharedHandle<DownloadContext>& getDownloadContext() const - { - return requestGroup_->getDownloadContext(); - } - - const SharedHandle<SegmentMan>& getSegmentMan() const - { - return requestGroup_->getSegmentMan(); - } - - const SharedHandle<PieceStorage>& getPieceStorage() const - { - return requestGroup_->getPieceStorage(); - } + const SharedHandle<DownloadContext>& getDownloadContext() const; + const SharedHandle<SegmentMan>& getSegmentMan() const; + const SharedHandle<PieceStorage>& getPieceStorage() const; Timer& getCheckPoint() { |
