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
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
19
20#include <QHash>
21#include <QCborMap>
22#include <QLocale>
23#include <private/qglobal_p.h>
24
25QT_BEGIN_NAMESPACE
26
27class QGeoCodingManager;
28class QGeoRoutingManager;
29class QGeoMappingManager;
30
31class QGeoServiceProviderFactory;
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
52 QGeoServiceProviderFactory *factory = nullptr;
54
57
58 bool experimental = false;
59
64 QQmlEngine *qmlEngine = nullptr;
65
71
77
80
82
83 QLocale locale;
84 bool localeSet = false;
85
86 static QMultiHash<QString, QCborMap> plugins(bool reload = false);
87 static void loadPluginMetadata(QMultiHash<QString, QCborMap> &list);
88};
89
90QT_END_NAMESPACE
91
92#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
Engine * createEngine(QGeoServiceProviderPrivate *)