CCAFFEINE  0.8.8
FrameworkConnectionEvent.h
00001 #ifndef __FrameworkConnectionEvent_H__
00002 #define __FrameworkConnectionEvent_H__
00003 #ifdef HAVE_CLASSIC
00004 
00007 class FrameworkConnectionEvent 
00008 : public virtual classic::gov::cca::ConnectionEvent
00009 {
00010  private:
00011 
00012   bool tf;
00013   classic::gov::cca::PortInfo* pi;
00014 
00015  public:
00018   FrameworkConnectionEvent(bool connected_, classic::gov::cca::PortInfo* pi_) {
00019     tf = connected_;
00020     pi = pi_;
00021   }
00022 
00024   virtual int connected() {
00025     return tf;
00026   }
00028   virtual int disconnected() {
00029     return !tf;
00030   }
00032   virtual classic::gov::cca::PortInfo* getPortInfo() {
00033     return pi;
00034   }
00035 };
00036 
00037 #endif // HAVE_CLASSIC
00038 #endif // __FrameworkConnectionEvent_H__