/* */ #ifndef D_BT_NOT_INTERESTED_MESSAGE_H #define D_BT_NOT_INTERESTED_MESSAGE_H #include "ZeroBtMessage.h" namespace aria2 { class PeerStorage; class BtNotInterestedMessage; typedef SharedHandle BtNotInterestedMessageHandle; class BtNotInterestedMessage : public ZeroBtMessage { private: SharedHandle peerStorage_; public: BtNotInterestedMessage(); virtual ~BtNotInterestedMessage(); static const uint8_t ID = 3; static const std::string NAME; static SharedHandle create (const unsigned char* data, size_t dataLength); virtual void doReceivedAction(); virtual bool sendPredicate() const; virtual void onSendComplete(); void setPeerStorage(const SharedHandle& peerStorage); }; } // namespace aria2 #endif // D_BT_NOT_INTERESTED_MESSAGE_H