QtMobility Reference Documentation

QContactUrl Class Reference

The QContactUrl class contains a url associated with a contact. More...

 #include <QContactUrl>

Inherits: QContactDetail.

This class was introduced in Qt Mobility 1.0.

Public Functions

void setSubType ( const QString & subType )
void setUrl ( const QString & url )
void setUrl ( const QUrl & url )
QString subType () const
QString url () const

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldSubType
const QLatin1Constant FieldUrl
const QLatin1Constant SubTypeBlog
const QLatin1Constant SubTypeFavourite
const QLatin1Constant SubTypeHomePage

Detailed Description

The QContactUrl class contains a url associated with a contact.

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

Member Function Documentation

void QContactUrl::setSubType ( const QString & subType )

Sets the subtype which this detail implements to be the given subType.

This function was introduced in Qt Mobility 1.0.

See also subType().

void QContactUrl::setUrl ( const QString & url )

Sets the url stored in this detail to url.

This function was introduced in Qt Mobility 1.0.

See also url().

void QContactUrl::setUrl ( const QUrl & url )

Sets the url stored in this detail to the string representation of the given url.

QString QContactUrl::subType () const

Returns the subtype that this detail implements, if defined.

This function was introduced in Qt Mobility 1.0.

See also setSubType().

QString QContactUrl::url () const

Returns the url stored in this detail.

This function was introduced in Qt Mobility 1.0.

See also setUrl().

Member Variable Documentation

const QLatin1Constant QContactUrl::DefinitionName

The string constant for the definition name of QContactUrl details.

const QLatin1Constant QContactUrl::FieldSubType

The field key constant for the field that stores the sub type of a QContactUrl.

See also subType() and setSubType().

const QLatin1Constant QContactUrl::FieldUrl

The field key constant for the value containing the URL.

See also url() and setUrl().

const QLatin1Constant QContactUrl::SubTypeBlog

The predefined string constant for a sub type value, indicating this url refers to one of the contact's blogs.

See also subType() and setSubType().

const QLatin1Constant QContactUrl::SubTypeFavourite

The predefined string constant for a sub type value, indicating this url is one of the contact's favourite URLs (or bookmarks).

See also subType() and setSubType().

const QLatin1Constant QContactUrl::SubTypeHomePage

The predefined string constant for a sub type value, indicating this url is a contact's home page.

See also subType() and setSubType().

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.