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
qgeomaptype.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
4
#include "
qgeomaptype_p.h
"
5
#include "
qgeomaptype_p_p.h
"
6
7
QT_BEGIN_NAMESPACE
8
9
QT_DEFINE_QSDP_SPECIALIZATION_DTOR
(
QGeoMapTypePrivate
)
10
11
23
QGeoMapType
::
QGeoMapType
()
24
: d_ptr(new
QGeoMapTypePrivate
()) {}
25
26
QGeoMapType::QGeoMapType
(
const
QGeoMapType
&
other
)
noexcept
=
default
;
27
28
QGeoMapType::QGeoMapType
(
QGeoMapType::MapStyle
style,
const
QString
&
name
,
29
const
QString
&description,
bool
mobile,
bool
night,
int
mapId,
30
const
QByteArray
&pluginName,
31
const
QGeoCameraCapabilities
&cameraCapabilities,
32
const
QVariantMap
&metadata)
33
: d_ptr(new
QGeoMapTypePrivate
(style,
name
, description, mobile, night, mapId, pluginName, cameraCapabilities, metadata))
34
{
35
}
36
37
QGeoMapType::~QGeoMapType
() =
default
;
38
39
QGeoMapType
&
QGeoMapType::operator=
(
const
QGeoMapType
&
other
)
noexcept
40
{
41
if
(
this
== &
other
)
42
return
*
this
;
43
44
d_ptr =
other
.d_ptr;
45
return
*
this
;
46
}
47
48
bool
QGeoMapType::isEqual(
const
QGeoMapType
&
other
)
const
noexcept
49
{
50
return
(*d_ptr.constData() == *
other
.d_ptr.constData());
51
}
52
73
QGeoMapType::MapStyle
QGeoMapType::style
()
const
74
{
75
return
d_ptr->
style_
;
76
}
77
84
QString
QGeoMapType::name
()
const
85
{
86
return
d_ptr->
name_
;
87
}
88
95
QString
QGeoMapType::description
()
const
96
{
97
return
d_ptr->
description_
;
98
}
99
108
bool
QGeoMapType::mobile
()
const
109
{
110
return
d_ptr->
mobile_
;
111
}
112
121
bool
QGeoMapType::night
()
const
122
{
123
return
d_ptr->
night_
;
124
}
125
126
int
QGeoMapType::mapId
()
const
127
{
128
return
d_ptr->
mapId_
;
129
}
130
131
QByteArray
QGeoMapType::pluginName
()
const
132
{
133
return
d_ptr->
pluginName_
;
134
}
135
143
QGeoCameraCapabilities
QGeoMapType::cameraCapabilities
()
const
144
{
145
return
d_ptr->
cameraCapabilities_
;
146
}
147
155
QVariantMap
QGeoMapType::metadata
()
const
156
{
157
return
d_ptr->
metadata_
;
158
}
159
160
QGeoMapTypePrivate::QGeoMapTypePrivate
() =
default
;
161
162
QGeoMapTypePrivate::QGeoMapTypePrivate
(
QGeoMapType::MapStyle
style,
const
QString
&
name
,
163
const
QString
&description,
bool
mobile,
bool
night,
164
int
mapId,
const
QByteArray
&pluginName,
165
const
QGeoCameraCapabilities
&cameraCapabilities,
166
const
QVariantMap
&metadata)
167
: name_(
name
), description_(description), pluginName_(pluginName),
168
cameraCapabilities_(cameraCapabilities), metadata_(metadata),
169
style_(style), mapId_(mapId), mobile_(mobile), night_(night)
170
{
171
}
172
173
bool
QGeoMapTypePrivate::operator==
(
const
QGeoMapTypePrivate
&
other
)
const
174
{
175
return
pluginName_
==
other
.pluginName_ &&
style_
==
other
.style_ &&
name_
==
other
.name_ &&
176
description_
==
other
.description_ &&
mobile_
==
other
.mobile_ &&
night_
==
other
.night_ &&
177
mapId_
==
other
.mapId_ &&
cameraCapabilities_
==
other
.cameraCapabilities_ &&
178
metadata_
==
other
.metadata_;
179
}
180
181
QT_END_NAMESPACE
182
183
#include "moc_qgeomaptype_p.cpp"
QByteArray
\inmodule QtCore
Definition
qbytearray.h:57
QGeoCameraCapabilities
\inmodule QtLocation
Definition
qgeocameracapabilities_p.h:29
QGeoMapTypePrivate
Definition
qgeomaptype_p_p.h:29
QGeoMapTypePrivate::name_
QString name_
Definition
qgeomaptype_p_p.h:39
QGeoMapTypePrivate::night_
bool night_
Definition
qgeomaptype_p_p.h:47
QGeoMapTypePrivate::style_
QGeoMapType::MapStyle style_
Definition
qgeomaptype_p_p.h:44
QGeoMapTypePrivate::cameraCapabilities_
QGeoCameraCapabilities cameraCapabilities_
Definition
qgeomaptype_p_p.h:42
QGeoMapTypePrivate::description_
QString description_
Definition
qgeomaptype_p_p.h:40
QGeoMapTypePrivate::operator==
bool operator==(const QGeoMapTypePrivate &other) const
Definition
qgeomaptype.cpp:173
QGeoMapTypePrivate::metadata_
QVariantMap metadata_
Definition
qgeomaptype_p_p.h:43
QGeoMapTypePrivate::mapId_
int mapId_
Definition
qgeomaptype_p_p.h:45
QGeoMapTypePrivate::QGeoMapTypePrivate
QGeoMapTypePrivate()
QGeoMapTypePrivate::pluginName_
QByteArray pluginName_
Definition
qgeomaptype_p_p.h:41
QGeoMapTypePrivate::mobile_
bool mobile_
Definition
qgeomaptype_p_p.h:46
QGeoMapType
Definition
qgeomaptype_p.h:32
QGeoMapType::style
QML_STRUCTURED_VALUEMapStyle style
Definition
qgeomaptype_p.h:38
QGeoMapType::name
QString name
Definition
qgeomaptype_p.h:39
QGeoMapType::metadata
QVariantMap metadata
Definition
qgeomaptype_p.h:44
QGeoMapType::MapStyle
MapStyle
Definition
qgeomaptype_p.h:48
QGeoMapType::pluginName
QByteArray pluginName() const
Definition
qgeomaptype.cpp:131
QGeoMapType::QGeoMapType
QGeoMapType()
\qmltype mapType \inqmlmodule QtLocation
Definition
qgeomaptype.cpp:23
QGeoMapType::~QGeoMapType
~QGeoMapType()
QGeoMapType::mapId
int mapId() const
Definition
qgeomaptype.cpp:126
QGeoMapType::mobile
bool mobile
Definition
qgeomaptype_p.h:41
QGeoMapType::operator=
QGeoMapType & operator=(const QGeoMapType &other) noexcept
Definition
qgeomaptype.cpp:39
QGeoMapType::description
QString description
Definition
qgeomaptype_p.h:40
QGeoMapType::night
bool night
Definition
qgeomaptype_p.h:42
QGeoMapType::cameraCapabilities
QGeoCameraCapabilities cameraCapabilities
Definition
qgeomaptype_p.h:43
QMap< QString, QVariant >
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qgeomaptype_p.h
qgeomaptype_p_p.h
name
GLuint name
Definition
qopengles2ext.h:156
QT_DEFINE_QSDP_SPECIALIZATION_DTOR
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
Definition
qshareddata.h:280
other
QSharedPointer< T > other(t)
[5]
qtlocation
src
location
maps
qgeomaptype.cpp
Generated by
1.10.0