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