/* */ #ifndef D_BT_CANCEL_SENDING_PIECE_EVENT_H #define D_BT_CANCEL_SENDING_PIECE_EVENT_H #include "common.h" namespace aria2 { class BtCancelSendingPieceEvent { private: size_t index_; uint32_t begin_; size_t length_; public: BtCancelSendingPieceEvent(size_t index, uint32_t begin, size_t length): index_(index), begin_(begin), length_(length) {} size_t getIndex() const { return index_; } uint32_t getBegin() const { return begin_; } size_t getLength() const { return length_; } }; } // namespace aria2 #endif // D_BT_CANCEL_SENDING_PIECE_EVENT_H