Home · All Classes · All Functions ·

QContactAvatar Class Reference

The QContactAvatar class contains the avatar of a contact. More...

    #include <QContactAvatar>

Inherits QContactDetail.


Public Functions

QString avatar () const
QPixmap pixmap () const
void setAvatar ( const QString & avatar )
bool setPixmap ( const QPixmap & pixmap )
void setSubType ( const QString & subType )
QString subType () const

Public Variables

const char * DefinitionName
const char * FieldAvatar
const char * FieldAvatarPixmap
const char * FieldSubType
const char * SubTypeAudioRingtone
const char * SubTypeImage
const char * SubTypeTexturedMesh
const char * SubTypeVideo
const char * SubTypeVideoRingtone

Additional Inherited Members


Detailed Description

The QContactAvatar class contains the avatar of a contact.


Member Function Documentation

QString QContactAvatar::avatar () const

Returns the location of an avatar file associated with the contact.

See also setAvatar().

QPixmap QContactAvatar::pixmap () const

Returns a thumbnail for a picture associated with this contact.

See also setPixmap().

void QContactAvatar::setAvatar ( const QString & avatar )

Sets the location of an avatar file associated with the contact to avatar.

See also avatar().

bool QContactAvatar::setPixmap ( const QPixmap & pixmap )

Sets the thumbnail of a picture avatar associated with the contact to pixmap. If pixmap is empty, the thumbnail pixmap will be removed.

Returns true if the pixmap could be set, and false otherwise.

See also pixmap().

void QContactAvatar::setSubType ( const QString & subType )

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

See also subType().

QString QContactAvatar::subType () const

Returns the subtype that this detail implements, if defined.

See also setSubType().


Member Variable Documentation

const char * QContactAvatar::DefinitionName

The constant string which identifies the definition of details which are avatars.

const char * QContactAvatar::FieldAvatar

The constant key for which the path the avatar value is stored in details of the QContactAvatar type.

const char * QContactAvatar::FieldAvatarPixmap

The constant key for which the path the avatar value is stored in details of the QContactAvatar type.

const char * QContactAvatar::FieldSubType

The constant key for which the subtypes value is stored in details of the QContactAvatar type.

const char * QContactAvatar::SubTypeAudioRingtone

The constant attribute value which describes the avatar as being an audio ringtone.

const char * QContactAvatar::SubTypeImage

The constant attribute value which describes the avatar as being an image.

const char * QContactAvatar::SubTypeTexturedMesh

The constant attribute value which describes the avatar as being a textured, 3D mesh.

const char * QContactAvatar::SubTypeVideo

The constant attribute value which describes the avatar as being a video.

const char * QContactAvatar::SubTypeVideoRingtone

The constant attribute value which describes the avatar as being a video ringtone.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.0