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
qgeoserviceproviderfactory.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 QGEOSERVICEPROVIDERFACTORY_H
6#define QGEOSERVICEPROVIDERFACTORY_H
7
8#include <QtLocation/QGeoServiceProvider>
9
10#include <QtCore/QtPlugin>
11#include <QtCore/QMap>
12#include <QtCore/QString>
13
15class QQmlEngine;
16
17class Q_LOCATION_EXPORT QGeoServiceProviderFactory
18{
19public:
20 virtual ~QGeoServiceProviderFactory() {}
21
22 virtual QGeoCodingManagerEngine *createGeocodingManagerEngine(const QVariantMap &parameters,
23 QGeoServiceProvider::Error *error,
24 QString *errorString) const;
25 virtual QGeoMappingManagerEngine *createMappingManagerEngine(const QVariantMap &parameters,
26 QGeoServiceProvider::Error *error,
27 QString *errorString) const;
28 virtual QGeoRoutingManagerEngine *createRoutingManagerEngine(const QVariantMap &parameters,
29 QGeoServiceProvider::Error *error,
30 QString *errorString) const;
31 virtual QPlaceManagerEngine *createPlaceManagerEngine(const QVariantMap &parameters,
32 QGeoServiceProvider::Error *error,
33 QString *errorString) const;
34
35 virtual void setQmlEngine(QQmlEngine * engine);
36};
37
38Q_DECLARE_INTERFACE(QGeoServiceProviderFactory,
39 "org.qt-project.qt.geoservice.serviceproviderfactory/6.0")
40
41QT_END_NAMESPACE
42
43#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 *)