/* */ #ifndef _D_REALTIME_COMMAND_H_ #define _D_REALTIME_COMMAND_H_ #include "common.h" #include "RequestGroup.h" #include "DownloadEngine.h" #include "Exception.h" #include "RequestGroupAware.h" 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; }; #endif // _D_REALTIME_COMMAND_H_