/* */ #ifndef _D_REALTIME_COMMAND_H_ #define _D_REALTIME_COMMAND_H_ #include "Command.h" #include "RequestGroupAware.h" namespace aria2 { class DownloadEngine; class Exception; class RealtimeCommand : public Command, public RequestGroupAware { protected: DownloadEngine* _e; public: RealtimeCommand(int cuid, RequestGroup* requestGroup, DownloadEngine* e): Command(cuid), RequestGroupAware(requestGroup), _e(e) {} virtual ~RealtimeCommand() {} virtual bool execute(); virtual bool executeInternal() = 0; virtual bool handleException(Exception& e) = 0; }; } // namespace aria2 #endif // _D_REALTIME_COMMAND_H_