/* */ #ifndef _D_DHT_AUTO_SAVE_COMMAND_H_ #define _D_DHT_AUTO_SAVE_COMMAND_H_ #include "TimeBasedCommand.h" #include "SharedHandle.h" namespace aria2 { class DHTRoutingTable; class DHTNode; class DHTAutoSaveCommand : public TimeBasedCommand { private: SharedHandle _localNode; SharedHandle _routingTable; void save(); public: DHTAutoSaveCommand(int32_t cuid, DownloadEngine* e, int32_t interval); virtual ~DHTAutoSaveCommand(); virtual void preProcess(); virtual void process(); void setLocalNode(const SharedHandle& localNode); void setRoutingTable(const SharedHandle& routingTable); }; } // namespace aria2 #endif // _D_DHT_AUTO_SAVE_COMMAND_H_