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
qplacesupplier.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QPLACESUPPLIER_H
5#define QPLACESUPPLIER_H
6
7#include <QtLocation/qlocationglobal.h>
8#include <QtCore/QMetaType>
9#include <QtCore/QSharedDataPointer>
10#include <QtQml/qqml.h>
11
13
14class QUrl;
15class QPlaceIcon;
18
19class Q_LOCATION_EXPORT QPlaceSupplier
20{
22 QML_VALUE_TYPE(supplier)
24
26 Q_PROPERTY(QString supplierId READ supplierId WRITE setSupplierId)
29
30public:
33 QPlaceSupplier(QPlaceSupplier &&other) noexcept = default;
35
36 QPlaceSupplier &operator=(const QPlaceSupplier &other) noexcept;
37 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceSupplier)
38
39 void swap(QPlaceSupplier &other) noexcept { d.swap(other.d); }
40
41 friend inline bool operator==(const QPlaceSupplier &lhs,
42 const QPlaceSupplier &rhs) noexcept
43 { return lhs.isEqual(rhs); }
44 friend inline bool operator!=(const QPlaceSupplier &lhs,
45 const QPlaceSupplier &rhs) noexcept
46 { return !lhs.isEqual(rhs); }
47
48 QString name() const;
49 void setName(const QString &data);
50
51 QString supplierId() const;
52 void setSupplierId(const QString &identifier);
53
54 QUrl url() const;
55 void setUrl(const QUrl &data);
56
57 QPlaceIcon icon() const;
58 void setIcon(const QPlaceIcon &icon);
59
60 bool isEmpty() const;
61
62private:
63 QSharedDataPointer<QPlaceSupplierPrivate> d;
64
65 bool isEqual(const QPlaceSupplier &other) const noexcept;
66};
67
69
71
72#endif // QPLACESUPPLIER_H
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
\inmodule QtLocation
Definition qplaceicon.h:23
\inmodule QtLocation
friend bool operator!=(const QPlaceSupplier &lhs, const QPlaceSupplier &rhs) noexcept
Returns true if lhs is not equal to rhs, otherwise returns false.
void swap(QPlaceSupplier &other) noexcept
friend bool operator==(const QPlaceSupplier &lhs, const QPlaceSupplier &rhs) noexcept
Returns true if lhs is equal to rhs, otherwise returns false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint name
#define QML_VALUE_TYPE(NAME)
#define QML_STRUCTURED_VALUE
#define QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
request setUrl(QUrl("http://qt-project.org"))
#define Q_PROPERTY(...)
#define Q_GADGET
QUrl url("example.com")
[constructor-url-reference]
QSharedPointer< T > other(t)
[5]
this swap(other)
myAction setIcon(SomeIcon)