KContacts::AddressFormatElement Class

class KContacts::AddressFormatElement

A single element in an address format. More...

Header: #include <KContacts/AddressFormat>
CMake: find_package(KF6 REQUIRED COMPONENTS Contacts)
target_link_libraries(mytarget PRIVATE KF6::Contacts)
Since: 5.92

Properties

Public Functions

AddressFormatElement()
KContacts::AddressFormatField field() const
bool isField() const
bool isLiteral() const
bool isSeparator() const
QString literal() const

Detailed Description

A format element can be one of three types:

  • a field from the address data
  • a literal string
  • a separator

See also KContacts::AddressFormat.

Property Documentation

[read-only] field : const KContacts::AddressFormatField

Access functions:

KContacts::AddressFormatField field() const

[read-only] isField : const bool

Access functions:

bool isField() const

[read-only] isLiteral : const bool

Access functions:

bool isLiteral() const

[read-only] isSeparator : const bool

Access functions:

bool isSeparator() const

[read-only] literal : const QString

Access functions:

QString literal() const

Member Function Documentation

[explicit] AddressFormatElement::AddressFormatElement()