2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Rewritten event dispatch in BtMessage. Removed BtEventListener,
	BtEvent.	
	* src/AbstractBtEventListener.h: Removed.
	* src/AbstractBtMessage.cc
	* src/AbstractBtMessage.h
	* src/BtAbortOutstandingRequestEvent.h
	* src/BtCancelSendingPieceEvent.h
	* src/BtChokedEvent.h: Removed.
	* src/BtChokingEvent.h
	* src/BtEvent.h: Removed
	* src/BtEventListener.h: Removed.
	* src/BtMessage.h
	* src/BtPieceMessage.cc
	* src/BtPieceMessage.h
	* src/BtRequestMessage.cc
	* src/BtRequestMessage.h
	* src/DefaultBtMessageDispatcher.cc
	* src/Makefile.am
	* src/a2functional.h
	* test/BtPieceMessageTest.cc
	* test/BtRequestMessageTest.cc
	* test/DefaultBtMessageDispatcherTest.cc
	* test/MockBtMessage.h
This commit is contained in:
Tatsuhiro Tsujikawa 2009-04-21 14:52:04 +00:00
parent 82b0d66505
commit afdd61f9d1
23 changed files with 150 additions and 485 deletions

View file

@ -84,7 +84,13 @@ public:
return false;
}
virtual void handleEvent(const SharedHandle<BtEvent>& event) {}
virtual void onAbortOutstandingRequestEvent
(const BtAbortOutstandingRequestEvent& event) {}
virtual void onCancelSendingPieceEvent
(const BtCancelSendingPieceEvent& event) {}
virtual void onChokingEvent(const BtChokingEvent& event) {}
virtual void onQueued() {}