CUPnPMusicAdapter Class Reference
class CUPnPMusicAdapter : public CBase |
A class providing play back services for playing within UPnP framework.
upnpmusicadapter.lib
- Since
- S60 v3.1
Protected Member Functions |
---|
void | HandleCollectionMediaL(const CMPXMedia &, TInt) |
void | HandleCollectionMessage(CMPXMessage *, TInt) |
void | HandleCommandComplete(CMPXCommand *, TInt) |
void | HandleMediaL(const CMPXMedia &, TInt) |
void | HandleOpenL(const CMPXMedia &, TInt, TBool, TInt) |
void | HandleOpenL(const CMPXCollectionPlaylist &, TInt) |
void | HandlePlaybackMessage(CMPXMessage *, TInt) |
void | HandlePropertyL(TMPXPlaybackProperty, TInt, TInt) |
void | HandleSubPlayerNamesL(TUid, const MDesCArray *, TBool, TInt) |
Constructor & Destructor Documentation
CUPnPMusicAdapter(MUPnPAVController &)
~CUPnPMusicAdapter()
IMPORT_C | ~CUPnPMusicAdapter | ( | ) | [virtual] |
Member Functions Documentation
AVController()
The AVController resource (to be used by the fillers)
CollectionUtility()
The MPX CollectionUtility. Accessor for the filler
Complete(MUPnPPlaylistFiller *)
Called when playlist fill has completed. Does not pass ownership.
ConstructL()
void | ConstructL | ( | ) | [private] |
CreatePlayListL()
void | CreatePlayListL | ( | ) | [private] |
Creates play list
- Since
- Series 60 3.1
Dismiss(TInt)
Dismiss the music player UI. The Execute... method will immediately return with the given return code
DisplayUI()
Commands the UI to be shown in UiShowLoop
- Since
- Series 60 3.1
DoHandleCollectionMessageL(TInt, TInt, TInt)
void | DoHandleCollectionMessageL | ( | TInt | aEvent, |
| TInt | aType, |
| TInt | aData |
| ) | [private] |
Locally handles the corresponding callback
DoHandlePlaybackMessageL(TInt, TInt, TInt)
void | DoHandlePlaybackMessageL | ( | TInt | aEvent, |
| TInt | aType, |
| TInt | aData |
| ) | [private] |
Locally handles the corresponding callback
DoHandleSubPlayerNamesL(TUid, const MDesCArray *, TBool, TInt)
void | DoHandleSubPlayerNamesL | ( | TUid | aPlayer, |
| const MDesCArray * | aSubPlayers, |
| TBool | aComplete, |
| TInt | aError |
| ) | [private] |
Locally handles the corresponding callback
Parameters
TUid aPlayer | |
const MDesCArray * aSubPlayers | |
TBool aComplete | |
TInt aError | |
ExecuteMusicInLocalL(CEikAppUi *, CUPnPPlayListFiller *)
Initiates music play in the local device The method will block until music player exits. Music adapter will take ownership of the filler in all conditions.
Parameters
CEikAppUi * aAppUi | the app.ui in case we are displaying a view/dialog |
CUPnPPlayListFiller * aFiller | Object that contains playlist information |
ExecuteMusicInRemoteL(CEikAppUi *, CUPnPPlayListFiller *, const CUpnpAVDevice &)
Initiates music play in a remote renderer. The method will block until music player exits. Music adapter will take ownership of the filler in all conditions.
ExecuteMusicLiteInLocalL(CEikAppUi *, MUPnPPlaylistFiller *)
Initiates music play in the local device The method will block until music player exits. Music adapter will take ownership of the filler in all conditions.
Parameters
CEikAppUi * aAppUi | the app.ui in case we are displaying a view/dialog |
MUPnPPlaylistFiller * aFiller | Object that contains playlist information |
ExecuteMusicLiteInRemoteL(CEikAppUi *, MUPnPPlaylistFiller *, const CUpnpAVDevice &)
Initiates music play in a remote renderer. The method will block until music player exits. Music adapter will take ownership of the filler in all conditions.
Exit(TInt)
void | Exit | ( | TInt | aReturnCode | ) | [private] |
Causes an internal exit
- Since
- Series 60 3.1
Parameters
TInt aReturnCode | the return code for the thread |
HandleCollectionMediaL(const CMPXMedia &, TInt)
void | HandleCollectionMediaL | ( | const CMPXMedia & | aMedia, |
| TInt | aError |
| ) | [protected] |
see MMPXCollectionMediaObserver
HandleCollectionMessage(CMPXMessage *, TInt)
see MMPXCollectionObserver
HandleCommandComplete(CMPXCommand *, TInt)
void | HandleCommandComplete | ( | CMPXCommand * | aCommandResult, |
| TInt | aError |
| ) | [protected] |
HandleMediaL(const CMPXMedia &, TInt)
void | HandleMediaL | ( | const CMPXMedia & | aProperties, |
| TInt | aError |
| ) | [protected] |
HandleOpenL(const CMPXMedia &, TInt, TBool, TInt)
see MMPXCollectionObserver
HandleOpenL(const CMPXCollectionPlaylist &, TInt)
HandlePlaybackMessage(CMPXMessage *, TInt)
HandlePropertyL(TMPXPlaybackProperty, TInt, TInt)
HandleSubPlayerNamesL(TUid, const MDesCArray *, TBool, TInt)
void | HandleSubPlayerNamesL | ( | TUid | aPlayer, |
| const MDesCArray * | aSubPlayers, |
| TBool | aComplete, |
| TInt | aError |
| ) | [protected] |
Parameters
TUid aPlayer | |
const MDesCArray * aSubPlayers | |
TBool aComplete | |
TInt aError | |
InitState()
Initialises the state before execution
NewL(MUPnPAVController &)
PlaylistCollectionId()
TUid
| PlaylistCollectionId | ( | ) | |
The Collection UID used for the playlist. Accessor for the filler
TakeOwnershipOfTheFiller(MUPnPPlaylistFiller *)
Obtains ownership of the filler pointer.
UiShowLoopL()
void | UiShowLoopL | ( | ) | [private] |
A loop to show the UI
- Since
- Series 60 3.1
Member Enumerations Documentation
Enum TAdapterState
Enumerators
EStateIdle = 0 | |
EStatePreparing | |
EStatePreparingWait | |
EStateInitialising | |
EStateRunning | |
EStateClosing | |
Enum TFillerState
Enumerators
EFillerStateIdle = 0 | |
EFillerStateFilling | |
EFillerStateComplete | |
Member Data Documentation
MUPnPAVController & iAVController
CEikAppUi * iAppUi
CEikAppUi * | iAppUi | [private] |
Pointer to host application ui. NO OWNERSHIP
MMPXCollectionUtility * iCollectionUtility
MUPnPPlaylistFiller * iCurrentFiller
The current playlist filler object
TFillerState
iCurrentFillerState
Whether the filler is in working state
CUPnPMpxHelper * iMpxHelper
For playlist creation Own.
MMPXPlaybackUtility * iPlaybackUtility
MMPXPlaybackUtility * | iPlaybackUtility | [private] |
CMPXCollectionPlaylist * iPlaylist
TUid
iPlaylistCollectionId
TUid
| iPlaylistCollectionId | [private] |
Collection ID to use when communicating to MPX
TBool
iRemotePlayer
TBool
| iRemotePlayer | [private] |
Tells are we using remote playback
TInt
iReturnCode
TInt
| iReturnCode | [private] |
const CUpnpAVDevice * iTargetDevice
The renderer device we are rendering on NULL, if rendering locally NO OWNERSHIP
CMPXMediaArray * iTrackArray
The current temp playlist Own.
MMPXViewUtility * iViewUtility
MMPXViewUtility * | iViewUtility | [private] |
CActiveSchedulerWait * iWait
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.