QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
MavlinkActionManager.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QObject>
4#include <QtQmlIntegration/QtQmlIntegration>
5
6class Fact;
8
14class MavlinkActionManager : public QObject
15{
16 Q_OBJECT
17 QML_ELEMENT
18 Q_MOC_INCLUDE("Fact.h")
19 Q_MOC_INCLUDE("QmlObjectListModel.h")
21 Q_PROPERTY(QmlObjectListModel* actions READ actions CONSTANT)
22
23public:
24 explicit MavlinkActionManager(QObject *parent = nullptr);
25 explicit MavlinkActionManager(Fact *actionFileNameFact, QObject *parent = nullptr);
27
28 Fact *actionFileNameFact() { return _actionFileNameFact; }
30 QmlObjectListModel *actions() { return _actions; }
31
32signals:
34
35private slots:
36 void _loadActionsFile();
37
38private:
39 Fact *_actionFileNameFact = nullptr;
40 QmlObjectListModel *_actions = nullptr;
41};
A Fact is used to hold a single value within the system.
Definition Fact.h:17
Loads the specified action file and provides access to the actions it contains.
QmlObjectListModel * actions()
void actionFileNameFactChanged()
void setActionFileNameFact(Fact *actionFileNameFact)