summaryrefslogtreecommitdiff
path: root/src/FileEntry.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
commit048a2cf59737f761876e81a77e8d064c45c752d7 (patch)
tree65c9d5498aafe6a8c8e640ddfcc43c7013504d0d /src/FileEntry.h
parente26bbbb9eee140ba24402fe872a752b42f0077de (diff)
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented BitTorrent/http/ftp integrated download. I've rewritten lots of files and now some headers have forward class declarations to reduce compile time. The implementation is extremely alpha stage, I recommend to use this for testing purpose only.
Diffstat (limited to 'src/FileEntry.h')
-rw-r--r--src/FileEntry.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/FileEntry.h b/src/FileEntry.h
index b395ce84..af475ab9 100644
--- a/src/FileEntry.h
+++ b/src/FileEntry.h
@@ -50,20 +50,10 @@ public:
FileEntry(const string& path, int64_t length, int64_t offset);
- FileEntry& operator=(const FileEntry& entry)
- {
- if(this != &entry) {
- path = entry.path;
- length = entry.length;
- offset = entry.offset;
- extracted = entry.extracted;
- requested = entry.requested;
- }
- return *this;
- }
-
~FileEntry();
+ FileEntry& operator=(const FileEntry& entry);
+
string getBasename() const
{
return File(path).getBasename();