Search for usage in LXR

KContacts::AddressFormatRepository Class Reference

#include <addressformat.h>

Static Public Member Functions

static KContacts::AddressFormat formatForAddress (const Address &address, AddressFormatPreference formatPref=AddressFormatPreference::Generic)
static Q_INVOKABLE KContacts::AddressFormat formatForCountry (const QString &countryCode, KContacts::AddressFormatScriptPreference scriptPref, KContacts::AddressFormatPreference formatPref=AddressFormatPreference::Generic)

Detailed Description

Provides address format information for a given country.


Definition at line 120 of file addressformat.h.

Member Function Documentation

◆ formatForAddress()

AddressFormat AddressFormatRepository::formatForAddress ( const Address & address,
AddressFormatPreference formatPref = AddressFormatPreference::Generic )

Look up format data for a given address.

The preferred script is determined from the script used in the address object. If the address object has no country information set, the local country is assumed.

Definition at line 140 of file addressformat.cpp.

◆ formatForCountry()

AddressFormat AddressFormatRepository::formatForCountry ( const QString & countryCode,
KContacts::AddressFormatScriptPreference scriptPref,
KContacts::AddressFormatPreference formatPref = AddressFormatPreference::Generic )

Look up format data for a country.

countryCodeISO 3166-1 alpha 2 country code.

Definition at line 111 of file addressformat.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:08 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.