QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCStateMachineEvent Class Reference

Custom event for QGCStateMachine delayed/scheduled events. More...

#include <QGCStateMachineEvent.h>

+ Inheritance diagram for QGCStateMachineEvent:
+ Collaboration diagram for QGCStateMachineEvent:

Public Member Functions

 QGCStateMachineEvent (const QString &name, const QVariant &data=QVariant())
 
QString name () const
 
QVariant data () const
 

Static Public Attributes

static const QEvent::Type EventType = static_cast<QEvent::Type>(QEvent::registerEventType())
 

Detailed Description

Custom event for QGCStateMachine delayed/scheduled events.

Definition at line 8 of file QGCStateMachineEvent.h.

Constructor & Destructor Documentation

◆ QGCStateMachineEvent()

QGCStateMachineEvent::QGCStateMachineEvent ( const QString &  name,
const QVariant &  data = QVariant() 
)
explicit

Create a named event with optional data

Parameters
nameEvent name for identification
dataOptional payload data

Definition at line 5 of file QGCStateMachineEvent.cc.

Member Function Documentation

◆ data()

QVariant QGCStateMachineEvent::data ( ) const
inline

Definition at line 19 of file QGCStateMachineEvent.h.

◆ name()

QString QGCStateMachineEvent::name ( ) const
inline

Definition at line 18 of file QGCStateMachineEvent.h.

Member Data Documentation

◆ EventType

const QEvent::Type QGCStateMachineEvent::EventType = static_cast<QEvent::Type>(QEvent::registerEventType())
static

The documentation for this class was generated from the following files: