QtMobility Reference Documentation

QContactGender Class Reference

The QContactGender class contains the gender of a contact. More...

 #include <QContactGender>

Inherits: QContactDetail.

This class was introduced in Qt Mobility 1.0.

Public Functions

QString gender () const
void setGender ( const QString & gender )

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldGender
const QLatin1Constant GenderFemale
const QLatin1Constant GenderMale
const QLatin1Constant GenderUnspecified

Detailed Description

The QContactGender class contains the gender of a contact.

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

Member Function Documentation

QString QContactGender::gender () const

Returns the gender of the contact, as stored in this detail. The possible values for the value stored are "Male", "Female" and "Unspecified".

This function was introduced in Qt Mobility 1.0.

See also setGender().

void QContactGender::setGender ( const QString & gender )

Sets the gender of the contact (as stored in this detail) to gender, if gender is either "Male" or "Female", otherwise sets it to "Unspecified".

This function was introduced in Qt Mobility 1.0.

See also gender().

Member Variable Documentation

const QLatin1Constant QContactGender::DefinitionName

The string constant for the definition name of QContactGender details.

const QLatin1Constant QContactGender::FieldGender

The field key constant for the value containing the gender.

See also gender() and setGender().

const QLatin1Constant QContactGender::GenderFemale

The value that identifies this contact as being female.

const QLatin1Constant QContactGender::GenderMale

The value that identifies this contact as being male.

const QLatin1Constant QContactGender::GenderUnspecified

The value that identifies this contact as being of unspecified gender.

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.