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
qgeoserviceprovider_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QGEOSERVICEPROVIDER_P_H
5#define QGEOSERVICEPROVIDER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qgeoserviceprovider.h"
19
20#include <QHash>
21#include <QCborMap>
22#include <QLocale>
23#include <private/qglobal_p.h>
24
26
30
32class QQmlEngine;
33
35{
36public:
39
40 void loadMeta();
41 void loadPlugin(const QVariantMap &parameters);
42 void unload();
43 void filterParameterMap();
44
45 /* helper templates for generating the feature and manager accessors */
46 template <class Manager, class Engine>
49 template <class Flags>
50 Flags features(const char *enumName) const;
51
54
57
58 bool experimental = false;
59
60 std::unique_ptr<QGeoCodingManager> geocodingManager;
61 std::unique_ptr<QGeoRoutingManager> routingManager;
62 std::unique_ptr<QGeoMappingManager> mappingManager;
63 std::unique_ptr<QPlaceManager> placeManager;
65
71
77
80
82
84 bool localeSet = false;
85
86 static QMultiHash<QString, QCborMap> plugins(bool reload = false);
87 static void loadPluginMetadata(QMultiHash<QString, QCborMap> &list);
88};
89
91
92#endif
\inmodule QtCore\reentrant
Definition qcbormap.h:21
\inmodule QtLocation
\inmodule QtLocation
\inmodule QtLocation
std::unique_ptr< QGeoRoutingManager > routingManager
QGeoServiceProvider::Error geocodeError
QGeoServiceProvider::Error routingError
QGeoServiceProvider::Error mappingError
std::unique_ptr< QGeoMappingManager > mappingManager
void loadPlugin(const QVariantMap &parameters)
QGeoServiceProvider::Error placeError
static void loadPluginMetadata(QMultiHash< QString, QCborMap > &list)
std::unique_ptr< QPlaceManager > placeManager
QGeoServiceProvider::Error navigationError
static QMultiHash< QString, QCborMap > plugins(bool reload=false)
QGeoServiceProvider::Error error
Flags features(const char *enumName) const
QGeoServiceProviderFactory * factory
std::unique_ptr< QGeoCodingManager > geocodingManager
Error
Describes an error related to the loading and setup of a service provider plugin.
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
Flags
QList< int > list
[14]
QNetworkAccessManager manager