00001 #ifndef DisconnectingConnectionEvent_h_seen
00002 #define DisconnectingConnectionEvent_h_seen
00003
00004 namespace gov {
00005 namespace cca {
00006
00009 class DisconnectingConnectionEvent : public virtual ConnectionEvent {
00010
00011 private:
00012 PortInfo *pi;
00013
00014 public:
00015 DisconnectingConnectionEvent(PortInfo *pi) {
00016 this->pi = pi;
00017 }
00019 int connected() {
00020 return false;
00021 }
00023 int disconnected() {
00024 return true;
00025 }
00027 PortInfo *getPortInfo() {
00028 return pi;
00029 }
00030 };
00031
00032
00033 } ENDSEMI
00034 } ENDSEMI
00035
00036 #endif