4#ifndef QGEOPOSITIONINFOSOURCE_GEOCLUE2_P_H
5#define QGEOPOSITIONINFOSOURCE_GEOCLUE2_P_H
7#include <QtPositioning/QGeoPositionInfoSource>
8#include <QtCore/QPointer>
9#include <manager_interface.h>
11class OrgFreedesktopGeoClue2ClientInterface;
41 void restoreLastPosition();
42 void saveLastPosition();
44 bool configureClient();
47 void requestUpdateTimeout();
50 void parseParameters(
const QVariantMap ¶meters);
52 QTimer *m_requestTimer =
nullptr;
53 OrgFreedesktopGeoClue2ManagerInterface m_manager;
55 bool m_running =
false;
56 bool m_lastPositionFromSatellite =
false;
static JNINativeMethod methods[]
void startUpdates() override
Starts emitting updates at regular intervals as specified by setUpdateInterval().
~QGeoPositionInfoSourceGeoclue2()
PositioningMethods supportedPositioningMethods() const override
Returns the positioning methods available to this source.
Error error() const override
Returns the type of error that last occurred.
QGeoPositionInfo lastKnownPosition(bool fromSatellitePositioningMethodsOnly=false) const override
Returns an update containing the last known position, or a null update if none is available.
void stopUpdates() override
Stops emitting updates at regular intervals.
int minimumUpdateInterval() const override
void setPreferredPositioningMethods(PositioningMethods methods) override
void setUpdateInterval(int msec) override
virtual void requestUpdate(int timeout=0)=0
Attempts to get the current position and emit positionUpdated() with this information.
Error
The Error enumeration represents the errors which can occur.
QObject * parent() const
Returns a pointer to the parent object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLbitfield GLuint64 timeout
[4]