3#include <QtCore/QLoggingCategory>
4#include <QtPositioning/QGeoCoordinate>
5#include <QtQmlIntegration/QtQmlIntegration>
29 Q_INVOKABLE
void addPoint (QGeoCoordinate point);
32 void start (
bool flyView)
final;
34 void save (QJsonObject& json)
final;
41 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);
65 Vehicle* _managerVehicle =
nullptr;
69 QObject* _currentRallyPoint =
nullptr;
70 bool _itemsRequested =
false;
72 static constexpr int _jsonCurrentVersion = 2;
73 static constexpr const char* _jsonFileTypeValue =
"RallyPoints";
74 static constexpr const char* _jsonPointsKey =
"points";
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Master controller for mission, fence, rally.
bool containsItems(void) const final
void save(QJsonObject &json) final
QObject * currentRallyPoint(void) const
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)
QmlObjectListModel *points READ points CONSTANT(QString editorQml READ editorQml CONSTANT) 1(QObject *currentRallyPoint READ currentRallyPoint WRITE setCurrentRallyPoint NOTIFY currentRallyPointChanged) 1 void addPoint(QGeoCoordinate point)
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
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