summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 15:04:01 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 15:04:01 +0000
commita68b29a31abdf69c34b36a9c31d834a8bb71852e (patch)
treebe0cf6590671b3dc4472bdbf26a7d911c5871279 /src/CheckIntegrityEntry.cc
parentf114c890961ef9a0f7666b077b40d22f39b6cdd3 (diff)
2010-06-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
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
Diffstat (limited to 'src/CheckIntegrityEntry.cc')
-rw-r--r--src/CheckIntegrityEntry.cc11
1 files changed, 8 insertions, 3 deletions
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<FileAllocationEntry>& 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<IteratableValidator>& validator)
+{
+ _validator = validator;
+}
} // namespace aria2