CUPnPLiteFiller Class Reference
class CUPnPLiteFiller : public CBase |
A base class providing services for filling MPX playlist
upnpmusicadapter.lib
- Since
- S60 3.2
Constructor & Destructor Documentation
CUPnPLiteFiller()
CUPnPLiteFiller | ( | ) | [protected] |
~CUPnPLiteFiller()
IMPORT_C | ~CUPnPLiteFiller | ( | ) | [virtual] |
Destructor
- Since
- Series 60 3.2
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
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()
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 &)
Host()
The music adapter that hosts this filler
SelectedIndex()
TInt
| SelectedIndex | ( | ) | const |
Index of selected item (where playback should start)
SetHost(CUPnPMusicAdapter &)
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.
Parameters
TInt aSelectedIndex | index of the item selected |
SetSourceDeviceL(const CUpnpAVDevice &)
Set Source media server. Device id is needed for creating uri
- Since
- Series 60 3.2
Member Data Documentation
HBufC * iDeviceUid
HBufC * | iDeviceUid | [private] |
Media server device id (Owned)
CUPnPMusicAdapter * iHost
The host music adapter in which context the filler is running (not owned)
TInt
iSelectedIndex
TInt
| iSelectedIndex | [private] |
const CUpnpAVDevice * iSourceDevice
The media server we are playing on (not owned)
TBuf< KMaxUriSize > iTempBuf
Temporary buffer for 8->16-bit conversion
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.