class CRemConNowPlayingTargetBase : public CRemConInterfaceBase |
A parent class for CRemConDatabaseAwareNowPlayingTarget and CRemConDatabaseUnawareNowPlayingTarget.
This class is not intended for instantiation. Clients should instead use the appropriate derived class - either CRemConDatabaseAwareNowPlayingTarget or CRemConDatabaseUnawareNowPlayingTarget.
This class is only to be used by classes currently derived from it.
Public Member Functions | |
---|---|
IMPORT_C void | AddToNowPlayingResponse(TInt) |
IMPORT_C void | NowPlayingContentChanged() |
IMPORT_C void | PlayItemResponse(TInt) |
Private Member Functions | |
---|---|
void | AddToOperationQueue(TInt, const TDesC8 &) |
void | DoNextMessage() |
TAny * | GetInterfaceIf(TUid) |
void | MrcibNewMessage(TUint, const TDesC8 &, TRemConMessageSubType) |
TInt | NextMessageCb(TAny *) |
void | ProcessAddToNowPlaying(const TDesC8 &) |
void | ProcessGetStatus() |
void | ProcessGetStatusAndBeginObserving() |
TBool | ProcessNowPlaying(const TDesC8 &, TUint, TUint64 &, TRemConFolderScope &, TUint16 &) |
void | ProcessPlayItem(const TDesC8 &) |
void | SendError(TInt, TUint) |
void | SendNotificationResponse(TRemConMessageSubType) |
void | SendResponse(TUint8, TUint) |
CRemConNowPlayingTargetBase | ( | CRemConInterfaceSelector & | aInterfaceSelector, |
MRemConDatabaseAwareNowPlayingTargetObserver & | aObserver | ||
) | [protected] |
CRemConInterfaceSelector & aInterfaceSelector | |
MRemConDatabaseAwareNowPlayingTargetObserver & aObserver |
CRemConNowPlayingTargetBase | ( | CRemConInterfaceSelector & | aInterfaceSelector, |
MRemConDatabaseUnawareNowPlayingTargetObserver & | aObserver | ||
) | [protected] |
CRemConInterfaceSelector & aInterfaceSelector | |
MRemConDatabaseUnawareNowPlayingTargetObserver & aObserver |
IMPORT_C void | AddToNowPlayingResponse | ( | TInt | aErr | ) |
Sends the response for the request MrcnptoAddToNowPlaying()
The client must call NowPlayingContentChanged() if the content of the now playing list has been changed after the client successfully adds the item to the now playing list and provides the response with KErrNone through this function.
KErrNone if the operation was successful.
KErrInvalidMediaLibraryStateCookie if the client is able to maintain unique UIDs accross the entire virtual filesystem, but the media library state cookie provided does not match the client's state cookie.
KErrInvalidUid if the uid of the item provided does not refer to any valid item.
KErrNowPlayingUidIsADirectory if the uid of the item provided refers to a directory which can not be handled by this media player.
KErrNowPlayingMediaInUse if the item is in use and can not be added to now playing list.
KErrNowPlayingListFull if the now playing list if full and no more items can be added.
System wide error code otherwise.
TInt aErr |
void | AddToOperationQueue | ( | TInt | aOperationId, |
const TDesC8 & | aData | |||
) | [private] |
void | BaseConstructL | ( | ) | [protected, virtual] |
Must be called by concrete types at construction time. Registers the interface with the interface selector.
TAny * | GetInterfaceIf | ( | TUid | aUid | ) | [private, virtual] |
Gets a pointer to a specific interface version.
A pointer to the interface, NULL if not supported.
TUid aUid |
void | MrcibNewMessage | ( | TUint | aOperationId, |
const TDesC8 & | aData, | |||
TRemConMessageSubType | aMsgSubType | |||
) | [private] |
TUint aOperationId | |
const TDesC8 & aData | |
TRemConMessageSubType aMsgSubType |
IMPORT_C void | NowPlayingContentChanged | ( | ) |
Called by the client in the case that the now playing content changed.
IMPORT_C void | PlayItemResponse | ( | TInt | aErr | ) |
Provide a response to the play item command. For database aware clients this would have been called via MrcdanptoPlayItem(). For database unaware client this would have been called via MrcdunptoPlayItem()
The client must call NowPlayingContentChanged() if the content of the now playing list has been changed after the client successfully plays the item and provides the response with KErrNone through this function.
TInt aErr | The result of play item operation.KErrNone if the operation was successful.KErrInvalidMediaLibraryStateCookie if the client is able to maintain unique UIDs accross the entire virtual filesystem, but the media library state cookie provided does not match the client's state cookie.KErrInvalidUid if the uid of the item provided does not refer to any valid item.KErrNowPlayingUidIsADirectory if the uid of the item provided refers to a directory which can not be handled by this media player.KErrNowPlayingMediaInUse if the item is in use and can not be played.System wide error code otherwise. |
void | ProcessAddToNowPlaying | ( | const TDesC8 & | aData | ) | [private] |
const TDesC8 & aData |
TBool | ProcessNowPlaying | ( | const TDesC8 & | aData, |
TUint | aOperationId, | |||
TUint64 & | aItem, | |||
TRemConFolderScope & | aScope, | |||
TUint16 & | aMediaLibraryStateCookie | |||
) | [private] |
const TDesC8 & aData | |
TUint aOperationId | |
TUint64 & aItem | |
TRemConFolderScope & aScope | |
TUint16 & aMediaLibraryStateCookie |
void | ProcessPlayItem | ( | const TDesC8 & | aData | ) | [private] |
const TDesC8 & aData |
void | SendNotificationResponse | ( | TRemConMessageSubType | aMsgSubType | ) | [private] |
TRemConMessageSubType aMsgSubType |
MRemConDatabaseAwareNowPlayingTargetObserver * | iDaObserver | [private] |
MRemConDatabaseUnawareNowPlayingTargetObserver * | iDuObserver | [private] |