diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-06-05 11:37:25 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-06-05 11:37:25 +0000 |
| commit | 2722c0591f3eda48a674748b29889d1cf46d7f71 (patch) | |
| tree | 152ee2c2eef2c65e583227a1d1faf2d618adb2ea /src/CheckIntegrityCommand.h | |
| parent | 3dd06aacfbd6c8a1a027532e34dd21c04731b309 (diff) | |
2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Make download size shown in MB, KB.
* src/ConsoleDownloadEngine.h (sendStatistics)
* src/Util.h, srcUtil.cc (abbrevSize): New function.
Diffstat (limited to 'src/CheckIntegrityCommand.h')
| -rw-r--r-- | src/CheckIntegrityCommand.h | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/src/CheckIntegrityCommand.h b/src/CheckIntegrityCommand.h index 414b70da..e66fe93d 100644 --- a/src/CheckIntegrityCommand.h +++ b/src/CheckIntegrityCommand.h @@ -36,41 +36,22 @@ #define _D_CHECK_INTEGRITY_COMMAND_H_ #include "RealtimeCommand.h" -#include "Request.h" #include "IteratableChunkChecksumValidator.h" -#include "DownloadCommand.h" +#include "CheckIntegrityEntry.h" +#include "TimeA2.h" class CheckIntegrityCommand : public RealtimeCommand { private: - RequestHandle _req; - IteratableChunkChecksumValidatorHandle _validator; - DownloadCommand* _nextDownloadCommand; + CheckIntegrityEntryHandle _entry; + Time _timer; public: - CheckIntegrityCommand(int cuid, const RequestHandle& req, RequestGroup* requestGroup, DownloadEngine* e): - RealtimeCommand(cuid, requestGroup, e), - _req(req), - _validator(0), - _nextDownloadCommand(0) - { - ++_requestGroup->numConnection; - } + CheckIntegrityCommand(int cuid, RequestGroup* requestGroup, DownloadEngine* e, const CheckIntegrityEntryHandle& entry); - virtual ~CheckIntegrityCommand() - { - --_requestGroup->numConnection; - delete _nextDownloadCommand; - } - - void initValidator(); + virtual ~CheckIntegrityCommand(); virtual bool executeInternal(); virtual bool handleException(Exception* e); - - void setNextDownloadCommand(DownloadCommand* command) - { - _nextDownloadCommand = command; - } }; #endif // _D_CHECK_INTEGRITY_COMMAND_H_ |
