Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qgeocodejsonparser.h
Go to the documentation of this file.
1
// Copyright (C) 2015 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
QGEOCODEJSONPARSER_H
5
#
define
QGEOCODEJSONPARSER_H
6
7
#
include
<
QtPositioning
/
QGeoShape
>
8
#
include
<
QtPositioning
/
QGeoLocation
>
9
10
#
include
<
QtCore
/
QObject
>
11
#
include
<
QtCore
/
QRunnable
>
12
#
include
<
QtCore
/
QJsonDocument
>
13
#
include
<
QtCore
/
QByteArray
>
14
#
include
<
QtCore
/
QString
>
15
#
include
<
QtCore
/
QList
>
16
17
QT_BEGIN_NAMESPACE
18
19
class
QGeoCodeJsonParser :
public
QObject,
public
QRunnable
20
{
21
Q_OBJECT
22
23
public
:
24
void
setBounds(
const
QGeoShape &bounds);
25
void
parse(
const
QByteArray &data);
26
void
run() override;
27
28
signals:
29
void
results(
const
QList<QGeoLocation> &locations);
30
void
errorOccurred(
const
QString &errorString);
31
32
private
:
33
QJsonDocument m_document;
34
QByteArray m_data;
35
QGeoShape m_bounds;
36
QList<QGeoLocation> m_results;
37
QString m_errorString;
38
};
39
40
QT_END_NAMESPACE
41
42
#
endif
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_BEGIN_NAMESPACE::parseLocation
bool parseLocation(const QJsonObject &obj, const QGeoShape &bounds, QGeoLocation *loc)
Definition
qgeocodejsonparser.cpp:285
QT_BEGIN_NAMESPACE::parseDocument
void parseDocument(const QJsonDocument &doc, const QGeoShape &bounds, QList< QGeoLocation > *locs)
Definition
qgeocodejsonparser.cpp:333
QT_BEGIN_NAMESPACE::checkDocument
bool checkDocument(const QJsonDocument &doc, QString *errorString)
Definition
qgeocodejsonparser.cpp:214
QT_BEGIN_NAMESPACE::checkLocation
bool checkLocation(const QJsonObject &loc, QString *errorString)
Definition
qgeocodejsonparser.cpp:77
qtlocation
src
plugins
geoservices
nokia
qgeocodejsonparser.h
Generated on
for Qt by
1.18.0