InterfaceBase< thisIF, cmplIF > Class Template Reference

#include <interfaces.h>

Inheritance diagram for InterfaceBase< thisIF, cmplIF >:

Inheritance graph
[legend]
Collaboration diagram for InterfaceBase< thisIF, cmplIF >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef thisIF thisInterface
typedef cmplIF cmplInterface
typedef QPtrList< cmplIF > IFList
typedef QPtrListIterator<
cmplIF > 
IFIterator
typedef thisClass BaseClass

Public Member Functions

 InterfaceBase (int maxIConnections=-1)
virtual ~InterfaceBase ()
virtual bool connectI (Interface *i)
virtual bool disconnectI (Interface *i)
virtual void noticeConnectI (cmplInterface *, bool)
virtual void noticeConnectedI (cmplInterface *, bool)
virtual void noticeDisconnectI (cmplInterface *, bool)
virtual void noticeDisconnectedI (cmplInterface *, bool)
virtual bool isIConnectionFree () const
virtual unsigned connectedI () const
thisIF * initThisInterfacePointer ()
thisIF * getThisInterfacePointer () const
bool isThisInterfacePointerValid () const
bool hasConnectionTo (cmplInterface *other) const
void appendConnectionTo (cmplInterface *other)
void removeConnectionTo (cmplInterface *other)

Protected Member Functions

virtual void disconnectAllI ()
bool addListener (const cmplInterface *i, QPtrList< cmplInterface > &list)
void removeListener (const cmplInterface *i, QPtrList< cmplInterface > &list)
void removeListener (const cmplInterface *i)

Protected Attributes

IFList iConnections
int maxIConnections
QMap< const cmplInterface *,
QPtrList< QPtrList< cmplInterface > > > 
m_FineListeners

Private Types

typedef InterfaceBase< thisIF,
cmplIF > 
thisClass
typedef InterfaceBase< cmplIF,
thisIF > 
cmplClass

Private Attributes

thisInterfaceme
bool me_valid

Detailed Description

template<class thisIF, class cmplIF>
class InterfaceBase< thisIF, cmplIF >

Definition at line 327 of file interfaces.h.


Member Typedef Documentation

template<class thisIF, class cmplIF>
typedef thisClass InterfaceBase< thisIF, cmplIF >::BaseClass

Definition at line 343 of file interfaces.h.

template<class thisIF, class cmplIF>
typedef InterfaceBase<cmplIF, thisIF> InterfaceBase< thisIF, cmplIF >::cmplClass [private]

Definition at line 331 of file interfaces.h.

template<class thisIF, class cmplIF>
typedef cmplIF InterfaceBase< thisIF, cmplIF >::cmplInterface

Definition at line 338 of file interfaces.h.

template<class thisIF, class cmplIF>
typedef QPtrListIterator<cmplIF> InterfaceBase< thisIF, cmplIF >::IFIterator

Definition at line 341 of file interfaces.h.

template<class thisIF, class cmplIF>
typedef QPtrList<cmplIF> InterfaceBase< thisIF, cmplIF >::IFList

Definition at line 340 of file interfaces.h.

template<class thisIF, class cmplIF>
typedef InterfaceBase<thisIF, cmplIF> InterfaceBase< thisIF, cmplIF >::thisClass [private]

Definition at line 330 of file interfaces.h.

template<class thisIF, class cmplIF>
typedef thisIF InterfaceBase< thisIF, cmplIF >::thisInterface

Definition at line 337 of file interfaces.h.


Constructor & Destructor Documentation

template<class thisIF, class cmplIF>
InterfaceBase< thisIF, cmplIF >::InterfaceBase ( int  maxIConnections = -1  ) 

Definition at line 521 of file interfaces.h.

template<class thisIF, class cmplIF>
InterfaceBase< thisIF, cmplIF >::~InterfaceBase (  )  [virtual]

Definition at line 530 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::disconnectAllI(), InterfaceBase< thisIF, cmplIF >::iConnections, and InterfaceBase< thisIF, cmplIF >::me_valid.


