/* */ #ifndef _D_FILE_ALLOCATION_ITERATOR_H_ #define _D_FILE_ALLOCATION_ITERATOR_H_ #include "common.h" #include "SharedHandle.h" #include namespace aria2 { class FileAllocationIterator { public: virtual ~FileAllocationIterator() {} virtual void allocateChunk() = 0; virtual bool finished() = 0; virtual off_t getCurrentLength() = 0; virtual uint64_t getTotalLength() = 0; }; typedef SharedHandle FileAllocationIteratorHandle; } // namespace aria2 #endif // _D_FILE_ALLOCATION_ITERATOR_H_