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 *)
void
|
AddL
|
(
|
CMPXMedia
*
|
aMedia
|
)
|
[pure virtual]
|
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
Parameters
const
TDesC
& aFile
|
path to the file.
|
const
TArray
<
TMPXAttribute
> & aAttrs
|
attributes to return.
|
TMPXGeneralCategory
aItemCat = EMPXSong
|
category of the file either EMPXSong or EMPXPlaylist.
|
GetL(const TDesC &, TMPXGeneralCategory)
const
CMPXMedia
&
|
GetL
|
(
|
const
TDesC
&
|
aFile,
|
|
TMPXGeneralCategory
|
aItemCat = EMPXSong
|
|
)
|
[pure virtual]
|
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)
void
|
RemoveL
|
(
|
const
TDesC
&
|
aFile,
|
|
TMPXGeneralCategory
|
aItemCat = EMPXSong
|
|
)
|
[pure virtual]
|
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
Parameters
const
TDesC
& aFile
|
file to remove.
|
TMPXGeneralCategory
aItemCat = EMPXSong
|
type of the item (optional).
|
RenameL(const TDesC &, const TDesC &, TMPXGeneralCategory)
void
|
RenameL
|
(
|
const
TDesC
&
|
aOldUri,
|
|
const
TDesC
&
|
aNewUri,
|
|
TMPXGeneralCategory
|
aItemCat = EMPXSong
|
|
)
|
[pure virtual]
|
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 *&)
void
|
SetL
|
(
|
CMPXMedia
*&
|
aMedia
|
)
|
[pure virtual]
|
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.