QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGeoServiceProviderPluginQGC.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QLoggingCategory>
4#include <QtCore/QObject>
5#include <QtCore/QtPlugin>
6#include <QtLocation/QGeoServiceProviderFactory>
7
8Q_DECLARE_LOGGING_CATEGORY(QGeoServiceProviderFactoryQGCLog)
9
10class QGeoServiceProviderFactoryQGC: public QObject, public QGeoServiceProviderFactory
11{
12 Q_OBJECT
13 Q_INTERFACES(QGeoServiceProviderFactory)
14 Q_PLUGIN_METADATA(IID "org.qt-project.qt.geoservice.serviceproviderfactory/6.0" FILE "qgc_maps_plugin.json")
15
16public:
17 QGeoServiceProviderFactoryQGC(QObject *parent = nullptr);
19
20 QGeoCodingManagerEngine* createGeocodingManagerEngine(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString) const final;
21 QGeoMappingManagerEngine* createMappingManagerEngine(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString) const final;
22 QGeoRoutingManagerEngine* createRoutingManagerEngine(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString) const final;
23 QPlaceManagerEngine* createPlaceManagerEngine(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString) const final;
24
25 void setQmlEngine(QQmlEngine* engine) final { m_engine = engine; }
26
27private:
28 QQmlEngine *m_engine = nullptr;
29};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
QString errorString
Error error
void setQmlEngine(QQmlEngine *engine) final