MMPXHarvesterUtility Class Reference
class MMPXHarvesterUtility |
Harvester Utility
Utility class to the harvester server
mpxharvesterutility.lib
Public Member Functions |
---|
void | AddFileL(const TDesC &, MMPXHarvesterUtilityObserver *) |
TInt
| AddFileL(CMPXMedia *&) |
void | CancelScanL() |
void | CheckForSystemEventsL() |
void | Close() |
void | CloseTransactionL() |
void | DeleteFileL(const TDesC &, MMPXHarvesterUtilityObserver *) |
void | DeleteFilesL(const MDesCArray &, MMPXHarvesterUtilityObserver *) |
void | DeleteFilesL(const MDesCArray &) |
void | DeleteFilesL(const MDesCArray &, TBool) |
void | ExportPlaylistL(const CMPXMedia &, const TDesC &, TInt, MMPXHarvesterUtilityObserver *) |
TInt
| FindCollectionIdL(const TDesC &) |
TInt
| GetColUidForFileL(const TDesC &) |
void | GetMediaForFileL(const TDesC &, MMPXHarvesterUtilityObserver *) |
void | ImportFileL(const TDesC &, MMPXHarvesterUtilityObserver *) |
void | ImportPlaylistL(const TDesC &, MMPXHarvesterUtilityObserver *) |
TBool
| IsPlaylistL(const TDesC &) |
void | OptionalAttributesL(TInt, RArray< TMPXAttribute > &) |
HBufC * | PlaylistFileExtensionLC(TInt) |
void | RecreateDatabasesL() |
void | RemoveAllFilesL() |
TInt
| RemoveFileL(const TDesC &) |
void | RemoveFilesL(const MDesCArray &) |
void | RenameFileL(const TDesC &, const TDesC &, TInt) |
HBufC * | RenameFileLC(const CMPXMedia &) |
void | RequiredAttributesL(TInt, RArray< TMPXAttribute > &) |
void | ScanL() |
void | ShutdownL() |
void | UpdateFileL(CMPXMedia *&) |
Member Functions Documentation
AddFileL(const TDesC &, MMPXHarvesterUtilityObserver *)
Add a single song. This method is asynchronous and will call back via the observer interface.
- Since
- S60 3.0
Note:
S60 metadata utility is REALLY slow, so this has to be async
CancelScanL()
void | CancelScanL | ( | ) | [pure virtual] |
Cancels a scan to refresh the db.
CheckForSystemEventsL()
void | CheckForSystemEventsL | ( | ) | [pure virtual] |
Sends a message to the harvester server to poll for any system events. If there is a sytem event happening, It will notify the rest of the MPX framework. This is used for process start up to query for any on-going events.
Close()
void | Close | ( | ) | [pure virtual] |
Closes the utility and deletes the object.
CloseTransactionL()
void | CloseTransactionL | ( | ) | [inline, virtual] |
Close the transaction. This method is synchronous. Method is not pure virtual for backward compatibility.
DeleteFileL(const TDesC &, MMPXHarvesterUtilityObserver *)
Remove a single song. This Method is asynchronous and will call back to observer interface.
DeleteFilesL(const MDesCArray &, MMPXHarvesterUtilityObserver *)
Remove a list of songs. This method is asynchronous and will call back to observer interface.
DeleteFilesL(const MDesCArray &)
void | DeleteFilesL | ( | const MDesCArray & | aArray | ) | [pure virtual] |
Remove a list of songs. This method is asynchronous and will call back to observer interface.
Parameters
const MDesCArray & aArray | list of songs to remove |
DeleteFilesL(const MDesCArray &, TBool)
void | DeleteFilesL | ( | const MDesCArray & | , |
| TBool | |
| ) | [inline, virtual] |
Remove a list of songs. This method is asynchronous and will call back to observer interface. Method is not pure virtual for backward compatibility.
ExportPlaylistL(const CMPXMedia &, const TDesC &, TInt, MMPXHarvesterUtilityObserver *)
Export a Media property as a playlist (Asynchronous). Note that this utility does not have a task queue, The user can ONLY execute 1 async op at a time! This method is asynchronous and will call back via the observer interface.
FindCollectionIdL(const TDesC &)
TInt
| FindCollectionIdL | ( | const TDesC & | aFile | ) | [pure virtual] |
Finds the collection ID based on a File name.
Parameters
const TDesC & aFile | file name to lookup |
GetColUidForFileL(const TDesC &)
TInt
| GetColUidForFileL | ( | const TDesC & | aFilePath | ) | [pure virtual] |
Get a collection ID for the file.
GetMediaForFileL(const TDesC &, MMPXHarvesterUtilityObserver *)
Get a media object for the file. This method is asynchronous and will call back via the observer interface.
- Since
- S60 3.0
Note:
S60 metadata utility is REALLY slow, so this has to be async
ImportFileL(const TDesC &, MMPXHarvesterUtilityObserver *)
Imports a "file" in general (Async). File is not added to any databases.
ImportPlaylistL(const TDesC &, MMPXHarvesterUtilityObserver *)
Import a playlist from a file (Asynchronous). This method is asynchronous and will call back via the observer interface.
IsPlaylistL(const TDesC &)
TBool
| IsPlaylistL | ( | const TDesC & | aUri | ) | [pure virtual] |
Determines whether the given file is a playlist from available playlist plugins currently in the system. The existence of the file is not part of this validation process.
An unsupported playlist file is tested as EFalse. But after the appropriate playlist plugin has been installed, the client can retest it and ETrue will be returned.
Parameters
const TDesC & aUri | URI of the media to be tested |
OptionalAttributesL(TInt, RArray< TMPXAttribute > &)
Query the optional attributes for tracks for the specified playlist type.
Parameters
TInt aPlaylistType | playlist type for this query |
RArray< TMPXAttribute > & aOptionalAttributes | out parameter, an array of optional attributes of the specified playlist type |
PlaylistFileExtensionLC(TInt)
HBufC * | PlaylistFileExtensionLC | ( | TInt | aPlaylistType | ) | [pure virtual] |
RecreateDatabasesL()
void | RecreateDatabasesL | ( | ) | [pure virtual] |
Recreate all databases (deletes old). Used to handle db corruption by deleting and re-starting.
RemoveAllFilesL()
void | RemoveAllFilesL | ( | ) | [pure virtual] |
Remove all songs from the harvester.
RemoveFileL(const TDesC &)
TInt
| RemoveFileL | ( | const TDesC & | aFilePath | ) | [pure virtual] |
Parameters
const TDesC & aFilePath | path to the song to be removed |
RemoveFilesL(const MDesCArray &)
void | RemoveFilesL | ( | const MDesCArray & | aFilesArray | ) | [pure virtual] |
Parameters
const MDesCArray & aFilesArray | |
RenameFileL(const TDesC &, const TDesC &, TInt)
void | RenameFileL | ( | const TDesC & | aOldUri, |
| const TDesC & | aNewUri, |
| TInt | aCollection |
| ) | [pure virtual] |
Parameters
const TDesC & aOldUri | existing URI |
const TDesC & aNewUri | new URI |
TInt aCollection | collection Id of the collection the file belongs to |
RenameFileLC(const CMPXMedia &)
Rename file for the given media.
RequiredAttributesL(TInt, RArray< TMPXAttribute > &)
Query the required attributes for tracks for the specified playlist type.
Parameters
TInt aPlaylistType | playlist type for this query |
RArray< TMPXAttribute > & aRequiredAttributes | out parameter, an array of required attributes of the specified playlist type |
ScanL()
void | ScanL | ( | ) | [pure virtual] |
Initiates a scan for new files on all drives. All files are added to the collection. Scan results are broadcasted through the collection framework.
ShutdownL()
void | ShutdownL | ( | ) | [pure virtual] |
Shutdown the server.
- Since
- S60 3.0
Note:
test function only!! shuts down the harvester server immediately
UpdateFileL(CMPXMedia *&)
void | UpdateFileL | ( | CMPXMedia *& | aProperty | ) | [pure virtual] |
Update the collection id column in the harvester for a media.
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.