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  )  [inline]

Definition at line 521 of file interfaces.h.

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

Member Function Documentation

template<class thisIF , class cmplIF >
bool InterfaceBase< thisIF, cmplIF >::addListener ( const cmplInterface i,
QPtrList< cmplInterface > &  list 
) [inline, protected]
template<class thisIF , class cmplIF >
void InterfaceBase< thisIF, cmplIF >::appendConnectionTo ( cmplInterface other  )  [inline]
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  )  [inline, virtual]
template<class thisIF , class cmplIF >
void InterfaceBase< thisIF, cmplIF >::disconnectAllI (  )  [inline, protected, virtual]
template<class thisIF , class cmplIF >
bool InterfaceBase< thisIF, cmplIF >::disconnectI ( Interface i  )  [inline, virtual]
template<class thisIF , class cmplIF >
thisIF* InterfaceBase< thisIF, cmplIF >::getThisInterfacePointer (  )  const [inline]
template<class thisIF , class cmplIF >
bool InterfaceBase< thisIF, cmplIF >::hasConnectionTo ( cmplInterface other  )  const [inline]
template<class thisIF , class cmplIF >
thisIF * InterfaceBase< thisIF, cmplIF >::initThisInterfacePointer (  )  [inline]
template<class thisIF , class cmplIF >
bool InterfaceBase< thisIF, cmplIF >::isIConnectionFree (  )  const [inline, virtual]
template<class thisIF , class cmplIF >
bool InterfaceBase< thisIF, cmplIF >::isThisInterfacePointerValid (  )  const [inline]
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 i,
bool   
) [inline, virtual]
template<class thisIF , class cmplIF >
void InterfaceBase< thisIF, cmplIF >::removeConnectionTo ( cmplInterface other  )  [inline]
template<class thisIF , class cmplIF >
void InterfaceBase< thisIF, cmplIF >::removeListener ( const cmplInterface i  )  [inline, 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 
) [inline, protected]

Member Data Documentation

template<class thisIF , class cmplIF >
IFList InterfaceBase< thisIF, cmplIF >::iConnections [protected]
template<class thisIF , class cmplIF >
QMap<const cmplInterface *, QPtrList<QPtrList<cmplInterface> > > InterfaceBase< thisIF, cmplIF >::m_FineListeners [protected]
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]
template<class thisIF , class cmplIF >
bool InterfaceBase< thisIF, cmplIF >::me_valid [private]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 28 Jan 2011 for kradio by  doxygen 1.6.1