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;
38 bool dirty (
void)
const final {
return _dirty; }
55 void _managerLoadComplete (
void);
56 void _managerSendComplete (
bool error);
57 void _managerRemoveAllComplete (
bool error);
58 void _setFirstPointCurrent (
void);
59 void _managerVehicleChanged (
Vehicle* managerVehicle);
62 Vehicle* _managerVehicle =
nullptr;
66 QObject* _currentRallyPoint =
nullptr;
67 bool _itemsRequested =
false;
69 static constexpr int _jsonCurrentVersion = 2;
70 static constexpr const char* _jsonFileTypeValue =
"RallyPoints";
71 static constexpr const char* _jsonPointsKey =
"points";
This is the base class for firmware specific geofence managers.
This is the abstract base clas for Plan Element controllers.
PlanMasterController * masterController(void)
Master controller for mission, fence, rally.
bool containsItems(void) const final
void save(QJsonObject &json) final
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.
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...