diff options
Diffstat (limited to 'src/DownloadContext.h')
| -rw-r--r-- | src/DownloadContext.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DownloadContext.h b/src/DownloadContext.h index 66b5c1f5..04d55ffe 100644 --- a/src/DownloadContext.h +++ b/src/DownloadContext.h @@ -61,7 +61,7 @@ private: RequestGroup* ownerRequestGroup_; - std::vector<std::unique_ptr<ContextAttribute>> attrs_; + std::vector<std::shared_ptr<ContextAttribute>> attrs_; std::vector<std::shared_ptr<FileEntry>> fileEntries_; @@ -197,13 +197,15 @@ public: void setChecksumVerified(bool f) { checksumVerified_ = f; } void setAttribute(ContextAttributeType key, - std::unique_ptr<ContextAttribute> value); + std::shared_ptr<ContextAttribute> value); - const std::unique_ptr<ContextAttribute>& + const std::shared_ptr<ContextAttribute>& getAttribute(ContextAttributeType key); bool hasAttribute(ContextAttributeType key) const; + const std::vector<std::shared_ptr<ContextAttribute>>& getAttributes() const; + void resetDownloadStartTime(); void resetDownloadStopTime(); |
