From a68b29a31abdf69c34b36a9c31d834a8bb71852e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 9 Jun 2010 15:04:01 +0000 Subject: 2010-06-10 Tatsuhiro Tsujikawa Made protected member variable private. Added accessor funcs. * src/BtCheckIntegrityEntry.cc * src/BtFileAllocationEntry.cc * src/CheckIntegrityEntry.cc * src/CheckIntegrityEntry.h * src/ChecksumCheckIntegrityEntry.cc * src/FileAllocationEntry.cc * src/PieceHashCheckIntegrityEntry.cc * src/RequestGroupEntry.h * src/StreamCheckIntegrityEntry.cc * src/StreamFileAllocationEntry.cc --- src/CheckIntegrityEntry.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/CheckIntegrityEntry.cc') diff --git a/src/CheckIntegrityEntry.cc b/src/CheckIntegrityEntry.cc index 173822e2..643cb540 100644 --- a/src/CheckIntegrityEntry.cc +++ b/src/CheckIntegrityEntry.cc @@ -84,7 +84,7 @@ bool CheckIntegrityEntry::finished() void CheckIntegrityEntry::cutTrailingGarbage() { - _requestGroup->getPieceStorage()->getDiskAdaptor()->cutTrailingGarbage(); + getRequestGroup()->getPieceStorage()->getDiskAdaptor()->cutTrailingGarbage(); } void CheckIntegrityEntry::proceedFileAllocation @@ -92,16 +92,21 @@ void CheckIntegrityEntry::proceedFileAllocation const SharedHandle& entry, DownloadEngine* e) { - if(_requestGroup->needsFileAllocation()) { + if(getRequestGroup()->needsFileAllocation()) { e->getFileAllocationMan()->pushEntry(entry); } else { entry->prepareForNextAction(commands, e); } // Disable directIO when fallocation() is going to be used. - if(_requestGroup->getOption()->get(PREF_FILE_ALLOCATION) == V_FALLOC) { + if(getRequestGroup()->getOption()->get(PREF_FILE_ALLOCATION) == V_FALLOC) { entry->disableDirectIO(); } } +void CheckIntegrityEntry::setValidator +(const SharedHandle& validator) +{ + _validator = validator; +} } // namespace aria2 -- cgit