
Public Member Functions | |
| QGuiPulserController () | |
| ctor | |
| virtual | ~QGuiPulserController () |
| dtor | |
| void | Init (int settingsBasket, const QPulserGroupList *groups=NULL) |
| read configuration from db and init everything | |
| bool | WaitForStop (int timeoutSec) |
| wait up to timeoutSec for event dispatch loop to exit | |
Protected Member Functions | |
| virtual void | HandleTimeOutChild () |
| virtual void | StorePulseId (unsigned int pulseId) |
Private Member Functions | |
| void | BuildGroups (const QPulserGroupList &groups) |
| build pulser groups from external object | |
Private Attributes | |
| unsigned int | fLastPulseId |
| QGuiSharedMemory * | fSharedMemory |
| void QGuiPulserController::Init | ( | int | settingsBasket, | |
| const QPulserGroupList * | groups = NULL | |||
| ) |
read configuration from db and init everything
| settingsBasket | settings basket to be loaded (0 means standard run) |
References BuildGroups(), QTimer< T >::Connect(), QBasePulserController::ConnectDelayTimers(), QBasePulserController::fBaseTimer, QBasePulserController::fGroups, fSharedMemory, QBasePulserController::InitDioCtrl(), QBasePulserController::InitSlowClient(), QBasePulserController::PrepareNext(), QTimer< T >::SetTimeout(), and QBasePulserController::StartDelayTimers().
Referenced by QPulserGuiInterface::Start().
| bool QGuiPulserController::WaitForStop | ( | int | timeoutSec | ) |
wait up to timeoutSec for event dispatch loop to exit
References QTimerDispatcher::GetInstance(), and QTimerDispatcher::ThreadDone().
Referenced by QPulserGuiInterface::Stop().
| void QGuiPulserController::HandleTimeOutChild | ( | ) | [protected, virtual] |
this function is called at each timeout
Implements QBasePulserController.
References QBasePulserController::Fire(), fLastPulseId, fSharedMemory, QBasePulserController::PrepareNext(), and QGuiSharedMemory::SetValue().
| virtual void QGuiPulserController::StorePulseId | ( | unsigned int | pulseId | ) | [inline, protected, virtual] |
needed to notify to gui classes that a pulse fired
Reimplemented from QBasePulserController.
References fLastPulseId.
unsigned int QGuiPulserController::fLastPulseId [private] |
used to notify gui classes that a pulse fired
Referenced by HandleTimeOutChild(), and StorePulseId().
used to notify gui classes that a pulse fired
Referenced by HandleTimeOutChild(), Init(), and ~QGuiPulserController().
1.5.6