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
qgeosatelliteinfosource_android_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
5#ifndef QGEOSATELLITEINFOSOURCEANDROID_H
6#define QGEOSATELLITEINFOSOURCEANDROID_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QGeoSatelliteInfoSource>
20#include <QTimer>
21
23{
25public:
28
29 //From QGeoSatelliteInfoSource
30 void setUpdateInterval(int msec) override;
31 int minimumUpdateInterval() const override;
32
33 Error error() const override;
34
35public Q_SLOTS:
36 void startUpdates() override;
37 void stopUpdates() override;
38 void requestUpdate(int timeout = 0) override;
39
40 void processSatelliteUpdate(const QList<QGeoSatelliteInfo> &satsInView,
41 const QList<QGeoSatelliteInfo> &satsInUse,
42 bool isSingleUpdate);
43
45private Q_SLOTS:
46 void requestTimeout();
47
48private:
49 void reconfigureRunningSystem();
51
52 Error m_error;
53 int androidClassKeyForUpdate;
54 int androidClassKeyForSingleRequest;
55 bool updatesRunning;
56
57 QTimer requestTimer;
58 QList<QGeoSatelliteInfo> m_satsInUse;
59 QList<QGeoSatelliteInfo> m_satsInView;
60
61};
62
63#endif // QGEOSATELLITEINFOSOURCEANDROID_H
void processSatelliteUpdate(const QList< QGeoSatelliteInfo > &satsInView, const QList< QGeoSatelliteInfo > &satsInUse, bool isSingleUpdate)
Error error() const override
Returns the last error that occurred.
\inmodule QtPositioning
Error
The Error enumeration represents the errors which can occur.
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore
Definition qtimer.h:20
GLbitfield GLuint64 timeout
[4]
#define Q_OBJECT
#define Q_SLOTS