From 048a2cf59737f761876e81a77e8d064c45c752d7 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 11 Oct 2007 16:58:24 +0000 Subject: 2007-10-12 Tatsuhiro Tsujikawa 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. --- src/FileAllocationIterator.h | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/FileAllocationIterator.h (limited to 'src/FileAllocationIterator.h') diff --git a/src/FileAllocationIterator.h b/src/FileAllocationIterator.h new file mode 100644 index 00000000..10685e76 --- /dev/null +++ b/src/FileAllocationIterator.h @@ -0,0 +1,56 @@ +/* */ +#ifndef _D_FILE_ALLOCATION_ITERATOR_H_ +#define _D_FILE_ALLOCATION_ITERATOR_H_ + +#include "common.h" + +class FileAllocationIterator +{ +public: + virtual ~FileAllocationIterator() {} + + virtual void allocateChunk() = 0; + + virtual bool finished() = 0; + + virtual int64_t getCurrentLength() = 0; + + virtual int64_t getTotalLength() = 0; +}; + +typedef SharedHandle FileAllocationIteratorHandle; + +#endif // _D_FILE_ALLOCATION_ITERATOR_H_ -- cgit