QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ParallelState.h
Go to the documentation of this file.
1#pragma once
2
3#include "QGCState.h"
4
10class ParallelState : public QGCState
11{
12 Q_OBJECT
13 Q_DISABLE_COPY(ParallelState)
14
15public:
19 ParallelState(const QString& stateName, QState* parent);
20
23 void addParallelState(QAbstractState* state);
24
25signals:
28
29protected:
30 void onEntry(QEvent* event) override;
31 void onExit(QEvent* event) override;
32
33private slots:
34 void _onChildFinished();
35
36private:
37 void _checkAllComplete();
38
39 int _activeChildren = 0;
40 int _completedChildren = 0;
41};
State that executes all child states in parallel.
void addParallelState(QAbstractState *state)
void onEntry(QEvent *event) override
void onExit(QEvent *event) override
void allComplete()
Emitted when all parallel child states have completed.
QString stateName() const
bool event(QEvent *event) override
Full-featured base class for QGroundControl state machine states.
Definition QGCState.h:23