summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-15 11:46:25 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-15 11:46:25 +0000
commita27968bedadaca57e1792ae410d1a946fd936646 (patch)
treee8ac4ebc9981f2ffdc145bc5d259b850bc479a5d /src/AbstractCommand.h
parent7f92e32e485cfd99cce33568c04775e2413b5517 (diff)
2010-09-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that a file gets overwritten if -V is given and no hash is provided. Fixed the bug that --dry-run leads download error. Added RequestGroup::createCheckIntegrityEntry() which correctly creates CheckIntegrityEntry objects and open files based on -V option and the existence of control file. * src/AbstractCommand.cc * src/AbstractCommand.h * src/ChecksumCheckIntegrityEntry.cc * src/DownloadContext.cc * src/DownloadContext.h * src/FtpNegotiationCommand.cc * src/HttpResponseCommand.cc * src/PieceHashCheckIntegrityEntry.cc * src/RequestGroup.cc * src/RequestGroup.h * src/RequestGroupEntry.cc * src/RequestGroupEntry.h
Diffstat (limited to 'src/AbstractCommand.h')
-rw-r--r--src/AbstractCommand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h
index 75d50d57..810ba487 100644
--- a/src/AbstractCommand.h
+++ b/src/AbstractCommand.h
@@ -176,7 +176,8 @@ protected:
void setTimeout(time_t timeout) { timeout_ = timeout; }
- void prepareForNextAction(Command* nextCommand = 0);
+ void prepareForNextAction
+ (const SharedHandle<CheckIntegrityEntry>& checkEntry);
// Check if socket is connected. If socket is not connected and
// there are other addresses to try, command is created using