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

voidCancelFill()

ConstructL()

voidConstructL()[private]

2nd phase constructor

Since
Series 60 3.2

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

voidConvertToURI(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 & aDeviceUidthe UID of the device, in string form
const CUpnpObjectLite & aItembrowsed UPnP item to be converted
TDes & aBufferthe buffer for result URI

DoComplete()

voidDoComplete()

Completes the filler, resulting it to be deleted

FillItemMpxPlaylistL(CMPXMediaArray &, const CUpnpObjectLite &, TInt)

voidFillItemMpxPlaylistL(CMPXMediaArray &aPlaylist,
const CUpnpObjectLite &aItem,
TIntaIndex
)

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 & aPlaylistthe MPX playlist
const CUpnpObjectLite & aItemthe object to fill
TInt aIndexplaylist index of the item being added

FillL(CUPnPMusicAdapter &, CMPXMediaArray &)

voidFillL(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 &)

voidSetHost(CUPnPMusicAdapter &aHost)

Sets the host for this filler

Parameters

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

SetSelectedIndex(TInt)

IMPORT_C voidSetSelectedIndex(TIntaSelectedIndex)

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 aSelectedIndexindex of the item selected

SetSourceDeviceL(const CUpnpAVDevice &)

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

Parameters

const CUpnpAVDevice & aDevicesource 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