Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPLACESUPPLIER_H
6
#
define
QPLACESUPPLIER_H
7
8
#
include
<
QtLocation
/
qlocationglobal
.
h
>
9
#
include
<
QtCore
/
QMetaType
>
10
#
include
<
QtCore
/
QSharedDataPointer
>
11
#
include
<
QtQml
/
qqml
.
h
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QUrl;
16
class
QPlaceIcon;
17
class
QPlaceSupplierPrivate;
18
QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPlaceSupplierPrivate, Q_LOCATION_EXPORT)
19
20
class
Q_LOCATION_EXPORT
QPlaceSupplier
21
{
22
Q_GADGET
23
QML_VALUE_TYPE(supplier)
24
QML_STRUCTURED_VALUE
25
26
Q_PROPERTY(QString name READ name WRITE setName)
27
Q_PROPERTY(QString supplierId READ supplierId WRITE setSupplierId)
28
Q_PROPERTY(QUrl url READ url WRITE setUrl)
29
Q_PROPERTY(QPlaceIcon icon READ icon WRITE setIcon)
30
31
public
:
32
QPlaceSupplier();
33
QPlaceSupplier(
const
QPlaceSupplier &other)
noexcept
;
34
QPlaceSupplier(QPlaceSupplier &&other)
noexcept
=
default
;
35
~QPlaceSupplier();
36
37
QPlaceSupplier &operator=(
const
QPlaceSupplier &other)
noexcept
;
38
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceSupplier)
39
40
void
swap(QPlaceSupplier &other)
noexcept
{ d.swap(other.d); }
41
42
friend
inline
bool
operator==(
const
QPlaceSupplier &lhs,
43
const
QPlaceSupplier &rhs)
noexcept
44
{
return
lhs.isEqual(rhs); }
45
friend
inline
bool
operator!=(
const
QPlaceSupplier &lhs,
46
const
QPlaceSupplier &rhs)
noexcept
47
{
return
!lhs.isEqual(rhs); }
48
49
QString name()
const
;
50
void
setName(
const
QString &data);
51
52
QString supplierId()
const
;
53
void
setSupplierId(
const
QString &identifier);
54
55
QUrl url()
const
;
56
void
setUrl(
const
QUrl &data);
57
58
QPlaceIcon icon()
const
;
59
void
setIcon(
const
QPlaceIcon &icon);
60
61
bool
isEmpty()
const
;
62
63
private
:
64
QSharedDataPointer<QPlaceSupplierPrivate> d;
65
66
bool
isEqual(
const
QPlaceSupplier &other)
const
noexcept
;
67
};
68
69
QT_END_NAMESPACE
70
71
Q_DECLARE_METATYPE
(
QPlaceSupplier
)
72
73
#
endif
// QPLACESUPPLIER_H
QPlaceContent
\inmodule QtLocation
Definition
qplacecontent.h:23
QPlaceSupplier
The QPlaceSupplier class represents a supplier of a place or content associated with a place.
Definition
qplacesupplier.h:21
Q_DECLARE_METATYPE
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhosQpa::enums::kit::ShareKit::systemShare::SelectionMode))
qtlocation
src
location
places
qplacesupplier.h
Generated on
for Qt by
1.18.0