CUPnPBrowsePlaylistFiller Class Reference

class CUPnPBrowsePlaylistFiller : public CUPnPPlayListFiller

This class continues browse made in browse dialog and places the items in an MPX playlist.

upnpmusicadapter.lib
Since
S60 v3.1

Inherits from

Public Member Functions
~CUPnPBrowsePlaylistFiller ()
void CancelFill ()
void FillL ( CUPnPMusicAdapter &, CMPXMediaArray &)
IMPORT_C CUPnPBrowsePlaylistFiller * NewL (const TDesC8 &, TInt , TInt )
TInt PlaylistSize ()
Protected Member Functions
void BrowseResponse (const TDesC8 &, TInt , TInt , TInt , const TDesC8 &)
void CreateContainerResponse ( TInt , const TDesC8 &)
void DeleteObjectResponse ( TInt )
void HandlePeriod ()
void MediaServerDisappeared (TUPnPDeviceDisconnectedReason)
void ReserveLocalMSServicesCompleted ( TInt )
void SearchCapabilitiesResponse ( TInt , const TDesC8 &)
void SearchResponse (const TDesC8 &, TInt , TInt , TInt , const TDesC8 &)
Private Member Functions
CUPnPBrowsePlaylistFiller ()
void AddMediaToCollectionL (const TDesC8 &)
void ConstructL (const TDesC8 &, TInt , TInt )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CUPnPPlayListFiller::CUPnPPlayListFiller()
CUPnPPlayListFiller::ConvertToURI(const TDesC &,const CUpnpObject &,TDes &)
CUPnPPlayListFiller::DoComplete()
CUPnPPlayListFiller::DoFillL(CMPXMediaArray &,const RPointerArray< CUpnpObject > &,TInt)
CUPnPPlayListFiller::DoFillObjectL(CMPXMediaArray &,const CUpnpObject &,TInt)
CUPnPPlayListFiller::Host()const
CUPnPPlayListFiller::InsertObjectL(const CUpnpAVDevice &,const CUpnpObject &)
CUPnPPlayListFiller::NewL()
CUPnPPlayListFiller::ObjectArray()
CUPnPPlayListFiller::SelectedIndex()const
CUPnPPlayListFiller::SetHost(CUPnPMusicAdapter &)
CUPnPPlayListFiller::SetSelectedIndex(TInt)
CUPnPPlayListFiller::SourceDevice()
CUPnPPlayListFiller::~CUPnPPlayListFiller()
Private Attributes
TInt iBlocksize
CUPnPBrowseTimer * iBrowseTimer
MUPnPAVBrowsingSession * iBrowsingSession
TInt iCachedStartIndex
HBufC8 * iContainerId
TInt iCurrentIndex
TInt iPlaylistActualSize
TInt iPlaylistInitialSize

Constructor & Destructor Documentation

CUPnPBrowsePlaylistFiller()

CUPnPBrowsePlaylistFiller ( ) [private]

Default constructor

Since
Series 60 3.1

~CUPnPBrowsePlaylistFiller()

IMPORT_C ~CUPnPBrowsePlaylistFiller ( ) [virtual]

Destructor

Since
Series 60 3.1

Member Functions Documentation

AddMediaToCollectionL(const TDesC8 &)

void AddMediaToCollectionL ( const TDesC8 & aBrowseResponse ) [private]

Adds received media to collection

Since
Series 60 3.1

Parameters

const TDesC8 & aBrowseResponse

BrowseResponse(const TDesC8 &, TInt, TInt, TInt, const TDesC8 &)

void BrowseResponse ( const TDesC8 & aBrowseResponse,
TInt aError,
TInt aMatches,
TInt aTotalCount,
const TDesC8 & aUpdateId
) [protected]

Parameters

const TDesC8 & aBrowseResponse
TInt aError
TInt aMatches
TInt aTotalCount
const TDesC8 & aUpdateId

CancelFill()

void CancelFill ( )

