MMPXCollectionHelper Class Reference
class MMPXCollectionHelper |
Abstract class for collection helper. Use this class to add or remove songs and playlists from Music Player and Podcast app.
mpxcollectionhelper.lib
Member Functions Documentation
AddL(const TDesC &, MMPXCollectionHelperObserver *)
AddL(CMPXMedia *)
Add an item (song or playlist) with some media properties registers with playlists.
- Since
- S60 3.2.3
- leave
- KErrArgument leave if the given media doesn't contain the correct attributes
CleanupDeletedMediasL()
void | CleanupDeletedMediasL | ( | ) | [pure virtual] |
Delete all records that have been marked as deleted.
- Since
- S60 3.2.3
- leave
- KErrNotSupported Virtual Void function that will leave if called and not implemented
Close()
void | Close | ( | ) | [pure virtual] |
Close the helper.
- Since
- S60 3.2.3
FindAllL(CMPXMedia &, const TArray< TMPXAttribute > &)
Generic find function.
- Since
- S60 3.2.3
GetL(const TDesC &, const TArray< TMPXAttribute > &, TMPXGeneralCategory)
Gets the metadata for a file.
- Since
- S60 3.2.3
- leave
- KErrArgument leave if not updating a song or a playlist.
- leave
- KErrNoMemory leave if search array is empty.
- leave
- KErrNotFound leave if array indexcount is 0.
- leave
- KErrCorrupt default case if the above conditions are not satisfied and object is not found
GetL(const TDesC &, TMPXGeneralCategory)
Gets the metadata for a file.
- Since
- S60 3.2.3
- leave
- KErrNotSupported Virtual const function that will leave if called and not implemented
Parameters
const TDesC & aFile | path to the file. |
TMPXGeneralCategory aItemCat = EMPXSong | category of the file either EMPXSong or EMPXPlaylist. |
RemoveAllL()
void | RemoveAllL | ( | ) | [pure virtual] |
Remove all entries from the music, podcast and harvester databases.
- Since
- S60 3.2.3
RemoveL(const TDesC &, TMPXGeneralCategory)
Remove a song, playlist, m3u file from the collection and from the harvester database.
- Since
- S60 3.2.3
- leave
- KErrArgument leave if the file to be removed does not exist
RenameL(const TDesC &, const TDesC &, TMPXGeneralCategory)
Renames a file.
- Since
- S60 3.2.3
- leave
- KErrArgument leave if not updating a song or a playlist
Parameters
const TDesC & aOldUri | existing URI of the file to be renamed. |
const TDesC & aNewUri | new URI of the file. |
TMPXGeneralCategory aItemCat = EMPXSong | category of the file either EMPXSong or EMPXPlaylist. |
SetL(CMPXMedia *&)
Updates the metadata for a file based on the path.
- Since
- S60 3.2.3
- leave
- KErrArgument leave if the given media doesn't contain the correct attributes or leave if not updating a song or a playlist
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.