diff options
Diffstat (limited to 'src/location/places/qplaceaddress.h')
-rw-r--r-- | src/location/places/qplaceaddress.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/location/places/qplaceaddress.h b/src/location/places/qplaceaddress.h new file mode 100644 index 00000000..4fccc728 --- /dev/null +++ b/src/location/places/qplaceaddress.h @@ -0,0 +1,65 @@ +#ifndef QPLACEADDRESS_H +#define QPLACEADDRESS_H + +#include <QSharedDataPointer> +#include <QString> +#include <QVariant> +#include <QList> +#include "qplaceglobal.h" +#include "qplacealternativevalue.h" + +namespace QT_PLACES_NAMESPACE { + +class QPlaceAddressPrivate; + +class Q_PLACES_EXPORT QPlaceAddress +{ +public: + QPlaceAddress(); + QPlaceAddress(const QPlaceAddress &other); + + virtual ~QPlaceAddress(); + + QPlaceAddress &operator=(const QPlaceAddress &other); + + bool operator==(const QPlaceAddress &other) const; + bool operator!=(const QPlaceAddress &other) const { + return !(other == *this); + } + + QVariantHash additionalData() const; + void setAdditionalData(const QVariantHash &data); + QList<QPlaceAlternativeValue> alternativeAttributes() const; + void setAlternativeAttributes(const QList<QPlaceAlternativeValue> &alternativeAttributes); + QString city() const; + void setCity(const QString &city); + QString country() const; + void setCountry(const QString &country); + QString countryName() const; + void setCountryName(const QString &countryName); + QString county() const; + void setCounty(const QString &county); + QString district() const; + void setDistrict(const QString &district); + QString floor() const; + void setFloor(const QString &floor); + QString houseNumber() const; + void setHouseNumber(const QString &houseNumber); + QString label() const; + void setLabel(const QString &label); + QString postalCode() const; + void setPostalCode(const QString &postalCode); + QString state() const; + void setState(const QString &state); + QString street() const; + void setStreet(const QString &street); + QString suite() const; + void setSuite(const QString &suite); + +private: + QSharedDataPointer<QPlaceAddressPrivate> d; +}; + +} // QT_PLACES_NAMESPACE + +#endif // QPLACEADDRESS_H |