Cancels an ongoing Fill operation.

ConstructL(const TDesC8 &, TInt, TInt)

void ConstructL ( const TDesC8 & aContainerId,
TInt aCachedStartIndex,
TInt aTotalContainerSize
) [private]

2nd phase constructor

Since
Series 60 3.1

Parameters

const TDesC8 & aContainerId the container where to browse
TInt aCachedStartIndex container index of first pre-cached item
TInt aTotalContainerSize total number of items in this container

CreateContainerResponse(TInt, const TDesC8 &)

void CreateContainerResponse ( TInt aError,
const TDesC8 & aObjectId
) [protected]

Parameters

TInt aError
const TDesC8 & aObjectId

DeleteObjectResponse(TInt)

void DeleteObjectResponse ( TInt aError ) [protected]

Parameters

TInt aError

FillL(CUPnPMusicAdapter &, CMPXMediaArray &)

void FillL ( CUPnPMusicAdapter & aHost,
CMPXMediaArray & aPlaylist
)

Fill track data into the playlist and continue browsing

Since
Series 60 3.1

Parameters

CUPnPMusicAdapter & aHost the host adapter in which context the filler operates
CMPXMediaArray & aPlaylist playlist to be filled

HandlePeriod()

void HandlePeriod ( ) [protected]

MediaServerDisappeared(TUPnPDeviceDisconnectedReason)

void MediaServerDisappeared ( TUPnPDeviceDisconnectedReason aReason ) [protected]

Parameters

TUPnPDeviceDisconnectedReason aReason

NewL(const TDesC8 &, TInt, TInt)

IMPORT_C CUPnPBrowsePlaylistFiller * NewL ( const TDesC8 & aContainerId,
TInt aCachedStartIndex,
TInt aTotalContainerSize
) [static]

1st phase constructor

Since
Series 60 3.1

Parameters

const TDesC8 & aContainerId the container where to play
TInt aCachedStartIndex container index of first pre-cached item
TInt aTotalContainerSize total number of items in this container

PlaylistSize()

TInt PlaylistSize ( )

Size for which the playlist is to be created. Default implementation returns number of items added in the cache.

ReserveLocalMSServicesCompleted(TInt)

void ReserveLocalMSServicesCompleted ( TInt aError ) [protected]

Parameters

TInt aError

SearchCapabilitiesResponse(TInt, const TDesC8 &)

void SearchCapabilitiesResponse ( TInt aError,
const TDesC8 & aSearchCapabilities
) [protected]

Parameters

TInt aError
const TDesC8 & aSearchCapabilities

SearchResponse(const TDesC8 &, TInt, TInt, TInt, const TDesC8 &)

void SearchResponse ( const TDesC8 & aSearchResponse,
TInt aError,
TInt aMatches,
TInt aTotalCount,
const TDesC8 & aUpdateId
) [protected]

Parameters

const TDesC8 & aSearchResponse
TInt aError
TInt aMatches
TInt aTotalCount
const TDesC8 & aUpdateId

Member Data Documentation

TInt iBlocksize

TInt iBlocksize [private]

Item count to be browsed

CUPnPBrowseTimer * iBrowseTimer

CUPnPBrowseTimer * iBrowseTimer [private]

Timer support Owned.

MUPnPAVBrowsingSession * iBrowsingSession

MUPnPAVBrowsingSession * iBrowsingSession [private]

Browsing session

TInt iCachedStartIndex

TInt iCachedStartIndex [private]

Index of the first item in PlaylistFiller's pre-cached list

HBufC8 * iContainerId

HBufC8 * iContainerId [private]

Container id where to browse

TInt iCurrentIndex

TInt iCurrentIndex [private]

Index of next item to fetch from remote mediaserver

TInt iPlaylistActualSize

TInt iPlaylistActualSize [private]

Playlist size as it items are being dynamically fetched

TInt iPlaylistInitialSize

TInt iPlaylistInitialSize [private]

Estimated playlist size in creation phase