WimaServiceAreaData.h 833 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#pragma once

#include <QObject>

#include "WimaAreaData.h"
#include "QGeoCoordinate"

class WimaServiceAreaData : public WimaAreaData
{
    Q_OBJECT

public:
    explicit WimaServiceAreaData(QObject *parent = nullptr);
    explicit WimaServiceAreaData(WimaServiceAreaData &other, QObject *parent = nullptr);


    const QGeoCoordinate &takeOffPosition() const;
    const QGeoCoordinate &landOffPosition() const;

signals:
    void takeOffPositionChanged(const QGeoCoordinate& other);
    void landOffPositionChanged(const QGeoCoordinate& other);

public slots:
    void setTakeOffPosition(const QGeoCoordinate& newCoordinate);
    void setLandOffPosition(const QGeoCoordinate& newCoordinate);

private:
    // see WimaServieArea.h for explanation
    QGeoCoordinate      _takeOffPosition;
    QGeoCoordinate      _landPosition;
};