Member Function Documentation

template<class thisIF, class cmplIF>
bool InterfaceBase< thisIF, cmplIF >::addListener ( const cmplInterface i,
QPtrList< cmplInterface > &  list 
) [protected]

Definition at line 674 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::iConnections, and InterfaceBase< thisIF, cmplIF >::m_FineListeners.

template<class thisIF, class cmplIF>
void InterfaceBase< thisIF, cmplIF >::appendConnectionTo ( cmplInterface other  )  [inline]

Definition at line 377 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::iConnections.

Referenced by InterfaceBase< thisIF, cmplIF >::connectI().

template<class thisIF, class cmplIF>
virtual unsigned InterfaceBase< thisIF, cmplIF >::connectedI (  )  const [inline, virtual]

Definition at line 371 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::iConnections.

template<class thisIF, class cmplIF>
bool InterfaceBase< thisIF, cmplIF >::connectI ( Interface i  )  [virtual]

Reimplemented from Interface.

Definition at line 564 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::appendConnectionTo(), InterfaceBase< thisIF, cmplIF >::iConnections, InterfaceBase< thisIF, cmplIF >::initThisInterfacePointer(), InterfaceBase< thisIF, cmplIF >::isIConnectionFree(), InterfaceBase< thisIF, cmplIF >::me, InterfaceBase< thisIF, cmplIF >::noticeConnectedI(), and InterfaceBase< thisIF, cmplIF >::noticeConnectI().

template<class thisIF, class cmplIF>
void InterfaceBase< thisIF, cmplIF >::disconnectAllI (  )  [protected, virtual]

Definition at line 654 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::disconnectI(), InterfaceBase< thisIF, cmplIF >::iConnections, and InterfaceBase< thisIF, cmplIF >::me_valid.

Referenced by InterfaceBase< thisIF, cmplIF >::~InterfaceBase().

template<class thisIF, class cmplIF>
bool InterfaceBase< thisIF, cmplIF >::disconnectI ( Interface i  )  [virtual]

Reimplemented from Interface.

Definition at line 608 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::getThisInterfacePointer(), InterfaceBase< thisIF, cmplIF >::hasConnectionTo(), InterfaceBase< thisIF, cmplIF >::isThisInterfacePointerValid(), InterfaceBase< thisIF, cmplIF >::me, InterfaceBase< thisIF, cmplIF >::me_valid, InterfaceBase< thisIF, cmplIF >::noticeDisconnectedI(), InterfaceBase< thisIF, cmplIF >::noticeDisconnectI(), InterfaceBase< thisIF, cmplIF >::removeConnectionTo(), and InterfaceBase< thisIF, cmplIF >::removeListener().

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectAllI().

template<class thisIF, class cmplIF>
thisIF* InterfaceBase< thisIF, cmplIF >::getThisInterfacePointer (  )  const [inline]

Definition at line 374 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::me.

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI().

template<class thisIF, class cmplIF>
bool InterfaceBase< thisIF, cmplIF >::hasConnectionTo ( cmplInterface other  )  const [inline]

Definition at line 376 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::iConnections.

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI().

template<class thisIF, class cmplIF>
thisIF * InterfaceBase< thisIF, cmplIF >::initThisInterfacePointer (  ) 

Definition at line 556 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::me, and InterfaceBase< thisIF, cmplIF >::me_valid.

Referenced by InterfaceBase< thisIF, cmplIF >::connectI().

template<class thisIF, class cmplIF>
bool InterfaceBase< thisIF, cmplIF >::isIConnectionFree (  )  const [virtual]

Definition at line 549 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::iConnections, and InterfaceBase< thisIF, cmplIF >::maxIConnections.

Referenced by InterfaceBase< thisIF, cmplIF >::connectI().

template<class thisIF, class cmplIF>
bool InterfaceBase< thisIF, cmplIF >::isThisInterfacePointerValid (  )  const [inline]

Definition at line 375 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::me_valid.

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI().

