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/NullProgressInfoFile.h | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/NullProgressInfoFile.h (limited to 'src/NullProgressInfoFile.h') diff --git a/src/NullProgressInfoFile.h b/src/NullProgressInfoFile.h new file mode 100644 index 00000000..7fd8415c --- /dev/null +++ b/src/NullProgressInfoFile.h @@ -0,0 +1,60 @@ +/* */ +#ifndef _D_NULL_PROGRESS_INFO_FILE_H_ +#define _D_NULL_PROGRESS_INFO_FILE_H_ + +#include "BtProgressInfoFile.h" + +class NullProgressInfoFile:public BtProgressInfoFile { +public: + virtual ~NullProgressInfoFile() {} + + virtual string getFilename() + { + return ""; + } + + virtual bool exists() { return false; } + + virtual void save() {} + + virtual void load() {} + + virtual void removeFile() {} +}; + +typedef SharedHandle NullProgressInfoFileHandle; + +#endif // _D_NULL_PROGRESS_INFO_FILE_H_ -- cgit