11 connect(
this, &QFinalState::entered,
this, [
this]() {
12 qCDebug(QGCStateMachineLog) <<
"Entered" << this->
stateName();
14 connect(
this, &QState::exited,
this, [
this]() {
15 qCDebug(QGCStateMachineLog) <<
"Exited" << this->
stateName();
28 return QStringLiteral(
"%1:%2").arg(objectName(), m->machineName());
35 return qobject_cast<QGCStateMachine*>(QFinalState::machine());
41 return m ? m->vehicle() :
nullptr;
Final state for a QGCStateMachine with logging support.
QGCFinalState(const QString &stateName, QState *parent=nullptr)
Vehicle * vehicle() const
QString stateName() const
QGCStateMachine * machine() const
QGroundControl specific state machine with enhanced error handling.