/* */ #ifndef _D_FILE_ALLOCATION_ENTRY_H_ #define _D_FILE_ALLOCATION_ENTRY_H_ #include "RequestGroupEntry.h" #include "ProgressAwareEntry.h" #include namespace aria2 { class FileAllocationIterator; class Command; class DownloadEngine; class FileAllocationEntry : public RequestGroupEntry, public ProgressAwareEntry { private: SharedHandle _fileAllocationIterator; public: FileAllocationEntry(RequestGroup* requestGroup, Command* nextCommand = 0); ~FileAllocationEntry(); virtual off_t getCurrentLength(); virtual uint64_t getTotalLength(); virtual bool finished(); void allocateChunk(); virtual std::deque prepareForNextAction(DownloadEngine* e) = 0; }; typedef SharedHandle FileAllocationEntryHandle; typedef std::deque FileAllocationEntries; } // namespace aria2 #endif // _D_FILE_ALLOCATION_ENTRY_H_