QtMobility Reference Documentation

QContactTimestamp Class Reference

The QContactTimestamp class contains the creation and last-modified timestamp associated with the contact. More...

 #include <QContactTimestamp>

Inherits: QContactDetail.

This class was introduced in Qt Mobility 1.0.

Public Functions

QDateTime created () const
QDateTime lastModified () const
void setCreated ( const QDateTime & dateTime )
void setLastModified ( const QDateTime & dateTime )

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldCreationTimestamp
const QLatin1Constant FieldModificationTimestamp

Detailed Description

The QContactTimestamp class contains the creation and last-modified timestamp associated with the contact.

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

Member Function Documentation

QDateTime QContactTimestamp::created () const

Returns the creation timestamp saved in this detail.

This function was introduced in Qt Mobility 1.0.

See also setCreated().

QDateTime QContactTimestamp::lastModified () const

Returns the last-modified timestamp saved in this detail.

This function was introduced in Qt Mobility 1.0.

See also setLastModified().

void QContactTimestamp::setCreated ( const QDateTime & dateTime )

Sets the creation timestamp saved in this detail to dateTime.

This function was introduced in Qt Mobility 1.0.

See also created().

void QContactTimestamp::setLastModified ( const QDateTime & dateTime )

Sets the last-modified timestamp saved in this detail to dateTime.

This function was introduced in Qt Mobility 1.0.

See also lastModified().

Member Variable Documentation

const QLatin1Constant QContactTimestamp::DefinitionName

The string constant for the definition name of QContactTimestamp details.

const QLatin1Constant QContactTimestamp::FieldCreationTimestamp

The field key constant for the value of the timestamp a contact was created.

See also created() and setCreated().

const QLatin1Constant QContactTimestamp::FieldModificationTimestamp

The field key constant for the value of the last modified timestamp.

See also lastModified() and setLastModified().

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.