/* */ #ifndef D_BT_INTERESTED_MESSAGE_H #define D_BT_INTERESTED_MESSAGE_H #include "ZeroBtMessage.h" namespace aria2 { class PeerStorage; class BtInterestedMessage; class BtInterestedMessage : public ZeroBtMessage { private: PeerStorage* peerStorage_; public: BtInterestedMessage(); virtual ~BtInterestedMessage(); static const uint8_t ID = 2; static const char NAME[]; static std::unique_ptr create (const unsigned char* data, size_t dataLength); virtual void doReceivedAction() CXX11_OVERRIDE; virtual bool sendPredicate() const CXX11_OVERRIDE; virtual std::unique_ptr getProgressUpdate() CXX11_OVERRIDE; void setPeerStorage(PeerStorage* peerStorage); }; } // namespace aria2 #endif // D_BT_INTERESTED_MESSAGE_H