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_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 QGEOMAPTYPE_H
5#define QGEOMAPTYPE_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 <QtCore/QObject>
19#include <QtCore/QString>
20#include <QtCore/QSharedDataPointer>
21#include <QtCore/QVariantMap>
22#include <QtLocation/private/qlocationglobal_p.h>
23#include <QtQml/qqml.h>
24
26
30
31class Q_LOCATION_EXPORT QGeoMapType
32{
34 QML_VALUE_TYPE(mapType)
37
38 Q_PROPERTY(MapStyle style READ style CONSTANT)
39 Q_PROPERTY(QString name READ name CONSTANT)
40 Q_PROPERTY(QString description READ description CONSTANT)
41 Q_PROPERTY(bool mobile READ mobile CONSTANT)
42 Q_PROPERTY(bool night READ night CONSTANT)
43 Q_PROPERTY(QGeoCameraCapabilities cameraCapabilities READ cameraCapabilities CONSTANT)
44 Q_PROPERTY(QVariantMap metadata READ metadata CONSTANT)
45
46 Q_MOC_INCLUDE(<QtLocation/private/qgeocameracapabilities_p.h>)
47public:
48 enum MapStyle { // ### Qt6: change this to be a QFlags instead, or remove.
49 NoMap = 0,
60 CustomMap = 100
61 };
62
64 QGeoMapType(const QGeoMapType &other) noexcept;
65 QGeoMapType(QGeoMapType &&other) noexcept = default;
66 QGeoMapType(MapStyle style, const QString &name, const QString &description, bool mobile,
67 bool night, int mapId, const QByteArray &pluginName,
68 const QGeoCameraCapabilities &cameraCapabilities,
69 const QVariantMap &metadata = QVariantMap());
71
72 QGeoMapType &operator=(const QGeoMapType &other) noexcept;
73 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QGeoMapType)
74
75 void swap(QGeoMapType &other) noexcept { d_ptr.swap(other.d_ptr); }
76
77 friend inline bool operator==(const QGeoMapType &lhs, const QGeoMapType &rhs) noexcept
78 { return lhs.isEqual(rhs); }
79 friend inline bool operator!=(const QGeoMapType &lhs, const QGeoMapType &rhs) noexcept
80 { return !lhs.isEqual(rhs); }
81
82 MapStyle style() const;
83 QString name() const;
84 QString description() const;
85 bool mobile() const;
86 bool night() const;
87 int mapId() const;
88 QByteArray pluginName() const;
89 QGeoCameraCapabilities cameraCapabilities() const;
90 QVariantMap metadata() const;
91
92private:
93 QSharedDataPointer<QGeoMapTypePrivate> d_ptr;
94
95 bool isEqual(const QGeoMapType &other) const noexcept;
96};
97
104
106
107#endif // QGEOMAPTYPE_H
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
\inmodule QtCore
Definition qbytearray.h:57
friend bool operator==(const QGeoMapType &lhs, const QGeoMapType &rhs) noexcept
QGeoMapType(const QGeoMapType &other) noexcept
QGeoMapType(QGeoMapType &&other) noexcept=default
friend bool operator!=(const QGeoMapType &lhs, const QGeoMapType &rhs) noexcept
QSharedData & operator=(const QSharedData &)=delete
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
QMap< QString, QVariant > QVariantMap
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
GLuint name
GLfloat GLfloat GLfloat GLfloat h
#define QML_FOREIGN_NAMESPACE(FOREIGN_NAMESPACE)
#define QML_VALUE_TYPE(NAME)
#define QML_NAMED_ELEMENT(NAME)
#define QML_STRUCTURED_VALUE
#define QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define Q_PROPERTY(...)
#define Q_GADGET
#define Q_MOC_INCLUDE(...)
#define Q_ENUMS(x)
#define Q_NAMESPACE
QSharedPointer< T > other(t)
[5]
this swap(other)