CMPXCollectionPlaylist Class Reference
class CMPXCollectionPlaylist : public CBase |
Encapsulates a playlist
mpxcollectionutility.lib
Constructor & Destructor Documentation
CMPXCollectionPlaylist(MMPXCollectionPlaylistObserver *)
CMPXCollectionPlaylist | ( | MMPXCollectionPlaylistObserver * | aPlObs | ) | [private] |
C++ default constructor. content not constructed yet, it may be internalized from buffer
Parameters
MMPXCollectionPlaylistObserver * aPlObs | playlist observer |
~CMPXCollectionPlaylist()
IMPORT_C | ~CMPXCollectionPlaylist | ( | ) | [virtual] |
Member Functions Documentation
AutoPlay()
IMPORT_C TBool | AutoPlay | ( | ) | const |
CancelRequest()
IMPORT_C void | CancelRequest | ( | ) | |
Stops any async operations that are currently under way.
ConstructL(const CMPXCollectionPath &)
ConstructL(const CMPXCollectionPlaylist &)
ConstructL(RReadStream &)
ConstructL()
void | ConstructL | ( | ) | [private] |
CopyContentL(const CMPXCollectionPlaylist &)
Copy content from other playlist.
Count()
IMPORT_C TInt | Count | ( | ) | const |
DoHandleCollectionChangeMessageL(CMPXMessage &)
Handle a CMPXCollection message with a change event.
Parameters
CMPXMessage & aMessage | single collection message to handle |
DoHandleCollectionMessageL(CMPXMessage *, TInt)
Handle collection message.
- Since
- S60 3.2.3
-
leave
- IfNull
DoHandleIncompleteOpenL(const CMPXMedia &, TBool)
void | DoHandleIncompleteOpenL | ( | const CMPXMedia & | aMedia, |
| TBool | aComplete |
| ) | [private] |
Do Restore Ordinal for incremental opens.
Parameters
const CMPXMedia & aMedia | media returned from collection |
TBool aComplete | OpenL Completed or not |
DoIncrementalOpenL()
void | DoIncrementalOpenL | ( | ) | [private] |
Handle starting of fetch for incremental algorithm.
EmbeddedPlaylist()
IMPORT_C TBool | EmbeddedPlaylist | ( | ) | const |
Is this playlist launched from embedded mode.
ExternalizeL(RWriteStream &)
HandleCollectionMediaL(const CMPXMedia &, TInt)
void | HandleCollectionMediaL | ( | const CMPXMedia & | aMedia, |
| TInt | aError |
| ) | [private] |
Handle media. From MMPXCollectionObserver / MMPXCollectionMediaObserver.
HandleCollectionMessage(CMPXMessage *, TInt)
Handle collection message. From MMPXCollectionObserver
HandleOpenL(const CMPXMedia &, TInt, TBool, TInt)
Handles the collection entries being opened. Typically called when client has Open()'d a folder. From MMPXCollectionObserver
Parameters
const CMPXMedia & aEntries | collection entries opened |
TInt aIndex | focused entry |
TBool aComplete | ETrue no more entries. EFalse more entries expected |
TInt aError | error code |
HandleOpenL(const CMPXCollectionPlaylist &, TInt)
Handles the item being opened. Typically called when client has Open()'d an item. Client typically responds by 'playing' the item via the playlist From MMPXCollectionObserver
Index()
IMPORT_C TInt | Index | ( | ) | const |
Index to current item in the playlist.
InternalizeL(RReadStream &)
Invalidate()
IMPORT_C void | Invalidate | ( | ) | |
IsSingleItemPlaylist()
IMPORT_C TBool | IsSingleItemPlaylist | ( | ) | |
Levels()
IMPORT_C TInt | Levels | ( | ) | const |
MediaL(const TArray< TMPXAttribute > &, MMPXCollectionMediaObserver &)
IMPORT_C void | MediaL | ( | const TArray< TMPXAttribute > & | aAttrs, |
| MMPXCollectionMediaObserver & | aMediaObs |
| ) | |
Get extended media of current item.
Parameters
const TArray< TMPXAttribute > & aAttrs | attributes requested |
MMPXCollectionMediaObserver & aMediaObs | properties observer |
NewL(const CMPXCollectionPlaylist &, MMPXCollectionPlaylistObserver *)
Parameters
const CMPXCollectionPlaylist & aPlaylist | reference to an existing playlist |
MMPXCollectionPlaylistObserver * aPlObs = NULL | playlist observer |
NewL(const CMPXCollectionPath &, MMPXCollectionPlaylistObserver *)
Parameters
const CMPXCollectionPath & aPath | reference to a collection path |
MMPXCollectionPlaylistObserver * aPlObs = NULL | playlist observer |
NewL(RReadStream &, MMPXCollectionPlaylistObserver *)
Parameters
RReadStream & aStream | reference to a collection path |
MMPXCollectionPlaylistObserver * aPlObs = NULL | playlist observer |
Next(TBool)
Parameters
TBool aIgnoreRepeat = EFalse | ETrue to ignore repeat setting |
NextIndex(TBool, TInt &)
IMPORT_C TBool | NextIndex | ( | TBool | aIgnoreRepeat, |
| TInt & | aPlaylistIndex |
| ) | const |
Gets the next index to play. This method should not change any of the internal index values (const method).
Parameters
TBool aIgnoreRepeat | ETrue to ignore repeat setting |
TInt & aPlaylistIndex | Out Parameter - The next index. KErrNotFound if no valid index.This is the index in the playlist order. |
PathIndex(TInt)
IMPORT_C TInt | PathIndex | ( | TInt | aPlaylistIndex | ) | const |
Gets the path index of the item given it's position in the playlist.
Parameters
TInt aPlaylistIndex | Index of item in the playlist |
PreInitPlugin()
IMPORT_C TBool | PreInitPlugin | ( | ) | const |
Pre-initialize next plugin.
Previous(TBool)
IMPORT_C TBool | Previous | ( | TBool | aIgnoreRepeat = EFalse | ) | |
Parameters
TBool aIgnoreRepeat = EFalse | ETrue to ignore repeat setting |
Remote()
IMPORT_C TBool | Remote | ( | ) | const |
RestoreOrdinalL(const CMPXMedia &, TInt)
void | RestoreOrdinalL | ( | const CMPXMedia & | aEntries, |
| TInt | aIndex |
| ) | [private] |
Restore ordinal after changes.
- Since
- S60 3.2.3
-
leave
- IfNull
Parameters
const CMPXMedia & aEntries | collection entries opened |
TInt aIndex | index of current item |
SetAutoPlay(TBool)
IMPORT_C void | SetAutoPlay | ( | TBool | aAutoPlay | ) | |
SetEmbeddedPlaylist(TBool)
IMPORT_C void | SetEmbeddedPlaylist | ( | TBool | aEmbedded | ) | |
Set or clear the embedded playlist flag.
Parameters
TBool aEmbedded | is this playlist embedded? |
SetL(const CMPXMedia &)
Sets/updates the media for the item provided.
Parameters
const CMPXMedia & aMedia | new value Callback via EMediaChanged message if currently opened |
SetObserver(MMPXCollectionMediaObserver &, MMPXCollectionPlaylistObserver *, MMPXCollectionObserver *)
IMPORT_C void | SetObserver | ( | MMPXCollectionMediaObserver & | aMediaObs, |
| MMPXCollectionPlaylistObserver * | aPlObs = NULL, |
| MMPXCollectionObserver * | aCollectionObs = NULL |
| ) | |
Set a new observer for current request. Used when handling pre-initializing.
Parameters
MMPXCollectionMediaObserver & aMediaObs | properties observer |
MMPXCollectionPlaylistObserver * aPlObs = NULL | playlist observer |
MMPXCollectionObserver * aCollectionObs = NULL | collection observer |
SetPreInitPlugin(TBool)
IMPORT_C void | SetPreInitPlugin | ( | TBool | aPreInitPlugin | ) | |
Set pre-initialize next plugin.
SetRepeatEnabled(TBool)
IMPORT_C void | SetRepeatEnabled | ( | TBool | aEnable | ) | |
Parameters
TBool aEnable | To enable repeat mode or not |
SetRepeatMode(TRepeatMode)
SetShuffleEnabledL(TBool)
IMPORT_C void | SetShuffleEnabledL | ( | TBool | aEnable | ) | |
Parameters
TBool aEnable | To enable shuffle mode or not |
SetShuffleL(TBool, TBool)
IMPORT_C void | SetShuffleL | ( | TBool | aShuffle, |
| TBool | aCurrentToTop |
| ) | |
Turn shuffle mode on/off.
Parameters
TBool aShuffle | new shuffle mode |
TBool aCurrentToTop | move current item to the top |
SetSingleItemPlaylist()
IMPORT_C void | SetSingleItemPlaylist | ( | ) | |
Set single item playlist.
SetToFirst()
IMPORT_C void | SetToFirst | ( | ) | |
SetToIndex(TInt)
IMPORT_C void | SetToIndex | ( | TInt | aIndex | ) | |
Parameters
TInt aIndex | index to goto The index can be -1 for no selection and must be Smaller than the number of items in the playlist |
Shuffle()
IMPORT_C TBool | Shuffle | ( | ) | const |
Member Enumerations Documentation
Enum TRepeatMode
Enumerators
ERepeatOff | |
ERepeatOne | |
ERepeatAll | |
Member Data Documentation
TBool
iAutoPlaylist
TBool
| iAutoPlaylist | [private] |
MMPXCollectionUtility * iColUtil
MMPXCollectionObserver * iCollectionObs
MMPXCollectionObserver * | iCollectionObs | [private] |
CMPXCollectionOpenUtility * iIncOpenUtil
RArray< TInt > iItemIndexes
MMPXCollectionMediaObserver * iMediaObs
MMPXCollectionMediaObserver * | iMediaObs | [private] |
CMPXCollectionPath * iPath
MMPXCollectionPlaylistObserver * iPlObs
MMPXCollectionPlaylistObserver * | iPlObs | [private] |
TBool
iPreInitPlugin
TBool
| iPreInitPlugin | [private] |
TBool
iReopenForChange
TBool
| iReopenForChange | [private] |
TBool
iRepeatEnabled
TBool
| iRepeatEnabled | [private] |
TBool
iShuffleEnabled
TBool
| iShuffleEnabled | [private] |
TBool
iSingleItemPlaylist
TBool
| iSingleItemPlaylist | [private] |
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.