KContacts
address.cpp
385 str += QStringLiteral(" IsEmpty: %1\n").arg(d->mEmpty ? QStringLiteral("true") : QStringLiteral("false"));
402QString Address::formatted(AddressFormatStyle style, const QString &realName, const QString &orgaName) const
404 const auto formatPref = (orgaName.isEmpty() || style != AddressFormatStyle::Postal) ? AddressFormatPreference::Generic : AddressFormatPreference::Business;
420 url.setPath(QString::number(geo().latitude()) + QLatin1Char(',') + QString::number(geo().longitude()));
static KContacts::AddressFormat formatForAddress(const Address &address, AddressFormatPreference formatPref=AddressFormatPreference::Generic)
Look up format data for a given address.
Definition addressformat.cpp:140
static QString labelLabel()
Returns the translated label for delivery label field.
Definition address.cpp:334
static QString streetLabel()
Returns the translated label for street field.
Definition address.cpp:254
static QString countryLabel()
Returns the translated label for country field.
Definition address.cpp:318
void setStreet(const QString &street)
Sets the street (including house number).
Definition address.cpp:243
static QString regionLabel()
Returns the translated label for region field.
Definition address.cpp:286
void setPostOfficeBox(const QString &postOfficeBox)
Sets the post office box.
Definition address.cpp:211
Q_INVOKABLE QString formatted(KContacts::AddressFormatStyle style, const QString &realName=QString(), const QString &orgaName=QString()) const
Returns this address formatted according to the country-specific address formatting rules.
Definition address.cpp:402
void setExtended(const QString &extended)
Sets the extended address information.
Definition address.cpp:227
static QString postalCodeLabel()
Returns the translated label for postal code field.
Definition address.cpp:302
static QString postOfficeBoxLabel()
Returns the translated label for post office box field.
Definition address.cpp:222
static QString extendedLabel()
Returns the translated label for extended field.
Definition address.cpp:238
static QString localityLabel()
Returns the translated label for locality field.
Definition address.cpp:270
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
KCOREADDONS_EXPORT QString randomString(int length)
bool isEmpty() const const
QString & append(QChar ch)
QString arg(Args &&... args) const const
bool isEmpty() const const
QString number(double n, char format, int precision)
QString & remove(QChar ch, Qt::CaseSensitivity cs)
void setPath(const QString &path, ParsingMode mode)
void setQuery(const QString &query, ParsingMode mode)
void setScheme(const QString &scheme)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.