/* */ #ifndef _D_REALTIME_COMMAND_H_ #define _D_REALTIME_COMMAND_H_ #include "Command.h" namespace aria2 { class RequestGroup; class DownloadEngine; class Exception; class RealtimeCommand : public Command { private: RequestGroup* requestGroup_; DownloadEngine* e_; protected: DownloadEngine* getDownloadEngine() const { return e_; } RequestGroup* getRequestGroup() const { return requestGroup_; } public: RealtimeCommand(cuid_t cuid, RequestGroup* requestGroup, DownloadEngine* e); virtual ~RealtimeCommand(); virtual bool execute(); virtual bool executeInternal() = 0; virtual bool handleException(Exception& e) = 0; }; } // namespace aria2 #endif // _D_REALTIME_COMMAND_H_