diff options
Diffstat (limited to 'src/imports/location/locationsingleton.h')
-rw-r--r-- | src/imports/location/locationsingleton.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/imports/location/locationsingleton.h b/src/imports/location/locationsingleton.h index ae356e87..a2a8aa32 100644 --- a/src/imports/location/locationsingleton.h +++ b/src/imports/location/locationsingleton.h @@ -45,6 +45,9 @@ #include <QtCore/QObject> #include <QtCore/qnumeric.h> #include <QtLocation/QGeoCoordinate> +#include <QtLocation/QGeoShape> +#include <QtLocation/QGeoRectangle> +#include <QtLocation/QGeoCircle> class LocationSingleton : public QObject { @@ -56,6 +59,17 @@ public: Q_INVOKABLE QGeoCoordinate coordinate() const; Q_INVOKABLE QGeoCoordinate coordinate(double latitude, double longitude, double altitude = qQNaN()) const; + + Q_INVOKABLE QGeoShape shape() const; + + Q_INVOKABLE QGeoRectangle rectangle() const; + Q_INVOKABLE QGeoRectangle rectangle(const QGeoCoordinate ¢er, + double width, double height) const; + Q_INVOKABLE QGeoRectangle rectangle(const QGeoCoordinate &topLeft, + const QGeoCoordinate &bottomRight) const; + + Q_INVOKABLE QGeoCircle circle() const; + Q_INVOKABLE QGeoCircle circle(const QGeoCoordinate ¢er, qreal radius = -1.0) const; }; #endif // LOCATIONSINGLETON_H |