/* */ #ifndef D_LPD_DISPATCH_MESSAGE_COMMAND_H #define D_LPD_DISPATCH_MESSAGE_COMMAND_H #include "Command.h" #include namespace aria2 { class LpdMessageDispatcher; class DownloadEngine; class BtRuntime; class LpdDispatchMessageCommand : public Command { private: std::shared_ptr dispatcher_; DownloadEngine* e_; int tryCount_; std::shared_ptr btRuntime_; public: LpdDispatchMessageCommand( cuid_t cuid, const std::shared_ptr& dispatcher, DownloadEngine* e); ~LpdDispatchMessageCommand(); virtual bool execute() CXX11_OVERRIDE; void setBtRuntime(const std::shared_ptr& btRuntime) { btRuntime_ = btRuntime; } }; } // namespace aria2 #endif // D_LPD_DISPATCH_MESSAGE_COMMAND_H