8#include <QtCore/QMetaType>
9#include <QtCore/QSharedDataPointer>
10#include <QtPositioning/qpositioningglobal.h>
15class QGeoAddressPrivate;
16QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QGeoAddressPrivate, Q_POSITIONING_EXPORT)
22 QGeoAddress(
const QGeoAddress &other);
23 QGeoAddress(QGeoAddress &&other)
noexcept =
default;
26 QGeoAddress &operator=(
const QGeoAddress &other);
27 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QGeoAddress)
29 void swap(QGeoAddress &other)
noexcept { d.swap(other.d); }
31 friend bool operator==(
const QGeoAddress &lhs,
const QGeoAddress &rhs)
33 return equals(lhs, rhs);
35 friend bool operator!=(
const QGeoAddress &lhs,
const QGeoAddress &rhs)
37 return !equals(lhs, rhs);
41 void setText(
const QString &text);
43 QString country()
const;
44 void setCountry(
const QString &country);
46 QString countryCode()
const;
47 void setCountryCode(
const QString &countryCode);
49 QString state()
const;
50 void setState(
const QString &state);
52 QString county()
const;
53 void setCounty(
const QString &county);
56 void setCity(
const QString &city);
58 QString district()
const;
59 void setDistrict(
const QString &district);
61 QString postalCode()
const;
62 void setPostalCode(
const QString &postalCode);
64 QString street()
const;
65 void setStreet(
const QString &street);
67 QString streetNumber()
const;
68 void setStreetNumber(
const QString &streetNumber);
73 bool isTextGenerated()
const;
76 static bool equals(
const QGeoAddress &lhs,
const QGeoAddress &rhs);
77 QSharedDataPointer<QGeoAddressPrivate> d;
80Q_POSITIONING_EXPORT size_t qHash(
const QGeoAddress &address, size_t seed = 0)
noexcept;
86QT_DECL_METATYPE_EXTERN(QGeoAddress, Q_POSITIONING_EXPORT)
QGeoCodingManagerEnginePrivate()=default
Combined button and popup list for selecting options.