Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgeoaddress_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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
4#ifndef QLOCATION_GEOADDRESS_P_H
5#define QLOCATION_GEOADDRESS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QString>
19#include <QSharedData>
20#include <private/qglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24// The fields for the class are based on the nominatim openstreetmap API:
25// https://nominatim.org/release-docs/latest/api/Output/#addressdetails
26// It might not reflect all the address levels, but can be used to provide a
27// more or less well-formed address.
28class QGeoAddressPrivate : public QSharedData
29{
30public:
31 QGeoAddressPrivate();
32 QGeoAddressPrivate(const QGeoAddressPrivate &other);
33 ~QGeoAddressPrivate();
34
35 QString sCountry; //!< country field
36 QString sCountryCode; //!< country code field
37 QString sState; //!< state field
38 QString sCounty; //!< county field
39 QString sCity; //!< city field
40 QString sDistrict; //!< district field
41 QString sStreet; //!< street name field
42 QString sStreetNumber; //!< street number field
43 QString sPostalCode; //!< postal code field
44 QString sText;
45 bool m_autoGeneratedText;
46};
47
49
50#endif
Combined button and popup list for selecting options.
static QString formattedAddress(const QGeoAddress &address, const QString &newLine=QLatin1String("<br/>"))
constexpr size_t qHash(const QSize &s, size_t seed=0) noexcept
Definition qsize.h:191