CUPnPLiteFiller Class Reference

class CUPnPLiteFiller : public CBase

A base class providing services for filling MPX playlist

upnpmusicadapter.lib
Since
S60 3.2

Inherits from

Constructor & Destructor Documentation

CUPnPLiteFiller()

CUPnPLiteFiller ( ) [protected]

Default constructor

Since
Series 60 3.2

~CUPnPLiteFiller()

IMPORT_C ~CUPnPLiteFiller ( ) [virtual]
Destructor
Since
Series 60 3.2

Member Functions Documentation

CancelFill()

void CancelFill ( )

ConstructL()

void ConstructL ( ) [private]

2nd phase constructor

Since
Series 60 3.2

ConvertToURI(const TDesC &, const CUpnpObjectLite &, TDes &)

void ConvertToURI ( const TDesC & aDeviceUid,
const CUpnpObjectLite & aItem,
TDes & aBuffer
) [private]

Convert UPnP item to playlist item URI string URI string format is upnp:<device_id>*<object_id>

Parameters

const TDesC & aDeviceUid the UID of the device, in string form
const CUpnpObjectLite & aItem browsed UPnP item to be converted
TDes & aBuffer the buffer for result URI

DoComplete()

void DoComplete ( )

Completes the filler, resulting it to be deleted

FillItemMpxPlaylistL(CMPXMediaArray &, const CUpnpObjectLite &, TInt)

void FillItemMpxPlaylistL ( CMPXMediaArray & aPlaylist,
const CUpnpObjectLite & aItem,
TInt aIndex
)

Fills a single item with given index into a mpx playlist. if item is not an audio item, does not fill. Checks current selected index and adjusts it if necessary.

Parameters

CMPXMediaArray & aPlaylist the MPX playlist
const CUpnpObjectLite & aItem the object to fill
TInt aIndex playlist index of the item being added

FillL(CUPnPMusicAdapter &, CMPXMediaArray &)

void FillL ( CUPnPMusicAdapter & aHost,
CMPXMediaArray & aPlaylist
)

Parameters

CUPnPMusicAdapter & aHost
CMPXMediaArray & aPlaylist

Host()

CUPnPMusicAdapter & Host ( ) const

The music adapter that hosts this filler

NewL()

CUPnPLiteFiller * NewL ( ) [static]

1st phase constructor

Since
Series 60 3.2

PlaylistSize()

TInt PlaylistSize ( )

SelectedIndex()

TInt SelectedIndex ( ) const

Index of selected item (where playback should start)

SetHost(CUPnPMusicAdapter &)

void SetHost ( CUPnPMusicAdapter & aHost )

Sets the host for this filler

Parameters

CUPnPMusicAdapter & aHost pointer to the music adapter in which context the filler is running

SetSelectedIndex(TInt)

IMPORT_C void SetSelectedIndex ( TInt aSelectedIndex )

Sets the index (starting from zero = the first inserted item) of selected item. Playback will begin from the selected item. If no item is selected, the first item is selected by default. Note that this method must be called AFTER inserting the objects.

Since
Series 60 3.2

Parameters

TInt aSelectedIndex index of the item selected

SetSourceDeviceL(const CUpnpAVDevice &)

void SetSourceDeviceL ( const CUpnpAVDevice & aDevice )
Set Source media server. Device id is needed for creating uri
Since
Series 60 3.2

Parameters

const CUpnpAVDevice & aDevice source media server

Member Data Documentation

HBufC * iDeviceUid

HBufC * iDeviceUid [private]

Media server device id (Owned)

CUPnPMusicAdapter * iHost

CUPnPMusicAdapter * iHost [private]

The host music adapter in which context the filler is running (not owned)

TInt iSelectedIndex

TInt iSelectedIndex [private]

index of selected item

const CUpnpAVDevice * iSourceDevice

const CUpnpAVDevice * iSourceDevice [private]

The media server we are playing on (not owned)

TBuf< KMaxUriSize > iTempBuf

TBuf < KMaxUriSize > iTempBuf [private]

Temporary buffer for 8->16-bit conversion