Qt Mobility Reference Documentation

QContactBirthday Class Reference

The QContactBirthday class contains a birthday of a contact. More...

 #include <QContactBirthday>

Inherits QContactDetail.


Public Functions

QDate date () const
QDateTime dateTime () const
void setDate ( const QDate & date )
void setDateTime ( const QDateTime & dateTime )

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldBirthday

Detailed Description

The QContactBirthday class contains a birthday of a contact.


Member Function Documentation

QDate QContactBirthday::date () const

Returns the date of the birthday which is stored in this detail. If the birthday stored is a QDateTime, this returns the date portion.

See also setDate().

QDateTime QContactBirthday::dateTime () const

Returns the date and time of the birthday which is stored in this detail. If the birthday stored is a QDate, this returns a QDateTime with the time set to midnight.

See also setDateTime().

void QContactBirthday::setDate ( const QDate & date )

Sets the date of the birthday which is stored in this detail to date.

See also date().

void QContactBirthday::setDateTime ( const QDateTime & dateTime )

Sets the date and time of the birthday which is stored in this detail to dateTime.

See also dateTime().


Member Variable Documentation

const QLatin1Constant QContactBirthday::DefinitionName

The string constant for the definition name of QContactBirthday details.

const QLatin1Constant QContactBirthday::FieldBirthday

The field key constant for the value containing the birthday date.

This field is either a date, or a date and time. Some managers may support either type, while others may convert the value here to a specific type (either discarding the time if only a date is supported, or by using midnight if a time is not supplied).

See also date(), setDate(), dateTime(), and setDateTime().

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.