void ConfigBase::fsmLoadingConfigTryingEvent() { if (m_state == State::Loading) { #ifdef QT_DEBUG DEBUG_TAG(1, m_debugName, "Event CONFIG TRYING"); #endif // handle state change emit fsmLoadingExited(QPrivateSignal()); fsmTrying(); emit fsmTryingEntered(QPrivateSignal()); // execute actions } }
void CommandBase::fsmUpCommandTryingEvent() { if (m_state == State::Up) { #ifdef QT_DEBUG DEBUG_TAG(1, m_debugName, "Event COMMAND TRYING"); #endif // handle state change emit fsmUpExited(QPrivateSignal()); fsmTrying(); emit fsmTryingEntered(QPrivateSignal()); // execute actions } }
void ConfigBase::fsmDownConnectEvent() { if (m_state == State::Down) { #ifdef QT_DEBUG DEBUG_TAG(1, m_debugName, "Event CONNECT"); #endif // handle state change emit fsmDownExited(QPrivateSignal()); fsmTrying(); emit fsmTryingEntered(QPrivateSignal()); // execute actions startConfigChannel(); } }
void StatusSubscribe::fsmDownStartEvent() { if (m_state == State::Down) { #ifdef QT_DEBUG DEBUG_TAG(1, m_debugName, "Event START"); #endif // handle state change emit fsmDownExited(QPrivateSignal()); fsmTrying(); emit fsmTryingEntered(QPrivateSignal()); // execute actions startSocket(); } }
void LauncherBase::fsmSyncedLaunchercmdTryingEvent() { if (m_state == State::Synced) { #ifdef QT_DEBUG DEBUG_TAG(1, m_debugName, "Event LAUNCHERCMD TRYING"); #endif // handle state change emit fsmSyncedExited(QPrivateSignal()); fsmTrying(); emit fsmTryingEntered(QPrivateSignal()); // execute actions stopLauncherChannel(); } }
void StatusSubscribe::fsmUpHeartbeatTimeoutEvent() { if (m_state == State::Up) { #ifdef QT_DEBUG DEBUG_TAG(1, m_debugName, "Event HEARTBEAT TIMEOUT"); #endif // handle state change emit fsmUpExited(QPrivateSignal()); fsmTrying(); emit fsmTryingEntered(QPrivateSignal()); // execute actions stopHeartbeatTimer(); stopSocket(); startSocket(); } }