/* */ #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_; int32_t begin_; int32_t length_; public: BtCancelSendingPieceEvent(size_t index, int32_t begin, int32_t length): index_(index), begin_(begin), length_(length) {} size_t getIndex() const { return index_; } int32_t getBegin() const { return begin_; } int32_t getLength() const { return length_; } }; } // namespace aria2 #endif // D_BT_CANCEL_SENDING_PIECE_EVENT_H