QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ShowAppMessageState.cc
Go to the documentation of this file.
1
#include "
ShowAppMessageState.h
"
2
#include "
QGCApplication.h
"
3
4
ShowAppMessageState::ShowAppMessageState
(QState* parentState,
const
QString& appMessage)
5
:
QGCState
(
"ShowAppMessageState"
, parentState)
6
, _appMessage(appMessage)
7
{
8
connect(
this
, &QState::entered,
this
, [
this
] () {
9
qCDebug(QGCStateMachineLog) << _appMessage <<
stateName
();
10
qgcApp
()->showAppMessage(_appMessage);
11
emit
advance
();
12
});
13
}
QGCApplication.h
qgcApp
#define qgcApp()
Definition
QGCApplication.h:34
ShowAppMessageState.h
QGCAbstractState::stateName
QString stateName() const
Definition
QGCAbstractState.cc:26
QGCAbstractState::advance
void advance()
QGCState
Definition
QGCState.h:22
ShowAppMessageState::ShowAppMessageState
ShowAppMessageState(QState *parentState, const QString &appMessage)
Definition
ShowAppMessageState.cc:4
src
Utilities
StateMachine
States
ShowAppMessageState.cc
Generated by
1.9.8