template<class thisIF, class cmplIF>
virtual void InterfaceBase< thisIF, cmplIF >::noticeConnectedI ( cmplInterface ,
bool   
) [inline, virtual]

Definition at line 366 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::connectI().

template<class thisIF, class cmplIF>
virtual void InterfaceBase< thisIF, cmplIF >::noticeConnectI ( cmplInterface ,
bool   
) [inline, virtual]

Definition at line 365 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::connectI().

template<class thisIF, class cmplIF>
virtual void InterfaceBase< thisIF, cmplIF >::noticeDisconnectedI ( cmplInterface ,
bool   
) [inline, virtual]

Definition at line 368 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI().

template<class thisIF, class cmplIF>
void InterfaceBase< thisIF, cmplIF >::noticeDisconnectI ( cmplInterface ,
bool   
) [virtual]

Definition at line 647 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::removeListener().

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI().

template<class thisIF, class cmplIF>
void InterfaceBase< thisIF, cmplIF >::removeConnectionTo ( cmplInterface other  )  [inline]

Definition at line 378 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::iConnections.

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI().

template<class thisIF, class cmplIF>
void InterfaceBase< thisIF, cmplIF >::removeListener ( const cmplInterface i  )  [protected]

Definition at line 696 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::m_FineListeners.

template<class thisIF, class cmplIF>
void InterfaceBase< thisIF, cmplIF >::removeListener ( const cmplInterface i,
QPtrList< cmplInterface > &  list 
) [protected]

Definition at line 687 of file interfaces.h.

References InterfaceBase< thisIF, cmplIF >::m_FineListeners.

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI(), and InterfaceBase< thisIF, cmplIF >::noticeDisconnectI().


Member Data Documentation

template<class thisIF, class cmplIF>
IFList InterfaceBase< thisIF, cmplIF >::iConnections [protected]

Definition at line 382 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::addListener(), InterfaceBase< thisIF, cmplIF >::appendConnectionTo(), InterfaceBase< thisIF, cmplIF >::connectedI(), InterfaceBase< thisIF, cmplIF >::connectI(), InterfaceBase< thisIF, cmplIF >::disconnectAllI(), InterfaceBase< thisIF, cmplIF >::hasConnectionTo(), InterfaceBase< thisIF, cmplIF >::isIConnectionFree(), InterfaceBase< thisIF, cmplIF >::removeConnectionTo(), and InterfaceBase< thisIF, cmplIF >::~InterfaceBase().

template<class thisIF, class cmplIF>
QMap<const cmplInterface *, QPtrList<QPtrList<cmplInterface> > > InterfaceBase< thisIF, cmplIF >::m_FineListeners [protected]

Definition at line 391 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::addListener(), and InterfaceBase< thisIF, cmplIF >::removeListener().

template<class thisIF, class cmplIF>
int InterfaceBase< thisIF, cmplIF >::maxIConnections [protected]

Definition at line 383 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::isIConnectionFree().

template<class thisIF, class cmplIF>
thisInterface* InterfaceBase< thisIF, cmplIF >::me [private]

Definition at line 394 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::connectI(), InterfaceBase< thisIF, cmplIF >::disconnectI(), InterfaceBase< thisIF, cmplIF >::getThisInterfacePointer(), and InterfaceBase< thisIF, cmplIF >::initThisInterfacePointer().

template<class thisIF, class cmplIF>
bool InterfaceBase< thisIF, cmplIF >::me_valid [private]

Definition at line 395 of file interfaces.h.

Referenced by InterfaceBase< thisIF, cmplIF >::disconnectAllI(), InterfaceBase< thisIF, cmplIF >::disconnectI(), InterfaceBase< thisIF, cmplIF >::initThisInterfacePointer(), InterfaceBase< thisIF, cmplIF >::isThisInterfacePointerValid(), and InterfaceBase< thisIF, cmplIF >::~InterfaceBase().


The documentation for this class was generated from the following file:
Generated on Fri Jan 28 16:42:28 2011 for kradio by  doxygen 1.4.7