NEOCCA bindings Specification
0.2.8
|
00001 #ifndef __neoConnectionEvent_H__ 00002 #define __neoConnectionEvent_H__ 00003 00004 #include <boost/shared_ptr.hpp> 00005 00006 namespace neo { 00007 namespace cca { 00008 namespace ports { 00009 00013 enum EventType { 00014 Error = -1, // Someone got a bogus event object somehow. 00015 ALL = 0, // Component wants to receive all event notices. 00016 // ALL itself never received. 00017 ConnectPending = 1, // A connection is about to be attempted. 00018 Connected = 2, // A connection has been made. 00019 DisconnectPending = 3, // A disconnection is about to be attempted. 00020 Disconnected = 4, // A disconnection has been made. 00021 }; 00022 00023 00027 class ConnectionEvent { 00028 public: 00029 00031 virtual ~ConnectionEvent() {} 00032 00034 virtual enum EventType getEventType()= 0; 00035 00044 virtual TypeMap_shared getPortInfo()= 0; 00045 }; 00046 00048 typedef boost::shared_ptr< ConnectionEvent > ConnectionEvent_shared; 00049 00050 } // end namespace ports 00051 } // end namespace cca 00052 } // end namespace neo 00053 #endif // __neoConnectionEvent_H__