/* */ #ifndef _D_BT_CANCEL_SENDING_PIECE_EVENT_H_ #define _D_BT_CANCEL_SENDING_PIECE_EVENT_H_ #include "BtEvent.h" class BtCancelSendingPieceEvent : public BtEvent { private: int32_t index; int32_t begin; uint32_t length; public: BtCancelSendingPieceEvent(int32_t index, int32_t begin, uint32_t length): index(index), begin(begin), length(length) {} virtual ~BtCancelSendingPieceEvent() {} void setIndex(int32_t index) { this->index = index; } int32_t getIndex() const { return index; } void setBegin(int32_t begin) { this->begin = begin; } int32_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_