Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qdeclarativegeolocation_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QDECLARATIVEGEOLOCATION_P_H
5#define QDECLARATIVEGEOLOCATION_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/QObject>
19#include <QtCore/QVariantMap>
20#include <QtCore/private/qproperty_p.h>
21#include <QtPositioning/QGeoLocation>
22#include <QtPositioning/QGeoShape>
23#include <QtPositioningQuick/private/qdeclarativegeoaddress_p.h>
24#include <QtPositioningQuick/private/qpositioningquickglobal_p.h>
25
27
28class Q_POSITIONINGQUICK_EXPORT QDeclarativeGeoLocation : public QObject
29{
31 QML_NAMED_ELEMENT(Location)
33
34 Q_PROPERTY(QGeoLocation location READ location WRITE setLocation)
35 Q_PROPERTY(QDeclarativeGeoAddress *address READ address WRITE setAddress BINDABLE
36 bindableAddress)
37 Q_PROPERTY(QGeoCoordinate coordinate READ coordinate WRITE setCoordinate BINDABLE
38 bindableCoordinate)
39 Q_PROPERTY(QGeoShape boundingShape READ boundingShape WRITE setBoundingShape BINDABLE
40 bindableBoundingShape REVISION(6, 2))
41 Q_PROPERTY(QVariantMap extendedAttributes READ extendedAttributes WRITE setExtendedAttributes
42 BINDABLE bindableExtendedAttributes REVISION(5, 13))
43
44public:
48
49 QGeoLocation location() const;
50 void setLocation(const QGeoLocation &src);
51
53 void setAddress(QDeclarativeGeoAddress *address);
54 QBindable<QDeclarativeGeoAddress *> bindableAddress();
55
56 QGeoCoordinate coordinate() const;
57 void setCoordinate(const QGeoCoordinate coordinate);
58 QBindable<QGeoCoordinate> bindableCoordinate();
59
60 QGeoShape boundingShape() const;
61 void setBoundingShape(const QGeoShape &boundingShape);
62 QBindable<QGeoShape> bindableBoundingShape();
63
64 QVariantMap extendedAttributes() const;
65 void setExtendedAttributes(const QVariantMap &attributes);
66 QBindable<QVariantMap> bindableExtendedAttributes();
67
69 void setLocationInternal(const QGeoLocation &src);
70
72 &QDeclarativeGeoLocation::setAddress, nullptr)
76};
77
79
80#endif // QDECLARATIVELOCATION_P_H
\inmodule QtCore
Definition qproperty.h:811
\inmodule QtPositioning
\inmodule QtPositioning
\inmodule QtPositioning
Definition qgeoshape.h:17
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
GLint location
GLenum src
GLuint GLuint64EXT address
#define Q_OBJECT_BINDABLE_PROPERTY(...)
Definition qproperty.h:1239
#define Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(...)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define explicit