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
qgeoaddress.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
QGEOADDRESS_H
6
#
define
QGEOADDRESS_H
7
8
#
include
<
QtCore
/
QMetaType
>
9
#
include
<
QtCore
/
QSharedDataPointer
>
10
#
include
<
QtPositioning
/
qpositioningglobal
.
h
>
11
12
QT_BEGIN_NAMESPACE
13
14
class
QString;
15
class
QGeoAddressPrivate;
16
QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QGeoAddressPrivate, Q_POSITIONING_EXPORT)
17
18
class
Q_POSITIONING_EXPORT
QGeoAddress
19
{
20
public
:
21
QGeoAddress();
22
QGeoAddress(
const
QGeoAddress &other);
23
QGeoAddress(QGeoAddress &&other)
noexcept
=
default
;
24
~QGeoAddress();
25
26
QGeoAddress &operator=(
const
QGeoAddress &other);
27
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QGeoAddress)
28
29
void
swap(QGeoAddress &other)
noexcept
{ d.swap(other.d); }
30
31
friend
bool
operator==(
const
QGeoAddress &lhs,
const
QGeoAddress &rhs)
32
{
33
return
equals(lhs, rhs);
34
}
35
friend
bool
operator!=(
const
QGeoAddress &lhs,
const
QGeoAddress &rhs)
36
{
37
return
!equals(lhs, rhs);
38
}
39
40
QString text()
const
;
41
void
setText(
const
QString &text);
42
43
QString country()
const
;
44
void
setCountry(
const
QString &country);
45
46
QString countryCode()
const
;
47
void
setCountryCode(
const
QString &countryCode);
48
49
QString state()
const
;
50
void
setState(
const
QString &state);
51
52
QString county()
const
;
53
void
setCounty(
const
QString &county);
54
55
QString city()
const
;
56
void
setCity(
const
QString &city);
57
58
QString district()
const
;
59
void
setDistrict(
const
QString &district);
60
61
QString postalCode()
const
;
62
void
setPostalCode(
const
QString &postalCode);
63
64
QString street()
const
;
65
void
setStreet(
const
QString &street);
66
67
QString streetNumber()
const
;
68
void
setStreetNumber(
const
QString &streetNumber);
69
70
bool
isEmpty()
const
;
71
void
clear();
72
73
bool
isTextGenerated()
const
;
74
75
private
:
76
static
bool
equals(
const
QGeoAddress &lhs,
const
QGeoAddress &rhs);
77
QSharedDataPointer<QGeoAddressPrivate> d;
78
};
79
80
Q_POSITIONING_EXPORT size_t qHash(
const
QGeoAddress &address, size_t seed = 0)
noexcept
;
81
82
Q_DECLARE_SHARED
(
QGeoAddress
)
83
84
QT_END_NAMESPACE
85
86
QT_DECL_METATYPE_EXTERN(QGeoAddress, Q_POSITIONING_EXPORT)
87
88
#
endif
QGeoAddress
\inmodule QtPositioning
Definition
qgeoaddress.h:19
QGeoCodingManagerEnginePrivate
Definition
qgeocodingmanagerengine_p.h:26
QGeoCodingManagerEnginePrivate::managerVersion
int managerVersion
Definition
qgeocodingmanagerengine_p.h:32
QGeoCodingManagerEnginePrivate::locale
QLocale locale
Definition
qgeocodingmanagerengine_p.h:31
QGeoCodingManagerEnginePrivate::managerName
QString managerName
Definition
qgeocodingmanagerengine_p.h:30
QGeoCodingManagerEnginePrivate::QGeoCodingManagerEnginePrivate
QGeoCodingManagerEnginePrivate()=default
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtpositioning
src
positioning
qgeoaddress.h
Generated on
for Qt by
1.18.0