7#include <QtCore/QMetaType>
8#include <QtCore/QSharedDataPointer>
9#include <QtPositioning/qpositioningglobal.h>
14class QGeoAddressPrivate;
15QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QGeoAddressPrivate, Q_POSITIONING_EXPORT)
21 QGeoAddress(
const QGeoAddress &other);
22 QGeoAddress(QGeoAddress &&other)
noexcept =
default;
25 QGeoAddress &operator=(
const QGeoAddress &other);
26 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QGeoAddress)
28 void swap(QGeoAddress &other)
noexcept { d.swap(other.d); }
30 friend bool operator==(
const QGeoAddress &lhs,
const QGeoAddress &rhs)
32 return equals(lhs, rhs);
34 friend bool operator!=(
const QGeoAddress &lhs,
const QGeoAddress &rhs)
36 return !equals(lhs, rhs);
40 void setText(
const QString &text);
42 QString country()
const;
43 void setCountry(
const QString &country);
45 QString countryCode()
const;
46 void setCountryCode(
const QString &countryCode);
48 QString state()
const;
49 void setState(
const QString &state);
51 QString county()
const;
52 void setCounty(
const QString &county);
55 void setCity(
const QString &city);
57 QString district()
const;
58 void setDistrict(
const QString &district);
60 QString postalCode()
const;
61 void setPostalCode(
const QString &postalCode);
63 QString street()
const;
64 void setStreet(
const QString &street);
66 QString streetNumber()
const;
67 void setStreetNumber(
const QString &streetNumber);
72 bool isTextGenerated()
const;
75 static bool equals(
const QGeoAddress &lhs,
const QGeoAddress &rhs);
76 QSharedDataPointer<QGeoAddressPrivate> d;
79Q_POSITIONING_EXPORT size_t qHash(
const QGeoAddress &address, size_t seed = 0)
noexcept;
85QT_DECL_METATYPE_EXTERN(QGeoAddress, Q_POSITIONING_EXPORT)
QGeoCodingManagerEnginePrivate()=default
Combined button and popup list for selecting options.