CPbkThumbnailManager Class Reference

class CPbkThumbnailManager : public CBase

Phonebook thumbnail manager. Contains operations for attaching, removing and querying thumbnail images connected to Phonebook contacts.

All the Set* operations convert the image to full color (24 bits/pixel) JPEG format and scale it to KPbkPersonalImageSize before connecting the image to a contact. Scaling does not change image's aspect ratio. If the original image is in JPEG format and its size is <=KPbkPersonalImageSize a copy of the original image is stored directly.

MPbkThumbnailOperation MPbkThumbnailGetObserver MPbkThumbnailSetObserver

Inherits from

  • CPbkThumbnailManager

Constructor & Destructor Documentation

CPbkThumbnailManager(CPbkContactEngine &)

CPbkThumbnailManager(CPbkContactEngine &aEngine)[private]

Parameters

CPbkContactEngine & aEngine

~CPbkThumbnailManager()

~CPbkThumbnailManager()

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

GetThumbnailAsyncL(MPbkThumbnailGetObserver &, const CPbkContactItem &)

IMPORT_C MPbkThumbnailOperation *GetThumbnailAsyncL(MPbkThumbnailGetObserver &aObserver,
const CPbkContactItem &aContactItem
)

Gets a thumbnail bitmap from a contact asynchronously.

Parameters

MPbkThumbnailGetObserver & aObserverObserver for this operation.
const CPbkContactItem & aContactItemContact to retrieve the thumbnail from.

GetThumbnailAsyncL(MPbkThumbnailGetObserver &, const CPbkContactItem &, TPbkImageLoadParameters &)

IMPORT_C MPbkThumbnailOperation *GetThumbnailAsyncL(MPbkThumbnailGetObserver &aObserver,
const CPbkContactItem &aContactItem,
TPbkImageLoadParameters &aParams
)

Gets a parameterized thumbnail bitmap from a contact asynchronously.

TPbkImageLoadParameters

Parameters

MPbkThumbnailGetObserver & aObserverObserver for this operation.
const CPbkContactItem & aContactItemContact to retrieve the thumbnail from.
TPbkImageLoadParameters & aParamsParameters for bitmap, see TPbkImageLoadParameters. NOTE: iFrameNumber parameter has no meaning.

GetThumbnailImageAsyncL(MPbkThumbnailGetImageObserver &, const CPbkContactItem &)

IMPORT_C MPbkThumbnailOperation *GetThumbnailImageAsyncL(MPbkThumbnailGetImageObserver &aObserver,
const CPbkContactItem &aContactItem
)

Gets a thumbnail image from a contact asynchronously.

Parameters

MPbkThumbnailGetImageObserver & aObserverObserver for this operation.
const CPbkContactItem & aContactItemContact to retrieve the thumbnail from.

HasThumbnail(const CPbkContactItem &)

IMPORT_C TBoolHasThumbnail(const CPbkContactItem &aContactItem)const

Returns true if aContactItem has a thumbnail image attached to it.

Parameters

const CPbkContactItem & aContactItemContact that is queried for thumbnail.

NewL(CPbkContactEngine &)

IMPORT_C CPbkThumbnailManager *NewL(CPbkContactEngine &aEngine)[static]

Creates and returns a new thumbnail manager.

Parameters

CPbkContactEngine & aEnginePhonebook contact engine

RemoveThumbnail(CPbkContactItem &)

IMPORT_C voidRemoveThumbnail(CPbkContactItem &aContactItem)

Removes any thumbnail image from aContactItem.

Parameters

CPbkContactItem & aContactItemContact whose thumbnail is removed.

SetThumbnailAsyncL(MPbkThumbnailSetObserver &, CPbkContactItem &, const CFbsBitmap &)

IMPORT_C MPbkThumbnailOperation *SetThumbnailAsyncL(MPbkThumbnailSetObserver &aObserver,
CPbkContactItem &aContactItem,
const CFbsBitmap &aBitmap
)

Sets a thumbnail image for a contact asynchronously.

Parameters

MPbkThumbnailSetObserver & aObserverObserver for this operation.
CPbkContactItem & aContactItemContact to set the thumbnail to.
const CFbsBitmap & aBitmapBitmap to set as the thumbnail for aContact.

SetThumbnailAsyncL(MPbkThumbnailSetObserver &, CPbkContactItem &, const TDesC8 &)

IMPORT_C MPbkThumbnailOperation *SetThumbnailAsyncL(MPbkThumbnailSetObserver &aObserver,
CPbkContactItem &aContactItem,
const TDesC8 &aImageBuffer
)

Sets a thumbnail image for a contact asynchronously.

Parameters

MPbkThumbnailSetObserver & aObserverObserver for this operation.
CPbkContactItem & aContactItemContact to set the thumbnail to.
const TDesC8 & aImageBufferImage buffer to set as the thumbnail for aContact.

SetThumbnailAsyncL(MPbkThumbnailSetObserver &, CPbkContactItem &, const TDesC &)

IMPORT_C MPbkThumbnailOperation *SetThumbnailAsyncL(MPbkThumbnailSetObserver &aObserver,
CPbkContactItem &aContactItem,
const TDesC &aFileName
)

Sets a thumbnail image for a contact asynchronously.

Parameters

MPbkThumbnailSetObserver & aObserverObserver for this operation.
CPbkContactItem & aContactItemContact to set the thumbnail to.
const TDesC & aFileNameFile name for a image to set as the thumbnail for aContact.

Member Data Documentation

CPbkContactEngine & iEngine

CPbkContactEngine &iEngine[private]