Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qohosmapkitcommon.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QOHOSMAPKITCOMMON_H
5#define QOHOSMAPKITCOMMON_H
6
7#include <QtCore/qjsonobject.h>
8#include <QtCore/qstring.h>
9#include <QtCore/qurl.h>
10#include <QtCore/qvariant.h>
11#include <QtNetwork/qnetworkrequest.h>
12#include <QtPositioning/qgeoaddress.h>
13#include <QtPositioning/qgeocoordinate.h>
14#include <QtPositioning/qgeolocation.h>
15#include <QtPositioning/qgeorectangle.h>
16
18
19namespace OhosMapKit {
20
21const QString authenticationKeyParameterName = QStringLiteral("ohosmapkit.authenticationKey");
22
24QString getAuthenticationKeyParameterOrEmpty(const QVariantMap &parameters);
25QString getUserAgentParameterOrDefault(const QVariantMap &parameters);
27 const QUrl &requestUrl, const QString &userAgent, const QString &authenticationKey);
29 const QUrl &requestUrl, const QString &userAgent, const QString &authenticationKey);
30
31namespace CoordinateJson {
32
33QJsonObject tryConvertFromQGeoCoordinate(const QGeoCoordinate &coordinate);
34QGeoCoordinate tryConvertToQGeoCoordinate(const QJsonObject &coordinateObj);
35
36}
37
39
40QJsonObject tryConvertFromQGeoRectangle(const QGeoRectangle &boundingGeoRect);
41QGeoRectangle tryConvertToQGeoRectangle(const QJsonObject &coordinateBounds);
42
43}
44
45namespace SiteJson {
46
47QGeoLocation tryConvertToQGeoLocation(const QJsonObject &siteJsonObj);
48
49}
50
51}
52
53QT_END_NAMESPACE
54
55#endif // QOHOSMAPKITCOMMON_H
\inmodule QtLocation
QGeoCodeReplyOhosMapKit(QNetworkReply *reply, QObject *parent)
QGeoRectangle tryConvertToQGeoRectangle(const QJsonObject &coordinateBounds)
QJsonObject tryConvertFromQGeoRectangle(const QGeoRectangle &boundingGeoRect)
QGeoCoordinate tryConvertToQGeoCoordinate(const QJsonObject &coordinateObj)
QJsonObject tryConvertFromQGeoCoordinate(const QGeoCoordinate &coordinate)
QGeoLocation tryConvertToQGeoLocation(const QJsonObject &siteJsonObj)
QNetworkRequest createOhosMapKitNetworkRequestWithJsonBody(const QUrl &requestUrl, const QString &userAgent, const QString &authenticationKey)
const QString authenticationKeyParameterName
QString getLanguageCode()
QNetworkRequest createOhosMapKitNetworkRequest(const QUrl &requestUrl, const QString &userAgent, const QString &authenticationKey)
QString getAuthenticationKeyParameterOrEmpty(const QVariantMap &parameters)
QString getUserAgentParameterOrDefault(const QVariantMap &parameters)
Combined button and popup list for selecting options.
QList< QGeoLocation > parseGeocodeResponse(const QJsonObject &responseBodyJsonObj)
QGeoCodeReply * makeQGeoCodeReplyOhosMapKit(QNetworkReply *reply, QObject *parent)