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.cpp
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
7#include "qgeotilespec_p.h"
9#include "qgeomaptype_p.h"
10
12
38
47
54{
56 d->initialized = true;
58}
59
67void QGeoMappingManagerEngine::setManagerName(const QString &managerName)
68{
69 d_ptr->managerName = managerName;
70}
71
83
90void QGeoMappingManagerEngine::setManagerVersion(int managerVersion)
91{
93}
94
102{
103 return d_ptr->managerVersion;
104}
105
107{
108 Q_D(const QGeoMappingManagerEngine);
109 return d->supportedMapTypes;
110}
111
118void QGeoMappingManagerEngine::setSupportedMapTypes(const QList<QGeoMapType> &supportedMapTypes)
119{
121 d->supportedMapTypes = supportedMapTypes;
123}
124
126{
127 Q_UNUSED(mapId);
128 Q_D(const QGeoMappingManagerEngine);
129
130 if (mapId == 0)
131 return d->capabilities_;
132 int idx = mapId - 1;
133 if (idx >= supportedMapTypes().size())
134 return d->capabilities_;
136}
137
139{
141 d->capabilities_ = capabilities;
142}
143
149{
150 Q_D(const QGeoMappingManagerEngine);
151 return d->initialized;
152}
153
163{
164 d_ptr->locale = locale;
165}
166
172{
173 return d_ptr->locale;
174}
175
176/*******************************************************************************
177*******************************************************************************/
178
181
QGeoCameraCapabilities cameraCapabilities
QGeoCameraCapabilities cameraCapabilities(int mapId=0) const
void setCameraCapabilities(const QGeoCameraCapabilities &capabilities)
QString managerName() const
Returns the name which this engine implementation uses to distinguish itself from the implementations...
void engineInitialized()
Marks the engine as initialized.
QGeoMappingManagerEngine(QObject *parent=nullptr)
Constructs a new engine with the specified parent.
bool isInitialized() const
Return whether the engine has been initialized and is ready to be used.
QList< QGeoMapType > supportedMapTypes() const
int managerVersion() const
Returns the version of this engine implementation.
void setSupportedMapTypes(const QList< QGeoMapType > &supportedMapTypes)
Sets the list of map types supported by this engine to mapTypes.
virtual ~QGeoMappingManagerEngine()
Destroys this engine.
QLocale locale() const
Returns the locale used to hint to this mapping manager about what language to use for map labels.
void setLocale(const QLocale &locale)
Sets the locale to be used by the this manager to locale.
const_reference at(qsizetype i) const noexcept
Definition qlist.h:446
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
#define emit
#define Q_UNUSED(x)