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()
voidCancelFill()
voidFillL(CUPnPMusicAdapter &, CMPXMediaArray &)
IMPORT_C CUPnPBrowsePlaylistFiller *NewL(const TDesC8 &, TInt, TInt)
TInt PlaylistSize()
Protected Member Functions
voidBrowseResponse(const TDesC8 &, TInt, TInt, TInt, const TDesC8 &)
voidCreateContainerResponse(TInt, const TDesC8 &)
voidDeleteObjectResponse(TInt)
voidHandlePeriod()
voidMediaServerDisappeared(TUPnPDeviceDisconnectedReason)
voidReserveLocalMSServicesCompleted(TInt)
voidSearchCapabilitiesResponse(TInt, const TDesC8 &)
voidSearchResponse(const TDesC8 &, TInt, TInt, TInt, const TDesC8 &)
Private Member Functions
CUPnPBrowsePlaylistFiller()
voidAddMediaToCollectionL(const TDesC8 &)
voidConstructL(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 &)

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

voidBrowseResponse(const TDesC8 &aBrowseResponse,
TIntaError,
TIntaMatches,
TIntaTotalCount,
const TDesC8 &aUpdateId
)[protected]

Parameters

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

CancelFill()

voidCancelFill()

Cancels an ongoing Fill operation.

ConstructL(const TDesC8 &, TInt, TInt)

voidConstructL(const TDesC8 &aContainerId,
TIntaCachedStartIndex,
TIntaTotalContainerSize
)[private]

2nd phase constructor

Since
Series 60 3.1

Parameters

const TDesC8 & aContainerIdthe container where to browse
TInt aCachedStartIndexcontainer index of first pre-cached item
TInt aTotalContainerSizetotal number of items in this container

CreateContainerResponse(TInt, const TDesC8 &)

voidCreateContainerResponse(TIntaError,
const TDesC8 &aObjectId
)[protected]

Parameters

TInt aError
const TDesC8 & aObjectId

DeleteObjectResponse(TInt)

voidDeleteObjectResponse(TIntaError)[protected]

Parameters

TInt aError

FillL(CUPnPMusicAdapter &, CMPXMediaArray &)

voidFillL(CUPnPMusicAdapter &aHost,
CMPXMediaArray &aPlaylist
)

Fill track data into the playlist and continue browsing

Since
Series 60 3.1

Parameters

CUPnPMusicAdapter & aHostthe host adapter in which context the filler operates
CMPXMediaArray & aPlaylistplaylist to be filled

HandlePeriod()

voidHandlePeriod()[protected]

MediaServerDisappeared(TUPnPDeviceDisconnectedReason)

voidMediaServerDisappeared(TUPnPDeviceDisconnectedReasonaReason)[protected]

Parameters

TUPnPDeviceDisconnectedReason aReason

NewL(const TDesC8 &, TInt, TInt)

IMPORT_C CUPnPBrowsePlaylistFiller *NewL(const TDesC8 &aContainerId,
TIntaCachedStartIndex,
TIntaTotalContainerSize
)[static]

1st phase constructor

Since
Series 60 3.1

Parameters

const TDesC8 & aContainerIdthe container where to play
TInt aCachedStartIndexcontainer index of first pre-cached item
TInt aTotalContainerSizetotal 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)

voidReserveLocalMSServicesCompleted(TIntaError)[protected]

Parameters

TInt aError

SearchCapabilitiesResponse(TInt, const TDesC8 &)

voidSearchCapabilitiesResponse(TIntaError,
const TDesC8 &aSearchCapabilities
)[protected]

Parameters

TInt aError
const TDesC8 & aSearchCapabilities

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

voidSearchResponse(const TDesC8 &aSearchResponse,
TIntaError,
TIntaMatches,
TIntaTotalCount,
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