/* */ #ifndef _D_SLEEP_COMMAND_H_ #define _D_SLEEP_COMMAND_H_ #include "Command.h" #include "TimerA2.h" namespace aria2 { class DownloadEngine; class RequestGroup; class SleepCommand:public Command { private: DownloadEngine* engine_; RequestGroup* requestGroup_; Command* nextCommand_; time_t wait_; Timer checkPoint_; public: SleepCommand(cuid_t cuid, DownloadEngine* e, RequestGroup* requestGroup, Command* nextCommand, time_t wait); virtual ~SleepCommand(); bool execute(); }; } // namespace aria2 #endif // _D_SLEEP_COMMAND_H_