QContactDisplayLabel Class

The QContactDisplayLabel class contains a displayLabel of a contact. More...

Header: #include <QContactDisplayLabel>
Inherits: QContactDetail

Public Types

enum DisplayLabelField { FieldLabel }

Public Functions

QString label() const
void setLabel(const QString & displayLabel)

Static Public Members

const DetailType Type
QContactFilter match(const QString & label)

Detailed Description

The QContactDisplayLabel class contains a displayLabel of a contact.

Member Type Documentation

enum QContactDisplayLabel::DisplayLabelField

This enumeration defines the fields supported by QContactDisplayLabel.

ConstantValueDescription
QContactDisplayLabel::FieldLabel0The value stored in this field contains the displaylabel.

See also label() and setLabel().

Member Function Documentation

QString QContactDisplayLabel::label() const

Returns the displayLabel of the contact which is stored in this detail.

See also setLabel().

[static] QContactFilter QContactDisplayLabel::match(const QString & label)

Returns a filter suitable for finding contacts with a display label containing the specified label.

void QContactDisplayLabel::setLabel(const QString & displayLabel)

Sets the displayLabel of the contact which is stored in this detail to displayLabel. displayLabel can be for example the first name of a contact.

See also label().

Member Variable Documentation

const DetailType QContactDisplayLabel::Type

The enum constant for the type identifier of QContactDisplayLabel details.