KContacts::AddressFormatRepository
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.
- Since
- 5.92
Definition at line 120 of file addressformat.h.
Member Function Documentation
◆ formatForAddress()
|
static |
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()
|
static |
Look up format data for a country.
- Parameters
-
countryCode ISO 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 Sat Dec 21 2024 17:01:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.