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
8class ParallelState : public QGCState
9{
10 Q_OBJECT
11 Q_DISABLE_COPY(ParallelState)
12
13public:
17 ParallelState(const QString& stateName, QState* parent);
18
21 void addParallelState(QAbstractState* state);
22
23signals:
26
27protected:
28 void onEntry(QEvent* event) override;
29 void onExit(QEvent* event) override;
30
31private slots:
32 void _onChildFinished();
33
34private:
35 void _checkAllComplete();
36
37 int _activeChildren = 0;
38 int _completedChildren = 0;
39};
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