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 voidCancelRequest()
Cancel outstanding asynch requests
Since
S60 3.2.3

ConstructL()

voidConstructL()[private]

Second phase constructor

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

IMPORT_C voidExtractAlbumArtL(const CMPXMedia &aProp,
MMPXAlbumArtUtilObserver &aObs,
const TSize &aSize,
TBoolaLargestFromCache = ETrue,
TDisplayModeaDisplayMode = EColor64K
)

Extract album art data,

Since
S60 3.2.3

Parameters

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

ExtractBinaryMetaDataLC(const TDesC &, TMetaDataFieldId)

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

Extract binary meta data from file

Since
S60 3.2.3

Parameters

const TDesC & aFilename
TMetaDataFieldId aFieldIdmetadata field id

ExtractThumbnailL(const CMPXMedia *)

voidExtractThumbnailL(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)

voidThumbnailPreviewReady(MThumbnailData &aThumbnail,
TThumbnailRequestIdaId
)

From MThumbnailManagerObserver Preview thumbnail generation or loading is complete.

Parameters

MThumbnailData & aThumbnailAn object representing the resulting thumbnail.
TThumbnailRequestId aIdRequest ID for the operation

ThumbnailReady(TInt, MThumbnailData &, TThumbnailRequestId)

voidThumbnailReady(TIntaError,
MThumbnailData &aThumbnail,
TThumbnailRequestIdaId
)

From MThumbnailManagerObserver Final thumbnail bitmap generation or loading is complete.

Parameters

TInt aErrorError code.
MThumbnailData & aThumbnailAn object representing the resulting thumbnail.
TThumbnailRequestId aIdRequest 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]