1 #ifndef _ifcpconnected_
\r
2 #define _ifcpconnected_
\r
7 \brief Defines interface for classes that use an existing FCP Connection
\r
12 IFCPConnected():m_fcp(NULL) {}
\r
13 IFCPConnected(FCPv2::Connection *fcp):m_fcp(fcp) {}
\r
15 virtual void SetFCPConnection(FCPv2::Connection *fcp) { m_fcp=fcp; }
\r
16 virtual FCPv2::Connection *GetFCPConnection() { return m_fcp; }
\r
19 \brief called when the FCP connection becomes disconnected
\r
21 Parent object is responsible for calling this whenever the FCP connection becomes disconnected
\r
23 virtual void FCPDisconnected()=0;
\r
25 \brief called when the FCP connection becomes connected
\r
27 Parent object is responsible for calling this whenever the FCP connection is established
\r
29 virtual void FCPConnected()=0;
\r
32 FCPv2::Connection *m_fcp;
\r
35 #endif // _ifcpconnected_
\r