4#ifndef QGEOPOSITIONINFOSOURCE_H
5#define QGEOPOSITIONINFOSOURCE_H
7#include <QtPositioning/QGeoPositionInfo>
9#include <QtCore/QObject>
17 Q_PROPERTY(
int updateInterval READ updateInterval WRITE setUpdateInterval BINDABLE
18 bindableUpdateInterval)
19 Q_PROPERTY(
int minimumUpdateInterval READ minimumUpdateInterval)
21 Q_PROPERTY(PositioningMethods preferredPositioningMethods READ preferredPositioningMethods WRITE
22 setPreferredPositioningMethods BINDABLE bindablePreferredPositioningMethods)
28 UnknownSourceError = 2,
30 UpdateTimeoutError = 4
35 NoPositioningMethods = 0x00000000,
36 SatellitePositioningMethods = 0x000000ff,
37 NonSatellitePositioningMethods = 0xffffff00,
38 AllPositioningMethods = 0xffffffff
45 virtual void setUpdateInterval(
int msec);
46 int updateInterval()
const;
49 virtual void setPreferredPositioningMethods(PositioningMethods
methods);
50 PositioningMethods preferredPositioningMethods()
const;
static JNINativeMethod methods[]
virtual void requestUpdate(int timeout=0)=0
Attempts to get the current position and emit positionUpdated() with this information.
virtual void stopUpdates()=0
Stops emitting updates at regular intervals.
void positionUpdated(const QGeoPositionInfo &update)
If startUpdates() or requestUpdate() is called, this signal is emitted when an update becomes availab...
PositioningMethod
Defines the types of positioning methods.
virtual PositioningMethods supportedPositioningMethods() const =0
Returns the positioning methods available to this source.
virtual int minimumUpdateInterval() const =0
virtual void startUpdates()=0
Starts emitting updates at regular intervals as specified by setUpdateInterval().
void errorOccurred(QGeoPositionInfoSource::Error)
This signal is emitted after an error occurred.
virtual Error error() const =0
Returns the type of error that last occurred.
virtual QGeoPositionInfo lastKnownPosition(bool fromSatellitePositioningMethodsOnly=false) const =0
Returns an update containing the last known position, or a null update if none is available.
void supportedPositioningMethodsChanged()
This signal is emitted when the supported positioning methods changed.
Error
The Error enumeration represents the errors which can occur.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLbitfield GLuint64 timeout
[4]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent