diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-06-04 21:45:12 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-06-04 21:45:12 +0900 |
| commit | 4f3c526dcdf5fce74dd12be1c882f6c47d1829ec (patch) | |
| tree | 9e67f3032b6de4be1cf915fd86b439eea6521314 /src/FileEntry.h | |
| parent | adeead6f0396e2f8551d1182972e277728fd6c8b (diff) | |
Support PREF_DIR change for Metalink files
Reworked previous commit adeead6f0396e2f8551d1182972e277728fd6c8b, and
now support changing PREF_DIR for Metalink downloads.
Diffstat (limited to 'src/FileEntry.h')
| -rw-r--r-- | src/FileEntry.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/FileEntry.h b/src/FileEntry.h index 9e760a83..5f381d0c 100644 --- a/src/FileEntry.h +++ b/src/FileEntry.h @@ -85,6 +85,9 @@ private: std::string path_; std::string contentType_; std::string originalName_; + // path_ without parent directory component. This is primarily used + // to change directory (PREF_DIR option). + std::string suffixPath_; Timer lastFasterReplace_; int maxConnectionPerServer_; @@ -264,6 +267,13 @@ public: return originalName_; } + void setSuffixPath(std::string suffixPath); + + const std::string& getSuffixPath() const + { + return suffixPath_; + } + bool removeUri(const std::string& uri); bool emptyRequestUri() const; |
