Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QGEOMAPPINGMANAGERENGINE_H
5#define QGEOMAPPINGMANAGERENGINE_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
18#include <QObject>
19#include <QList>
20#include <QtLocation/private/qlocationglobal_p.h>
21
23
24class QLocale;
25class QString;
26
27class QGeoRectangle;
28class QGeoCoordinate;
31class QGeoMapRequestOptions;
32
34class QGeoMap;
35class QGeoMapType;
36
37class Q_LOCATION_EXPORT QGeoMappingManagerEngine : public QObject
38{
40
41public:
42 explicit QGeoMappingManagerEngine(QObject *parent = nullptr);
44
45 virtual QGeoMap *createMap() = 0;
46
48
49 QString managerName() const;
50 int managerVersion() const;
51
52 QList<QGeoMapType> supportedMapTypes() const;
53
54 // the class is private, so this can be virtual here for now.
55 QGeoCameraCapabilities cameraCapabilities(int mapId = 0) const;
56
57 void setLocale(const QLocale &locale);
58 QLocale locale() const;
59
60 bool isInitialized() const;
61
65
66protected:
67 void setSupportedMapTypes(const QList<QGeoMapType> &supportedMapTypes);
68 void setCameraCapabilities(const QGeoCameraCapabilities &capabilities);
69
70 void engineInitialized();
71
72private:
74
75 void setManagerName(const QString &managerName);
76 void setManagerVersion(int managerVersion);
77
78 Q_DECLARE_PRIVATE(QGeoMappingManagerEngine)
79 Q_DISABLE_COPY(QGeoMappingManagerEngine)
80
81 friend class QGeoServiceProvider;
83};
84
86
87#endif
\inmodule QtPositioning
virtual QGeoMap * createMap()=0
QVariantMap parameters() const
\inmodule QtPositioning
\inmodule QtLocation
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_OBJECT
#define Q_SIGNALS