QtMobility Reference Documentation

QContactType Class Reference

The QContactType class describes the type of the contact. More...

 #include <QContactType>

Inherits: QContactDetail.

This class was introduced in Qt Mobility 1.0.

Public Functions

void setType ( const QString & type )
QString type () const

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldType
const QLatin1Constant TypeContact
const QLatin1Constant TypeGroup

Detailed Description

The QContactType class describes the type of the contact.

This leaf-class has been part of the default schema since version 1.0 of the Qt Mobility project.

Member Function Documentation

void QContactType::setType ( const QString & type )

Sets the type of the contact to be the give type.

This function was introduced in Qt Mobility 1.0.

See also type().

QString QContactType::type () const

Returns the contact type value stored in this detail.

This function was introduced in Qt Mobility 1.0.

See also setType().

Member Variable Documentation

const QLatin1Constant QContactType::DefinitionName

The string constant for the definition name of QContactType details.

const QLatin1Constant QContactType::FieldType

The field key constant for the type value which is stored in details of the QContactType definition.

const QLatin1Constant QContactType::TypeContact

The predefined string constant for a type value, indicating this contact is an ordinary contact.

See also setType() and type().

const QLatin1Constant QContactType::TypeGroup

The predefined string constant for a type value, indicating this contact is a group contact.

Contacts of this type are able to be the first contact in relationships of the QContactRelationship::HasMember type.

To enumerate the ids of members of a group, the client should retrieve the relationships which involve the group from the manager in which the group is saved.

See also setType() and type().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.