MRemConDatabaseAwareNowPlayingTargetObserver Class Reference

class MRemConDatabaseAwareNowPlayingTargetObserver

It is intended for the client which is database aware. Clients must implement this interface in order to instantiate objects of type CRemConDatabaseAwareNowPlayingTarget. This interface passes incoming commands from RemCon to the client.

CRemConDatabaseAwareNowPlayingTarget

Public Member Functions
void MrcdanptoAddToNowPlaying (const TRemConItemUid &, TRemConFolderScope , TUint16 )
void MrcdanptoPlayItem (const TRemConItemUid &, TRemConFolderScope , TUint16 )

Member Functions Documentation

MrcdanptoAddToNowPlaying(const TRemConItemUid &, TRemConFolderScope, TUint16)

void MrcdanptoAddToNowPlaying ( const TRemConItemUid & aItem,
TRemConFolderScope aScope,
TUint16 aMediaLibraryStateCookie
) [pure virtual]

Requests to add an item to now playing list.

CRemConNowPlayingTargetBase::AddToNowPlayingResponse() .

Parameters

const TRemConItemUid & aItem The item requested to play.If it does not refer to any valid item, the client must call CRemConNowPlayingTargetBase::AddToNowPlayingResponse() with the error KErrInvalidUid;If it refers to a directory which can not be handled by this media player, the client must call CRemConNowPlayingTargetBase::AddToNowPlayingResponse() with the error KErrNowPlayingUidIsADirectory;If it is in use and can not be added to now playing list, the client must call CRemConNowPlayingTargetBase::AddToNowPlayingResponse() with the error KErrNowPlayingMediaInUse;
TRemConFolderScope aScope The scope in which the item was requested to play.
TUint16 aMediaLibraryStateCookie The cookie which the remote device believes refers to the current state of the media library. If this does not match the current state according to the client then the client must call CRemConNowPlayingTargetBase::PlayItemResponse() with the error KErrInvalidMediaLibraryStateCookie.

MrcdanptoPlayItem(const TRemConItemUid &, TRemConFolderScope, TUint16)

void MrcdanptoPlayItem ( const TRemConItemUid & aItem,
TRemConFolderScope aScope,
TUint16 aMediaLibraryStateCookie
) [pure virtual]

Parameters

const TRemConItemUid & aItem The item requested to play.If it does not refer to any valid item, the client must call CRemConNowPlayingTargetBase::PlayItemResponse() with the error KErrInvalidUid;If it refers to a directory which can not be handled by this media player, the client must call CRemConNowPlayingTargetBase::PlayItemResponse() with the error KErrNowPlayingUidIsADirectory;If it is in use and can not be played, the client must call CRemConNowPlayingTargetBase::PlayItemResponse() with the error KErrNowPlayingMediaInUse;
TRemConFolderScope aScope The scope in which the item was requested to play.
TUint16 aMediaLibraryStateCookie The cookie which the remote device believes refers to the current state of the media library. If this does not match the current state according to the client then the client must call CRemConNowPlayingTargetBase::PlayItemResponse() with the error KErrInvalidMediaLibraryStateCookie.