CMPXAlbumArtUtil Class Reference

class CMPXAlbumArtUtil : public CBase

Music Player common utility class

Inherits from

Constructor & Destructor Documentation

CMPXAlbumArtUtil()

CMPXAlbumArtUtil ( ) [private]

C++ constructor

~CMPXAlbumArtUtil()

IMPORT_C ~CMPXAlbumArtUtil ( )

Destuctor

Member Functions Documentation

CancelRequest()

IMPORT_C void CancelRequest ( )
Cancel outstanding asynch requests
Since
S60 3.2.3

ConstructL()

void ConstructL ( ) [private]

Second phase constructor

ExtractAlbumArtL(const CMPXMedia &, MMPXAlbumArtUtilObserver &, const TSize &, TBool, TDisplayMode)

IMPORT_C void ExtractAlbumArtL ( const CMPXMedia & aProp,
MMPXAlbumArtUtilObserver & aObs,
const TSize & aSize,
TBool aLargestFromCache = ETrue,
TDisplayMode aDisplayMode = EColor64K
)

Extract album art data,

Since
S60 3.2.3

Parameters

const CMPXMedia & aProp media property. the media must contain the following attributes: TMPXAttribute( KMPXMediaIdMusic, EMPXMediaMusicAlbumArtFileName ) TMPXAttribute( KMPXMediaIdGeneral, EMPXMediaGeneralUri )
MMPXAlbumArtUtilObserver & aObs callback after the operation completed.
const TSize & aSize The size of the required destination BMP.
TBool aLargestFromCache = ETrue ETrue, get the largest available from image cache, EFalse get the size specified in aSize.
TDisplayMode aDisplayMode = EColor64K the display mode of the destination BMP

ExtractBinaryMetaDataLC(const TDesC &, TMetaDataFieldId)

HBufC8 * ExtractBinaryMetaDataLC ( const TDesC & aFilename,
TMetaDataFieldId aFieldId
) [private]

Extract binary meta data from file

Since
S60 3.2.3

Parameters

const TDesC & aFilename
TMetaDataFieldId aFieldId metadata field id

ExtractThumbnailL(const CMPXMedia *)

void ExtractThumbnailL ( const CMPXMedia * aMedia ) [private]

----------------------------------------------------------------------------- Extract Thumbnail for the current song -----------------------------------------------------------------------------

Parameters

const CMPXMedia * aMedia

NewL()

IMPORT_C CMPXAlbumArtUtil * NewL ( ) [static]

Two phased contructor

ThumbnailPreviewReady(MThumbnailData &, TThumbnailRequestId)

void ThumbnailPreviewReady ( MThumbnailData & aThumbnail,
TThumbnailRequestId aId
)

From MThumbnailManagerObserver Preview thumbnail generation or loading is complete.

Parameters

MThumbnailData & aThumbnail An object representing the resulting thumbnail.
TThumbnailRequestId aId Request ID for the operation

ThumbnailReady(TInt, MThumbnailData &, TThumbnailRequestId)

void ThumbnailReady ( TInt aError,
MThumbnailData & aThumbnail,
TThumbnailRequestId aId
)

From MThumbnailManagerObserver Final thumbnail bitmap generation or loading is complete.

Parameters

TInt aError Error code.
MThumbnailData & aThumbnail An object representing the resulting thumbnail.
TThumbnailRequestId aId Request ID for the operation.

Member Data Documentation

CMPXImageUtil * iArtUtil

CMPXImageUtil * iArtUtil [private]

TDisplayMode iDisplayMode

TDisplayMode iDisplayMode [private]

HBufC * iFilename

HBufC * iFilename [private]

TSize iImageSize

TSize iImageSize [private]

MMPXAlbumArtUtilObserver * iObserver

MMPXAlbumArtUtilObserver * iObserver [private]

TInt iReqId

TInt iReqId [private]

CThumbnailManager * iThumbnailManager

CThumbnailManager * iThumbnailManager [private]