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
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// Qt-Security score:significant reason:default
4
5#ifndef QGEOSERVICEPROVIDER_P_H
6#define QGEOSERVICEPROVIDER_P_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
20
21#include <QHash>
22#include <QCborMap>
23#include <QLocale>
24#include <private/qglobal_p.h>
25
26QT_BEGIN_NAMESPACE
27
28class QGeoCodingManager;
29class QGeoRoutingManager;
30class QGeoMappingManager;
31
32class QGeoServiceProviderFactory;
33class QQmlEngine;
34
36{
37public:
40
41 void loadMeta();
42 void loadPlugin(const QVariantMap &parameters);
43 void unload();
44 void filterParameterMap();
45
46 /* helper templates for generating the feature and manager accessors */
47 template <class Manager, class Engine>
50 template <class Flags>
51 Flags features(const char *enumName) const;
52
53 QGeoServiceProviderFactory *factory = nullptr;
55
58
59 bool experimental = false;
60
65 QQmlEngine *qmlEngine = nullptr;
66
72
78
81
83
84 QLocale locale;
85 bool localeSet = false;
86
87 static QMultiHash<QString, QCborMap> plugins(bool reload = false);
88 static void loadPluginMetadata(QMultiHash<QString, QCborMap> &list);
89};
90
91QT_END_NAMESPACE
92
93#endif
std::unique_ptr< QGeoRoutingManager > routingManager
std::unique_ptr< QGeoMappingManager > mappingManager
void loadPlugin(const QVariantMap &parameters)
Manager * manager(QGeoServiceProvider::Error *error, QString *errorString)
static void loadPluginMetadata(QMultiHash< QString, QCborMap > &list)
std::unique_ptr< QPlaceManager > placeManager
static QMultiHash< QString, QCborMap > plugins(bool reload=false)
Flags features(const char *enumName) const
QGeoServiceProviderFactory * factory
std::unique_ptr< QGeoCodingManager > geocodingManager
Combined button and popup list for selecting options.
Engine * createEngine(QGeoServiceProviderPrivate *)