3#include <QtStateMachine/QSignalTransition>
4#include <QtCore/QString>
17 QGCSignalTransition(
const QObject* sender,
const char* signal, QState* sourceState =
nullptr);
19 template<
typename Func>
21 Func signalFn, QState* sourceState =
nullptr)
22 : QSignalTransition(sender, signalFn, sourceState)
Base class for signal-based transitions that need access to QGCStateMachine and Vehicle.
QGCStateMachine * machine() const
Get the QGCStateMachine this transition belongs to.
Vehicle * vehicle() const
Get the Vehicle associated with the state machine.
QGCSignalTransition(const typename QtPrivate::FunctionPointer< Func >::Object *sender, Func signalFn, QState *sourceState=nullptr)
QGroundControl specific state machine with enhanced error handling.