/* */ #ifndef _D_TRACKER_WATCHER_COMMAND_H_ #define _D_TRACKER_WATCHER_COMMAND_H_ #include "BtContextAwareCommand.h" #include "TorrentDownloadEngine.h" class TrackerWatcherCommand : public BtContextAwareCommand { private: TorrentDownloadEngine* e; /** * Returns a command for announce request. Returns 0 if no announce request * is needed. */ Command* createRequestCommand(const string& url); public: TrackerWatcherCommand(int cuid, TorrentDownloadEngine* e, const BtContextHandle& btContext); ~TrackerWatcherCommand(); Command* createCommand(); bool execute(); }; #endif // _D_TRACKER_WATCHER_COMMAND_H_