MContactPresenceObs Class Reference

class MContactPresenceObs

MContactPresenceObs is an observer interface to receive asynchronous callbacks from MContactPresence methods.

contactpresence.lib
Since
s60 v5.0
Public Member Functions
voidErrorOccured(TInt, TInt)
voidPresenceSubscribeError(const TDesC8 &, TInt)
voidReceiveIconFileL(const TDesC8 &, const TDesC8 &, CFbsBitmap *, CFbsBitmap *)
voidReceiveIconInfoL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
voidReceiveIconInfosL(const TDesC8 &, RPointerArray< MContactPresenceInfo > &, TInt)

Member Functions Documentation

ErrorOccured(TInt, TInt)

voidErrorOccured(TIntaOpId,
TIntaStatus
)[pure virtual]

Error occurred in MContactPresence::GetPresenceIconFileL or in GetPresenceInfoL request.

Parameters

TInt aOpIdOperation ID to identify the operation
TInt aStatusError status

PresenceSubscribeError(const TDesC8 &, TInt)

voidPresenceSubscribeError(const TDesC8 &aPackedLink,
TIntaStatus
)[pure virtual]

Error occurred in MContactPresence::SubscribePresenceInfoL request.

Parameters

const TDesC8 & aPackedLinka packed contact link for phonebook contact
TInt aStatusError status

ReceiveIconFileL(const TDesC8 &, const TDesC8 &, CFbsBitmap *, CFbsBitmap *)

voidReceiveIconFileL(const TDesC8 &aBrandId,
const TDesC8 &aElementId,
CFbsBitmap *aBrandedBitmap,
CFbsBitmap *aMask
)[pure virtual]

Receive Icon File. The request is launched by MContactPresence::GetPresenceIconFileL.

Parameters

const TDesC8 & aBrandIdbranding id to identify branding package
const TDesC8 & aElementIdelement id in branding package
CFbsBitmap * aBrandedBitmapBitmap. Ownership is transferred.
CFbsBitmap * aMaskMask bitmap. Ownership is transferred.

ReceiveIconInfoL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

voidReceiveIconInfoL(const TDesC8 &aPackedLink,
const TDesC8 &aBrandId,
const TDesC8 &aElementId
)[pure virtual]

Receive contact's presence status icon info. The request is launched by MContactPresence::SubscribePresenceInfoL.

Parameters

const TDesC8 & aPackedLinka packed contact link for phonebook contact
const TDesC8 & aBrandIdbranding id to identify branding package. Zero length data means that icon is not available anymore.
const TDesC8 & aElementIdelement id in branding package Zero length data means that icon is not available anymore.

ReceiveIconInfosL(const TDesC8 &, RPointerArray< MContactPresenceInfo > &, TInt)

voidReceiveIconInfosL(const TDesC8 &aPackedLink,
RPointerArray< MContactPresenceInfo > &aInfoArray,
TIntaOpId
)[pure virtual]

Receive contact's presence status icon infos for all services. The request is launched by MContactPresence::GetPresenceInfoL.

Parameters

const TDesC8 & aPackedLinka packed contact link for phonebook contact
RPointerArray< MContactPresenceInfo > & aInfoArrayarray of icon infos, ownership is not transferred
TInt aOpIdOperation ID to identify the operation