/* */ #ifndef D_NULL_PROGRESS_INFO_FILE_H #define D_NULL_PROGRESS_INFO_FILE_H #include "BtProgressInfoFile.h" #include "A2STR.h" namespace aria2 { class NullProgressInfoFile:public BtProgressInfoFile { public: virtual ~NullProgressInfoFile() {} virtual std::string getFilename() { return A2STR::NIL; } virtual bool exists() { return false; } virtual void save() {} virtual void load() {} virtual void removeFile() {} virtual void updateFilename() {} }; typedef SharedHandle NullProgressInfoFileHandle; } // namespace aria2 #endif // D_NULL_PROGRESS_INFO_FILE_H