/* */ #ifndef _D_BT_CANCEL_SENDING_PIECE_EVENT_H_ #define _D_BT_CANCEL_SENDING_PIECE_EVENT_H_ #include "BtEvent.h" class BtCancelSendingPieceEvent : public BtEvent { private: uint32_t index; uint32_t begin; uint32_t length; public: BtCancelSendingPieceEvent(uint32_t index, uint32_t begin, uint32_t length): index(index), begin(begin), length(length) {} virtual ~BtCancelSendingPieceEvent() {} void setIndex(uint32_t index) { this->index = index; } uint32_t getIndex() const { return index; } void setBegin(uint32_t begin) { this->begin = begin; } uint32_t getBegin() const { return begin; } void setLength(uint32_t length) { this->length = length; } uint32_t getLength() const { return length; } }; typedef SharedHandle BtCancelSendingPieceEventHandle; #endif // _D_BT_CANCEL_SENDING_PIECE_EVENT_H_