8#ifndef KCONTACTS_ADDRESS_H
9#define KCONTACTS_ADDRESS_H
12#include "kcontacts_export.h"
17#include <QSharedDataPointer>
36 Q_PROPERTY(
QString id READ
id WRITE setId)
37 Q_PROPERTY(
bool isEmpty READ isEmpty)
38 Q_PROPERTY(
Type type READ type WRITE setType)
39 Q_PROPERTY(
QString typeLabel READ typeLabel)
40 Q_PROPERTY(
QString postOfficeBox READ postOfficeBox WRITE setPostOfficeBox)
41 Q_PROPERTY(
QString extended READ extended WRITE setExtended)
42 Q_PROPERTY(
QString street READ street WRITE setStreet)
43 Q_PROPERTY(
QString locality READ locality WRITE setLocality)
44 Q_PROPERTY(
QString region READ region WRITE setRegion)
45 Q_PROPERTY(
QString postalCode READ postalCode WRITE setPostalCode)
46 Q_PROPERTY(
QString country READ country WRITE setCountry)
47 Q_PROPERTY(
QString label READ label WRITE setLabel)
60 Q_PROPERTY(
QString formattedAddress READ formattedPostalAddress)
66 Q_PROPERTY(
QUrl geoUri READ geoUri)
125 Q_REQUIRED_RESULT
bool operator==(const
Address &other) const;
133 Q_REQUIRED_RESULT
bool operator!=(const
Address &other) const;
146 Q_REQUIRED_RESULT
bool isEmpty() const;
156 void setId(const
QString &identifier);
161 Q_REQUIRED_RESULT
QString id() const;
168 void setType(
Type type);
173 Q_REQUIRED_RESULT
Type type() const;
178 Q_REQUIRED_RESULT
QString typeLabel() const;
183 void setPostOfficeBox(const
QString &postOfficeBox);
188 Q_REQUIRED_RESULT
QString postOfficeBox() const;
193 static
QString postOfficeBoxLabel();
198 void setExtended(const
QString &extended);
203 Q_REQUIRED_RESULT
QString extended() const;
208 static
QString extendedLabel();
213 void setStreet(const
QString &street);
218 Q_REQUIRED_RESULT
QString street() const;
230 void setLocality(const
QString &locality);
235 Q_REQUIRED_RESULT
QString locality() const;
240 static
QString localityLabel();
247 void setRegion(const
QString ®ion);
252 Q_REQUIRED_RESULT
QString region() const;
262 void setPostalCode(const
QString &code);
267 Q_REQUIRED_RESULT
QString postalCode() const;
272 static
QString postalCodeLabel();
277 void setCountry(const
QString &country);
282 Q_REQUIRED_RESULT
QString country() const;
294 void setLabel(const
QString &label);
299 Q_REQUIRED_RESULT
QString label() const;
319 Q_REQUIRED_RESULT
QString toString() const;
344 void setGeo(const
Geo &geo);
349 Q_REQUIRED_RESULT
Geo geo() const;
357 Q_REQUIRED_RESULT
QUrl geoUri() const;
360 KCONTACTS_NO_EXPORT
QString formattedPostalAddress() const;
Everything that needs to go in to the KContacts Q_NAMESPACE meta object.
AddressFormatStyle
Address formatting styles.
@ Postal
Format used for addressing postal mail.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.