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
qplacecontactdetail.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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPLACECONTACTDETAIL_H
6
#
define
QPLACECONTACTDETAIL_H
7
8
#
include
<
QtCore
/
QString
>
9
#
include
<
QtCore
/
QMetaType
>
10
#
include
<
QtCore
/
QSharedDataPointer
>
11
12
#
include
<
QtLocation
/
qlocationglobal
.
h
>
13
#
include
<
QtQml
/
qqml
.
h
>
14
15
QT_BEGIN_NAMESPACE
16
17
class
QPlaceContactDetailPrivate;
18
QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPlaceContactDetailPrivate, Q_LOCATION_EXPORT)
19
20
class
Q_LOCATION_EXPORT
QPlaceContactDetail
21
{
22
Q_GADGET
23
QML_VALUE_TYPE(contactDetail)
24
QML_STRUCTURED_VALUE
25
Q_PROPERTY(QString label READ label WRITE setLabel)
26
Q_PROPERTY(QString value READ value WRITE setValue)
27
28
public
:
29
static
const
QString Phone;
30
static
const
QString Email;
31
static
const
QString Website;
32
static
const
QString Fax;
33
34
QPlaceContactDetail();
35
QPlaceContactDetail(
const
QPlaceContactDetail &other)
noexcept
;
36
QPlaceContactDetail(QPlaceContactDetail &&other)
noexcept
=
default
;
37
~QPlaceContactDetail();
38
39
QPlaceContactDetail &operator=(
const
QPlaceContactDetail &other)
noexcept
;
40
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceContactDetail)
41
42
void
swap(QPlaceContactDetail &other)
noexcept
{ d_ptr.swap(other.d_ptr); }
43
44
friend
inline
bool
operator==(
const
QPlaceContactDetail &lhs,
const
QPlaceContactDetail &rhs)
noexcept
45
{
return
lhs.isEqual(rhs); }
46
friend
inline
bool
operator!=(
const
QPlaceContactDetail &lhs,
const
QPlaceContactDetail &rhs)
noexcept
47
{
return
!lhs.isEqual(rhs); }
48
49
QString label()
const
;
50
void
setLabel(
const
QString &label);
51
52
QString value()
const
;
53
void
setValue(
const
QString &value);
54
55
void
clear();
56
57
private
:
58
QSharedDataPointer<QPlaceContactDetailPrivate> d_ptr;
59
60
bool
isEqual(
const
QPlaceContactDetail &other)
const
noexcept
;
61
};
62
63
QT_END_NAMESPACE
64
65
Q_DECLARE_METATYPE
(
QPlaceContactDetail
)
66
67
#
endif
QPlaceContactDetail
The QPlaceContactDetail class represents a contact detail such as a phone number or website url.
Definition
qplacecontactdetail.h:21
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_DECLARE_METATYPE
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhosQpa::enums::kit::ShareKit::systemShare::SelectionMode))
qtlocation
src
location
places
qplacecontactdetail.h
Generated on
for Qt by
1.18.0