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
qgeomappingmanagerengine_p.h
Go to the documentation of this file.
1// Copyright (C) 2015 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 QGEOMAPPINGMANAGERENGINE_H
6#define QGEOMAPPINGMANAGERENGINE_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
19#include <QObject>
20#include <QList>
21#include <QtLocation/private/qlocationglobal_p.h>
22
24
25class QLocale;
26class QString;
27
28class QGeoRectangle;
29class QGeoCoordinate;
30class QGeoCameraCapabilities;
32class QGeoMapRequestOptions;
33
35class QGeoMap;
36class QGeoMapType;
37
38class Q_LOCATION_EXPORT QGeoMappingManagerEngine : public QObject
39{
40 Q_OBJECT
41
42public:
43 explicit QGeoMappingManagerEngine(QObject *parent = nullptr);
44 virtual ~QGeoMappingManagerEngine();
45
46 virtual QGeoMap *createMap() = 0;
47
48 QVariantMap parameters() const;
49
50 QString managerName() const;
51 int managerVersion() const;
52
53 QList<QGeoMapType> supportedMapTypes() const;
54
55 // the class is private, so this can be virtual here for now.
56 QGeoCameraCapabilities cameraCapabilities(int mapId = 0) const;
57
58 void setLocale(const QLocale &locale);
59 QLocale locale() const;
60
61 bool isInitialized() const;
62
63Q_SIGNALS:
64 void initialized();
65 void supportedMapTypesChanged();
66
67protected:
68 void setSupportedMapTypes(const QList<QGeoMapType> &supportedMapTypes);
69 void setCameraCapabilities(const QGeoCameraCapabilities &capabilities);
70
71 void engineInitialized();
72
73private:
74 QGeoMappingManagerEnginePrivate *d_ptr;
75
76 void setManagerName(const QString &managerName);
77 void setManagerVersion(int managerVersion);
78
79 Q_DECLARE_PRIVATE(QGeoMappingManagerEngine)
80 Q_DISABLE_COPY(QGeoMappingManagerEngine)
81
82 friend class QGeoServiceProvider;
83 friend class QGeoServiceProviderPrivate;
84};
85
86QT_END_NAMESPACE
87
88#endif
Combined button and popup list for selecting options.