Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
georoutejsonparser_esri.h
Go to the documentation of this file.
1// Copyright (C) 2013-2018 Esri <contracts@esri.com>
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 GEOROUTEJSONPARSERESRI_H
5#define GEOROUTEJSONPARSERESRI_H
6
7#include <QJsonDocument>
8#include <QJsonObject>
9#include <QGeoRoute>
10#include <QMap>
11
13
15{
16public:
18
20 bool isValid() const;
21 QString errorString() const;
22
23private:
24 void parseDirections();
25 void parseDirection(const QJsonObject &direction);
26 void parseRoutes();
27 void parseRoute(const QJsonObject &route);
28
29 QString m_error;
30 QMap<int, QGeoRoute> m_routes;
31 QJsonObject m_json;
32};
33
35
36#endif // GEOROUTEJSONPARSERESRI_H
QList< QGeoRoute > routes() const
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
Definition qlist.h:74
Definition qmap.h:186
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
direction
Combined button and popup list for selecting options.