summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityEntry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CheckIntegrityEntry.h')
-rw-r--r--src/CheckIntegrityEntry.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/CheckIntegrityEntry.h b/src/CheckIntegrityEntry.h
index dc60bfbc..5d6b2419 100644
--- a/src/CheckIntegrityEntry.h
+++ b/src/CheckIntegrityEntry.h
@@ -55,11 +55,13 @@ private:
protected:
void setValidator(const std::shared_ptr<IteratableValidator>& validator);
- void proceedFileAllocation(std::vector<Command*>& commands,
+ void proceedFileAllocation(std::vector<std::unique_ptr<Command>>& commands,
const std::shared_ptr<FileAllocationEntry>& entry,
DownloadEngine* e);
public:
- CheckIntegrityEntry(RequestGroup* requestGroup, Command* nextCommand = 0);
+ CheckIntegrityEntry(RequestGroup* requestGroup,
+ std::unique_ptr<Command> nextCommand =
+ std::unique_ptr<Command>());
virtual ~CheckIntegrityEntry();
@@ -75,11 +77,13 @@ public:
virtual void initValidator() = 0;
- virtual void onDownloadFinished(std::vector<Command*>& commands,
- DownloadEngine* e) = 0;
+ virtual void onDownloadFinished
+ (std::vector<std::unique_ptr<Command>>& commands,
+ DownloadEngine* e) = 0;
- virtual void onDownloadIncomplete(std::vector<Command*>& commands,
- DownloadEngine* e) = 0;
+ virtual void onDownloadIncomplete
+ (std::vector<std::unique_ptr<Command>>& commands,
+ DownloadEngine* e) = 0;
void cutTrailingGarbage();
};