OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ak::aSignalLinker Class Reference

Used to link [Widget] signals to the messaging system Every added widget will get all its possible/most important signals connected to slots. In case of an inbound signal a message will be generated and sent to the messaging system. Every object requires a uid which should be generated with the global uid manager. More...

#include "aSignalLinker.h"

Inheritance diagram for ak::aSignalLinker:

Public Member Functions

 aSignalLinker (aMessenger *_messanger, aUidManager *_uidManager)
 Default constructor.
 
virtual ~aSignalLinker ()
 Deconstructor

 
UID addLink (aAction *_object, UID _objectUid=invalidUID)
 Will create a new link for the provided action. Will return the object uid.
 
UID addLink (aCheckBoxWidget *_object, UID _objectUid=invalidUID)
 Will create a new link for the provided checkBox. Will return the object uid.
 
UID addLink (aLineEditWidget *_object, UID _objectUid=invalidUID)
 Will create a new link for the provided lineEdit. Will return the object uid.
 
UID addLink (aNiceLineEditWidget *_object, UID _objectUid=invalidUID)
 Will create a new link for the provided niceLineEdit. Will return the object uid.
 
UID addLink (aTimer *_object, UID _objectUid=invalidUID)
 Will create a new link for the provided timer. Will return the object uid.
 
UID addLink (aToolButtonWidget *_object, UID _objectUid=invalidUID)
 Will create a new link for the provided toolButton. Will return the object uid.
 

Detailed Description

Used to link [Widget] signals to the messaging system Every added widget will get all its possible/most important signals connected to slots. In case of an inbound signal a message will be generated and sent to the messaging system. Every object requires a uid which should be generated with the global uid manager.

Constructor & Destructor Documentation

◆ aSignalLinker()

ak::aSignalLinker::aSignalLinker ( aMessenger * _messanger,
aUidManager * _uidManager )

Default constructor.

Parameters
_messangerA pointer to the globally used messaging system
_uidManagerA pointer to the globally used uid_manager

◆ ~aSignalLinker()

ak::aSignalLinker::~aSignalLinker ( )
virtual

Deconstructor

Member Function Documentation

◆ addLink() [1/6]

ak::UID ak::aSignalLinker::addLink ( aAction * _object,
UID _objectUid = invalidUID )

Will create a new link for the provided action. Will return the object uid.

Parameters
_objectThe action to be linked to the messaging system
_objectUidThe uid of the object. If the provided uid is 0 a new uid will be generated by the uid manager

◆ addLink() [2/6]

ak::UID ak::aSignalLinker::addLink ( aCheckBoxWidget * _object,
UID _objectUid = invalidUID )

Will create a new link for the provided checkBox. Will return the object uid.

Parameters
_objectThe checkBox to be linked to the messaging system
_objectUidThe uid of the object. If the provided uid is 0 a new uid will be generated by the uid manager

◆ addLink() [3/6]

ak::UID ak::aSignalLinker::addLink ( aLineEditWidget * _object,
UID _objectUid = invalidUID )

Will create a new link for the provided lineEdit. Will return the object uid.

Parameters
_objectThe lineEdit to be linked to the messaging system
_objectUidThe uid of the object. If the provided uid is 0 a new uid will be generated by the uid manager

◆ addLink() [4/6]

ak::UID ak::aSignalLinker::addLink ( aNiceLineEditWidget * _object,
UID _objectUid = invalidUID )

Will create a new link for the provided niceLineEdit. Will return the object uid.

Parameters
_objectThe niceLineEdit to be linked to the messaging system
_objectUidThe uid of the object. If the provided uid is 0 a new uid will be generated by the uid manager

◆ addLink() [5/6]

ak::UID ak::aSignalLinker::addLink ( aTimer * _object,
UID _objectUid = invalidUID )

Will create a new link for the provided timer. Will return the object uid.

Parameters
_objectThe timer to be linked to the messaging system
_objectUidThe UID of the object. If the provided UID = invalidUID a new UID will be generated by the UID manager

◆ addLink() [6/6]

ak::UID ak::aSignalLinker::addLink ( aToolButtonWidget * _object,
UID _objectUid = invalidUID )

Will create a new link for the provided toolButton. Will return the object uid.

Parameters
_objectThe toolButton to be linked to the messaging system
_objectUidThe UID of the object. If the provided UID = invalidUID a new UID will be generated by the UID manager

The documentation for this class was generated from the following files: