#include <interfaces.h>
Inheritance diagram for InterfaceBase< thisIF, cmplIF >:
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 | |
thisInterface * | me |
bool | me_valid |
Definition at line 327 of file interfaces.h.
typedef thisClass InterfaceBase< thisIF, cmplIF >::BaseClass |
Definition at line 343 of file interfaces.h.
typedef InterfaceBase<cmplIF, thisIF> InterfaceBase< thisIF, cmplIF >::cmplClass [private] |
Definition at line 331 of file interfaces.h.
typedef cmplIF InterfaceBase< thisIF, cmplIF >::cmplInterface |
Definition at line 338 of file interfaces.h.
typedef QPtrListIterator<cmplIF> InterfaceBase< thisIF, cmplIF >::IFIterator |
Definition at line 341 of file interfaces.h.
typedef QPtrList<cmplIF> InterfaceBase< thisIF, cmplIF >::IFList |
Definition at line 340 of file interfaces.h.
typedef InterfaceBase<thisIF, cmplIF> InterfaceBase< thisIF, cmplIF >::thisClass [private] |
Definition at line 330 of file interfaces.h.
typedef thisIF InterfaceBase< thisIF, cmplIF >::thisInterface |
Definition at line 337 of file interfaces.h.
InterfaceBase< thisIF, cmplIF >::InterfaceBase | ( | int | maxIConnections = -1 |
) |
Definition at line 521 of file interfaces.h.
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.
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.
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().
virtual unsigned InterfaceBase< thisIF, cmplIF >::connectedI | ( | ) | const [inline, virtual] |
Definition at line 371 of file interfaces.h.
References InterfaceBase< thisIF, cmplIF >::iConnections.
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().
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().
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().
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().
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().
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().
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().
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().
virtual void InterfaceBase< thisIF, cmplIF >::noticeConnectedI | ( | cmplInterface * | , | |
bool | ||||
) | [inline, virtual] |
Definition at line 366 of file interfaces.h.
Referenced by InterfaceBase< thisIF, cmplIF >::connectI().
virtual void InterfaceBase< thisIF, cmplIF >::noticeConnectI | ( | cmplInterface * | , | |
bool | ||||
) | [inline, virtual] |
Definition at line 365 of file interfaces.h.
Referenced by InterfaceBase< thisIF, cmplIF >::connectI().
virtual void InterfaceBase< thisIF, cmplIF >::noticeDisconnectedI | ( | cmplInterface * | , | |
bool | ||||
) | [inline, virtual] |
Definition at line 368 of file interfaces.h.
Referenced by InterfaceBase< thisIF, cmplIF >::disconnectI().
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().
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().
void InterfaceBase< thisIF, cmplIF >::removeListener | ( | const cmplInterface * | i | ) | [protected] |
Definition at line 696 of file interfaces.h.
References InterfaceBase< thisIF, cmplIF >::m_FineListeners.
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().
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().
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().
int InterfaceBase< thisIF, cmplIF >::maxIConnections [protected] |
Definition at line 383 of file interfaces.h.
Referenced by InterfaceBase< thisIF, cmplIF >::isIConnectionFree().
thisInterface* InterfaceBase< thisIF, cmplIF >::me [private] |
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().