CUPnPAlbumServices Class Reference

class CUPnPAlbumServices : public CBase

A class providing abstract album (image/video) handling services.

upnpmusicadapter.lib
Since
S60 v3.1

Inherits from

Constructor & Destructor Documentation

CUPnPAlbumServices()

CUPnPAlbumServices()[private]

default constructor

~CUPnPAlbumServices()

~CUPnPAlbumServices()[virtual]

desctuctor

Member Functions Documentation

ConstructL()

voidConstructL()[private]

2nd phase constructor

Desc2Id(const TDesC &)

TMPXItemId Desc2Id(const TDesC &aDesc)[private]

Converts an ID from descriptor form to TMPXItemId form. conversion is guaranteed symmetric to Id2Desc()

Parameters

const TDesC & aDescthe id as a descriptor

DoHandleCollectionMessageL(CMPXMessage *)

voidDoHandleCollectionMessageL(CMPXMessage *aMsg)[private]

Locally handles the corresponding callback

Parameters

CMPXMessage * aMsg

HandleCollectionMediaL(const CMPXMedia &, TInt)

voidHandleCollectionMediaL(const CMPXMedia &aMedia,
TIntaError
)

see MMPXCollectionObserver

Parameters

const CMPXMedia & aMedia
TInt aError

HandleCollectionMessage(CMPXMessage *, TInt)

voidHandleCollectionMessage(CMPXMessage *aMsg,
TIntaErr
)

see MMPXCollectionObserver

Parameters

CMPXMessage * aMsg
TInt aErr

HandleOpenL(const CMPXMedia &, TInt, TBool, TInt)

voidHandleOpenL(const CMPXMedia &aEntries,
TIntaIndex,
TBoolaComplete,
TIntaError
)

see MMPXCollectionObserver

Parameters

const CMPXMedia & aEntries
TInt aIndex
TBool aComplete
TInt aError

HandleOpenL(const CMPXCollectionPlaylist &, TInt)

voidHandleOpenL(const CMPXCollectionPlaylist &aPlaylist,
TIntaError
)

see MMPXCollectionObserver

Parameters

const CMPXCollectionPlaylist & aPlaylist
TInt aError

Id2Desc(const TMPXItemId &)

const TDesC &Id2Desc(const TMPXItemId &aId)[private]

Converts an ID from TMPXItemId form to descriptor form. conversion is guaranteed symmetric to Desc2Id()

Parameters

const TMPXItemId & aIdthe id in TMPXItemId form

IsValidAlbumL(const TDesC &)

IMPORT_C TBoolIsValidAlbumL(const TDesC &aAlbumName)

Checks if the given album exists in the library. Note: does not check the existence of the actual media

Parameters

const TDesC & aAlbumNamename of the album

ListAlbumsL(CDesCArray &, CDesCArray &)

IMPORT_C voidListAlbumsL(CDesCArray &aAlbumIds,
CDesCArray &aAlbumNames
)

Lists all albums in the library. Returns a list of albums ID's and a names. ID can be used to open or modify the album.

Parameters

CDesCArray & aAlbumIdsarray to receive album ID's
CDesCArray & aAlbumNamesarray to receive album names

NewL()

IMPORT_C CUPnPAlbumServices *NewL()[static]

Static constructor

OpenAlbumL(const TDesC &, CDesCArray &)

IMPORT_C voidOpenAlbumL(const TDesC &aAlbumId,
CDesCArray &aContentMedia
)

Retrieves contents (image/video) of given album.

Parameters

const TDesC & aAlbumIdID of the album
CDesCArray & aContentMediaarray to receive the content file paths

Member Data Documentation

CDesCArray * iAlbumIds

CDesCArray *iAlbumIds[private]

Array for album ids

CDesCArray * iAlbumNames

CDesCArray *iAlbumNames[private]

Array for album names

MMPXCollectionUtility * iCollectionUtility

MMPXCollectionUtility *iCollectionUtility[private]

Collection utility of MPX framework (Owned)

CMPXMedia * iMedia

CMPXMedia *iMedia[private]

Container media (Owned)

TInt iStatus

TInt iStatus[private]

for async operation

TBuf< KBufferSize > iTempBuffer

TBuf< KBufferSize >iTempBuffer[private]

temp buffer used in Id2Desc

CActiveSchedulerWait * iWait

CActiveSchedulerWait *iWait[private]

Scheduler wait loop (Owned)