CUPnPPlayListFiller Class Reference
class CUPnPPlayListFiller : public CBase |
A base class providing services for filling MPX playlist
upnpmusicadapter.lib
- Since
- S60 v3.1
Constructor & Destructor Documentation
CUPnPPlayListFiller()
CUPnPPlayListFiller | ( | ) | [protected] |
~CUPnPPlayListFiller()
IMPORT_C | ~CUPnPPlayListFiller | ( | ) | [virtual] |
Member Functions Documentation
CancelFill()
Cancels an ongoing Fill operation.
ConvertToURI(const TDesC &, const CUpnpObject &, TDes &)
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 CUpnpObject & aItem | browsed UPnP item to be converted |
TDes & aBuffer | the buffer for result URI |
DoComplete()
void | DoComplete | ( | ) | [protected] |
Completes the filler, resulting it to be deleted
DoFillL(CMPXMediaArray &, const RPointerArray< CUpnpObject > &, TInt)
Fills the initial items into the playlist
DoFillObjectL(CMPXMediaArray &, const CUpnpObject &, TInt)
Fills a single object with given index into a playlist. if item is not an audio item, does not fill. Checks current selected index and adjusts it if necessary.
FillL(CUPnPMusicAdapter &, CMPXMediaArray &)
Fill track data into the playlist. Calling method will fulfill the purpose of this object, and therefore this object will be deleted.
Host()
The music adapter that hosts this filler
InsertObjectL(const CUpnpAVDevice &, const CUpnpObject &)
Inserts an initial object to be filled in the playlist should be called after construction, but before use. Note that the class refers to the object, so it should be persistent in memory when Fill() is called.
ObjectArray()
Returns a non-modifiable reference to the object array
PlaylistSize()
Size for which the playlist is to be created. Default implementation returns number of items added in the cache.
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 |
SourceDevice()
The source device for the playlist
Member Data Documentation
HBufC * iDeviceUid
HBufC * | iDeviceUid | [private] |
Media server device id Own
CUPnPMusicAdapter * iHost
The host music adapter in which context the filler is running (not owned)
RPointerArray< CUpnpObject > iItemList
The initial set of items that we are about to set into the playlist Note: NO OWNERSHIP ON THE CONTENT
TInt
iSelectedIndex
TInt
| iSelectedIndex | [private] |
const CUpnpAVDevice * iSourceDevice
The media server we are playing on
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.