CMPXMetadataExtractor Class Reference
class CMPXMetadataExtractor : public CBase |
Extracts metadata from a file.
mpxfilehandler.lib
Constructor & Destructor Documentation
CMPXMetadataExtractor(RFs &, RApaLsSession &, RPointerArray< CMPXCollectionType > &)
Private Two-Phased constuctor.
- Since
- 3.2.3
~CMPXMetadataExtractor()
~CMPXMetadataExtractor | ( | ) | [virtual] |
Member Functions Documentation
AddMediaAlbumArtL(CMPXMedia &, const TDesC &)
void | AddMediaAlbumArtL | ( | CMPXMedia & | aMedia, |
| const TDesC & | aFile |
| ) | [private] |
Add album art to media object.
- Since
- 5.0
AddTasksL()
Populate task array
- Since
- 9.2
CancelAllThumbnailRequests()
void | CancelAllThumbnailRequests | ( | ) | [private] |
Cancel all outstanding thumbnail requests
- Since
- 9.2
CancelRequest()
IMPORT_C void | CancelRequest | ( | ) | |
Cancel request. This will empty the task array and stop the wait loop. This will cause the
CreateMediaL() to finish more quickly. Also, all outstanding thumbnail requests are cancelled.
- Since
- 9.2
CancelTaskTimer()
void | CancelTaskTimer | ( | ) | [private] |
CancelTimeoutTimer()
void | CancelTimeoutTimer | ( | ) | [private] |
CheckBeforeSendRequest()
void | CheckBeforeSendRequest | ( | ) | [private] |
Check if can send request to TNM or not.
- Since
- 5.0
ConstructL()
void | ConstructL | ( | ) | [private] |
CreateMediaAsyncL(const TDesC &, MMPXMetadataExtractorObserver *, TBool)
CreateMediaL(const TDesC &, CMPXMedia *&, TBool)
IMPORT_C void | CreateMediaL | ( | const TDesC & | aFile, |
| CMPXMedia *& | aNewProperty, |
| TBool | aMetadataOnly = EFalse |
| ) | |
DoCreateMediaL()
void | DoCreateMediaL | ( | ) | [private] |
Create media and set default data.
- Since
- 9.2
ExecuteTaskL()
void | ExecuteTaskL | ( | ) | [private] |
Execute task at index 0.
- Since
- 9.2
ExtractAlbumArtL(CMPXMedia *)
Extract album art from a file and add to thumbnail manager.
- Since
- 5.0
Parameters
CMPXMedia * aMedia | MPX Media object to add album art attribute. |
HandleTaskTimerExpired()
void | HandleTaskTimerExpired | ( | ) | [private] |
Handle task timer expired
- Since
- 9.2
NewL(RFs &, RApaLsSession &, RPointerArray< CMPXCollectionType > &)
SetDefaultL(CMPXMedia &)
void | SetDefaultL | ( | CMPXMedia & | aMediaProp | ) | [private] |
Set default media properties.
- Since
- 3.2.3
Parameters
CMPXMedia & aMediaProp | media properties to update |
SetDrmMediaPropertiesL(const CMetaDataFieldContainer &)
void | SetDrmMediaPropertiesL | ( | const CMetaDataFieldContainer & | aMetaCont | ) | [private] |
Sets drm media properties
- Since
- 9.2
Parameters
const CMetaDataFieldContainer & aMetaCont | |
SetExtMediaPropertiesL()
void | SetExtMediaPropertiesL | ( | ) | [private] |
Sets other media properties not found from metadata util.
- Since
- 3.2.3
SetMediaPropertiesL()
void | SetMediaPropertiesL | ( | ) | [private] |
Function to go through the metadata entries.
- Since
- 3.2.3
StopWaitLoop()
void | StopWaitLoop | ( | ) | [private] |
SupportedContainerTypeL(const TDesC &, TInt)
TInt
| SupportedContainerTypeL | ( | const TDesC & | aFile, |
| TInt | aIndex |
| ) | [private] |
Checks to see if a container type is supported.
- Since
- 3.2.3
Parameters
const TDesC & aFile | file path. |
TInt aIndex | index to the supported types array. |
TaskTimerCallback(TAny *)
TInt
| TaskTimerCallback | ( | TAny * | aPtr | ) | [private, static] |
Callback when the task timer expires.
ThumbnailPreviewReady(MThumbnailData &, TThumbnailRequestId)
Preview thumbnail generation or loading is complete.
- Since
- S60 v5.0
Parameters
MThumbnailData & aThumbnail | An object representing the resulting thumbnail. |
TThumbnailRequestId aId | Request ID for the operation |
ThumbnailReady(TInt, MThumbnailData &, TThumbnailRequestId)
Final thumbnail bitmap generation or loading is complete.
- Since
- S60 v5.0
Parameters
TInt aError | Error code. |
MThumbnailData & aThumbnail | An object representing the resulting thumbnail. |
TThumbnailRequestId aId | Request ID for the operation. |
TimeoutTimerCallback(TAny *)
TInt
| TimeoutTimerCallback | ( | TAny * | aPtr | ) | [private, static] |
Callback when the timer times out.
Member Enumerations Documentation
Enum EMetadataExtractorTasks
Enumerators
ETaskCreateMedia | |
ETaskAddMetadata | |
ETaskAddExtMetadata | |
ETaskAddAlbumArt | |
ETaskCheckBeforeSend | |
Member Data Documentation
RArray< TThumbnailRequestId > iArrayTNRequestId
RArray< EMetadataExtractorTasks > iArrayTasks
TBool
iCancelled
TBool
| iCancelled | [private] |
CMPXDrmMediaUtility * iDrmMediaUtility
CMPXDrmMediaUtility * | iDrmMediaUtility | [private] |
CMPXFileInfoUtility * iFileInfoUtil
CMPXFileInfoUtility * | iFileInfoUtil | [private] |
TInt
iFileOpenError
TInt
| iFileOpenError | [private] |
TBool
iMetadataOnly
TBool
| iMetadataOnly | [private] |
CMetaDataUtility * iMetadataUtility
CMetaDataUtility * | iMetadataUtility | [private] |
MMPXMetadataExtractorObserver * iObs
RPointerArray< CMPXCollectionType > & iSupportedTypes
CThumbnailManager * iTNManager
CThumbnailManager * | iTNManager | [private] |
CActiveSchedulerWait * iTNSyncWait
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.