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
qgeomappingmanager.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
9
10
11#include "qgeomap_p.h"
12
13#include <QTimer>
14#include <QLocale>
15
17
38 : QObject(parent),
40{
41 d_ptr->engine = engine;
42 if (!d_ptr->engine) {
43 qFatal("The mapping manager engine that was set for this mapping manager was NULL.");
44 }
45
48
51}
52
57{
58 delete d_ptr;
59}
60
76{
77 return d_ptr->engine->managerName();
78}
79
88{
89 return d_ptr->engine->managerVersion();
90}
91
96{
98 return d_ptr->engine->createMap();
99}
100
102{
103 return d_ptr->engine->supportedMapTypes();
104}
105
112{
113 return d_ptr->engine->isInitialized();
114}
115
125{
126 d_ptr->engine->setLocale(locale);
127}
128
134{
135 return d_ptr->engine->locale();
136}
137
138/*******************************************************************************
139*******************************************************************************/
140
142
147
QString managerName() const
Returns the name which this engine implementation uses to distinguish itself from the implementations...
virtual QGeoMap * createMap()=0
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.
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.
QGeoMappingManagerEngine * engine
QString managerName() const
Returns the name of the engine which implements the behaviour of this mapping manager.
void initialized()
This signal is emitted when the mapping manager has been initialized and is ready to be used.
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.
QGeoMap * createMap(QObject *parent)
Returns a new QGeoMap instance which will be managed by this manager.
QList< QGeoMapType > supportedMapTypes() const
void supportedMapTypesChanged()
int managerVersion() const
Returns the version of the engine which implements the behaviour of this mapping manager.
bool isInitialized() const
Return whether the manager has been initialized (will be done automatically but may take some time).
~QGeoMappingManager()
Destroys this mapping manager.
QGeoMappingManager(QGeoMappingManagerEngine *engine, QObject *parent=nullptr)
Constructs a new manager with the specified parent and with the implementation provided by engine.
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2960
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
@ QueuedConnection
#define qFatal
Definition qlogging.h:168
#define Q_UNUSED(x)
QJSEngine engine
[0]