CMPXCollectionMediator Class Reference
class CMPXCollectionMediator : public CBase |
Mediator class to handle Music Player specific requirements ie: files with genre podcast must be stored in podcast db.
mpxcollectionmediator.lib
Constructor & Destructor Documentation
CMPXCollectionMediator(MMPXCollection &, MMPXMediatorObserver *)
Private constructor.
- Since
- S60 v3.2.3
CMPXCollectionMediator()
CMPXCollectionMediator | ( | ) | [private] |
Private constructor.
- Since
- S60 v3.2.3
~CMPXCollectionMediator()
~CMPXCollectionMediator | ( | ) | [virtual] |
Virtual destructor.
- Since
- S60 v3.2.3
Member Functions Documentation
AddItemAsyncL(CMPXMedia *&)
IMPORT_C void | AddItemAsyncL | ( | CMPXMedia *& | aMediaProp | ) | |
Add a media to the collection asynchronously.
-
leave
- KErrArgument leave if not a supported media type
AddItemL(CMPXMedia *&)
IMPORT_C void | AddItemL | ( | CMPXMedia *& | aMediaProp | ) | |
Add a media to the collection. Upon successfull addition, its KMPXMediaGeneralId will be updated.
- Since
- S60 v3.2.3
- leave
- KErrArgument leave if not a supported media type
AddItemL(CMPXMediaArray &)
Add a list of files to the collection db.
- Since
- S60 v3.2.3
- leave
- KErrArgument leave if not a supported media type
CheckItemL(CMPXMedia &)
Static item to check if the collection id is correct. Updates the collection path object to podcast if it is podcast.
- Since
- S60 v3.2.3
ConstructL()
void | ConstructL | ( | ) | [private] |
2nd phase constructor.
- Since
- S60 v3.2.3
DoAddToCollectionL(CMPXMedia *, TUid)
void | DoAddToCollectionL | ( | CMPXMedia * | aMedia, |
| TUid | aCollectionId |
| ) | [private] |
Add a file to the collection.
- Since
- S60 v3.2.3
DoMoveItemL(CMPXMedia *&, TUid)
void | DoMoveItemL | ( | CMPXMedia *& | aMedia, |
| TUid | aNewCollection |
| ) | [private] |
Move a file from one db to another.
- Since
- S60 v3.2.3
Parameters
CMPXMedia *& aMedia | media object. |
TUid aNewCollection | new colection |
DoSetToCollectionL(CMPXMedia *, TUid)
void | DoSetToCollectionL | ( | CMPXMedia * | aMedia, |
| TUid | aCollectionId |
| ) | [private] |
Set a file to the collection.
- Since
- S60 v3.2.3
IsPodcastL(CMPXMedia &)
Is this item recognizable as podcast.
- Since
- S60 v3.2.3
MoveItemL(CMPXMedia *&, TUid, TUid)
IMPORT_C void | MoveItemL | ( | CMPXMedia *& | aMedia, |
| TUid | aOldCollectionId, |
| TUid | aNewCollectionId |
| ) | |
Moves an item from one collection to another. Updates the media properties "genre" to Unknown if moving from podcast -> local audio.
- Since
- S60 v3.2.3
Parameters
CMPXMedia *& aMedia | |
TUid aOldCollectionId | old collection id. |
TUid aNewCollectionId | new collection id |
MoveItemL(CMPXMedia *&, TUid, TUid, MMPXMoveItemObserver *)
IMPORT_C void | MoveItemL | ( | CMPXMedia *& | aMedia, |
| TUid | aOldCollectionId, |
| TUid | aNewCollectionId, |
| MMPXMoveItemObserver * | aObs |
| ) | |
Moves an item from one collection to another. Updates the media properties "genre" to Unknown if moving from podcast -> local audio.
- Since
- S60 v3.2.3
Parameters
CMPXMedia *& aMedia | properties of the object. |
TUid aOldCollectionId | old collection id. |
TUid aNewCollectionId | new collection id. |
MMPXMoveItemObserver * aObs | observer for event |
NewL(MMPXCollection &, MMPXMediatorObserver *)
Two-phased constructor.
- Since
- S60 v3.2.3
NewL()
Two-phased constructor. Only use to execute "CheckItemL" not for adding/moving in collection.
- Since
- S60 v3.2.3
NewLC(MMPXCollection &, MMPXMediatorObserver *)
Two-phased constructor.
- Since
- S60 v3.2.3
SetItemL(CMPXMedia *&)
IMPORT_C void | SetItemL | ( | CMPXMedia *& | aMediaProp | ) | |
Updates the media properties of a file. Used for media objects where the caller does not know the collection for which the item should belong to.
- Since
- S60 v3.2.3
SetItemL(CMPXMediaArray &)
Updates media for a list of items. Used for media objects where the caller does not know the collection for which the item should belong to.
- Since
- S60 v3.2.3
SetItemL(TArray< CMPXMedia * > &, CMPXCollectionPath &, RArray< TInt > &)
Update media for items in the same collection depth. Not implemented.
- Since
- S60 v3.2.3
UpdatePathToPodcastL(CMPXMedia &)
void | UpdatePathToPodcastL | ( | CMPXMedia & | aMedia | ) | [private] |
Change a collection id to the podcast db.
- Since
- S60 v3.2.3
Parameters
CMPXMedia & aMedia | media to update the collection id to podcast |
Member Data Documentation
MMPXCollection * iColUtil
CMPXMoveItemHelper * iMoveHelper
CMPXMoveItemHelper * | iMoveHelper | [private] |
TUid
iMusicCollectionID
TUid
| iMusicCollectionID | [private] |
MMPXMediatorObserver * iObserver
HBufC * iPodCastBuf
HBufC * | iPodCastBuf | [private] |
TUid
iPodCastCollectionID
TUid
| iPodCastCollectionID | [private] |
HBufC * iPodCastEngBuf
HBufC * | iPodCastEngBuf | [private] |
HBufC * iUnknownBuf
HBufC * | iUnknownBuf | [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.