diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-27 12:32:14 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-27 12:32:14 +0000 |
| commit | 368d53071aff63a1bff9115094a0f238e18f57e8 (patch) | |
| tree | 61f23576c825caf2a04bf6b874972157f512ae51 /src/FileEntry.h | |
| parent | fdb2ee28ccf9ee2ee0b8fa04af3ed7735d39cd6e (diff) | |
2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added the ability to recognize url-list in a torrent file.
The retrieved URLs are attached to the corresponding FileEntry.
* src/DefaultBtContext.{h, cc}
* src/FileEntry.{h, cc}
* test/DefaultBtContextTest.cc
Diffstat (limited to 'src/FileEntry.h')
| -rw-r--r-- | src/FileEntry.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FileEntry.h b/src/FileEntry.h index af475ab9..d249a9ee 100644 --- a/src/FileEntry.h +++ b/src/FileEntry.h @@ -41,6 +41,7 @@ class FileEntry { private: string path; + Strings _uris; int64_t length; int64_t offset; bool extracted; @@ -48,7 +49,7 @@ private: public: FileEntry():length(0), offset(0), extracted(false), requested(false) {} - FileEntry(const string& path, int64_t length, int64_t offset); + FileEntry(const string& path, int64_t length, int64_t offset, const Strings& uris = Strings()); ~FileEntry(); @@ -85,6 +86,11 @@ public: void setRequested(bool flag) { this->requested = flag; } void setupDir(const string& parentDir); + + const Strings& getAssociatedUris() const + { + return _uris; + } }; typedef SharedHandle<FileEntry> FileEntryHandle; |
