3#include <QtPositioning/QGeoCoordinate>
4#include <QtQmlIntegration/QtQmlIntegration>
26 Q_INVOKABLE
void addPoint (QGeoCoordinate point);
29 void start (
bool flyView)
final;
31 void save (QJsonObject& json)
final;
32 bool load (
const QJsonObject& json, QString& errorString)
final;
38 bool dirty (
void)
const final {
return _dirty; }
58 void _managerLoadComplete (
void);
59 void _managerSendComplete (
bool error);
60 void _managerRemoveAllComplete (
bool error);
61 void _setFirstPointCurrent (
void);
62 void _managerVehicleChanged (
Vehicle* managerVehicle);
63 void _pointsDirtyChanged (
bool dirty);
66 Vehicle* _managerVehicle =
nullptr;
70 QObject* _currentRallyPoint =
nullptr;
71 bool _itemsRequested =
false;
73 static constexpr int _jsonCurrentVersion = 3;
74 static constexpr int _jsonOldestSupportedVersion = 2;
75 static constexpr const char* _jsonFileTypeValue =
"RallyPoints";
76 static constexpr const char* _jsonPointsKey =
"points";
77 static constexpr const char* _jsonCoordinateKey =
"coordinate";
78 static constexpr const char* _jsonFrameKey =
"frame";
This is the base class for firmware specific geofence managers.
PlanElementController(PlanMasterController *masterController, QObject *parent=nullptr)
PlanMasterController * masterController(void)
Master controller for mission, fence, rally.
bool containsItems(void) const final
void save(QJsonObject &json) final
RallyPointController(PlanMasterController *masterController, QObject *parent=nullptr)
QObject * currentRallyPoint(void) const
Q_INVOKABLE void addPoint(QGeoCoordinate point)
bool supported(void) const final
true: controller is waiting for the current load to complete
void setDirty(bool dirty) final
QString editorQml(void) const
bool showPlanFromManagerVehicle(void) final
bool syncInProgress(void) const final
void setCurrentRallyPoint(QObject *rallyPoint)
bool dirty(void) const final
void start(bool flyView) final
Should be called immediately upon Component.onCompleted.
void removeAllFromVehicle(void) final
bool load(const QJsonObject &json, QString &errorString) final
Q_INVOKABLE void removePoint(QObject *rallyPoint)
void removeAll(void) final
Removes all from controller only.
bool terrainQueryPending(void) const
true: a rally point is still waiting on terrain data for its altitude
void currentRallyPointChanged(QObject *rallyPoint)
void loadFromVehicle(void) final
QmlObjectListModel * points(void)
void sendToVehicle(void) final
This is the base class for firmware specific rally point managers. A rally point manager is responsib...