4#ifndef QDECLARATIVEPOSITIONSOURCE_H
5#define QDECLARATIVEPOSITIONSOURCE_H
18#include <QtPositioningQuick/private/qpositioningquickglobal_p.h>
19#include <QtPositioningQuick/private/qdeclarativeposition_p.h>
20#include <QtCore/QObject>
21#include <QtNetwork/QAbstractSocket>
22#include <QtQml/QQmlParserStatus>
23#include <QtPositioning/qgeopositioninfosource.h>
24#include <QtPositioningQuick/private/qdeclarativepluginparameter_p.h>
25#include <QtCore/private/qproperty_p.h>
39 BINDABLE bindablePosition)
41 BINDABLE bindableActive)
42 Q_PROPERTY(
bool valid READ isValid NOTIFY validityChanged BINDABLE bindableIsValid)
43 Q_PROPERTY(
int updateInterval READ updateInterval WRITE setUpdateInterval
44 NOTIFY updateIntervalChanged)
45 Q_PROPERTY(PositioningMethods supportedPositioningMethods READ supportedPositioningMethods
46 NOTIFY supportedPositioningMethodsChanged
47 BINDABLE bindableSupportedPositioningMethods)
48 Q_PROPERTY(PositioningMethods preferredPositioningMethods READ preferredPositioningMethods
49 WRITE setPreferredPositioningMethods NOTIFY preferredPositioningMethodsChanged)
51 BINDABLE bindableSourceError)
81 void setUpdateInterval(
int updateInterval);
82 void setActive(
bool active);
83 void setPreferredPositioningMethods(PositioningMethods
methods);
88 int updateInterval()
const;
92 PositioningMethods supportedPositioningMethods()
const;
93 PositioningMethods preferredPositioningMethods()
const;
106 QBindable<PositioningMethods> bindableSupportedPositioningMethods() const;
119 void positionChanged();
120 void activeChanged();
121 void updateIntervalChanged();
122 void supportedPositioningMethodsChanged();
123 void preferredPositioningMethodsChanged();
124 void sourceErrorChanged();
126 void validityChanged();
131 void onParameterInitialized();
132 void notifySupportedPositioningMethodsChanged();
137 bool parametersReady();
138 void tryAttach(const
QString &
name,
bool useFallback = true);
145 bool isValidActualComputation() const;
146 PositioningMethods supportedMethodsActualComputation() const;
151 PositioningMethods m_preferredPositioningMethods = AllPositioningMethods;
152 int m_updateInterval = 0;
169 m_supportedPositioningMethods,
175 quint8 m_singleUpdate : 1;
176 quint8 m_regularUpdates : 1;
177 quint8 m_componentComplete : 1;
178 quint8 m_parametersInitialized : 1;
179 quint8 m_startRequested : 1;
180 quint8 m_defaultSourceUsed : 1;
static JNINativeMethod methods[]
void classBegin() override
Invoked after class creation, but before any properties have been set.
Q_REVISION(5, 14) Q_INVOKABLE bool setBackendProperty(const QString &name
QQmlListProperty< QDeclarativePluginParameter > parameters()
QDeclarativePosition * position()
@ SatellitePositioningMethods
@ NonSatellitePositioningMethods
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
The QQmlParserStatus class provides updates on the QML parser state.
virtual void componentComplete()=0
Invoked after the root component that caused this instantiation has completed construction.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTcpSocket class provides a TCP socket.
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_FLAGS(Flags, Enum)
n void setPosition(void) \n\
GLbitfield GLuint64 timeout
[4]
GLsizei GLsizei GLchar * source
#define Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(...)
#define Q_OBJECT_COMPUTED_PROPERTY(Class, Type, name, ...)
#define Q_OBJECT_BINDABLE_PROPERTY(...)
#define Q_OBJECT_COMPAT_PROPERTY(...)
#define Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(...)
#define QML_DECLARE_TYPE(TYPE)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)