From cf5cb05816fd25b43b271c6175494f6b976ba7bc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 3 Sep 2007 10:32:19 +0000 Subject: 2007-09-03 Tatsuhiro Tsujikawa Automatically save *.aria2 control file of http/ftp download in every 60 seconds. * src/AutoSaveCommand.{h, cc}: New class. * src/TimeBasedCommand.{h, cc}: New class. * src/DownloadEngineFactory.cc (newConsoleEngine) --- src/AutoSaveCommand.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/AutoSaveCommand.h (limited to 'src/AutoSaveCommand.h') diff --git a/src/AutoSaveCommand.h b/src/AutoSaveCommand.h new file mode 100644 index 00000000..6a1f23ff --- /dev/null +++ b/src/AutoSaveCommand.h @@ -0,0 +1,53 @@ +/* */ +#ifndef _D_AUTO_SAVE_COMMAND_H_ +#define _D_AUTO_SAVE_COMMAND_H_ + +#include "TimeBasedCommand.h" + +class AutoSaveCommand : public TimeBasedCommand +{ +public: + AutoSaveCommand(int32_t cuid, DownloadEngine* e, int32_t interval): + TimeBasedCommand(cuid, e, interval) {} + + virtual ~AutoSaveCommand() {} + + virtual void preProcess(); + + virtual void process(); +}; + +#endif // _D_AUTO_SAVE_COMMAND_H_ -- cgit