sbMetadataHandlerWMA Class Reference

#include <MetadataHandlerWMA.h>

Inheritance diagram for sbMetadataHandlerWMA:
[legend]
Collaboration diagram for sbMetadataHandlerWMA:
[legend]

Protected Member Functions

 ~sbMetadataHandlerWMA ()
 
nsString ReadHeaderValue (IWMHeaderInfo3 *aHeaderInfo, const nsAString &aKey)
 
NS_METHOD CreateWMPMediaItem (const nsAString &aFilePath, IWMPMedia3 **aMedia)
 
NS_METHOD ReadMetadataWMFSDK (const nsAString &aFilePath, PRInt32 *_retval)
 
NS_METHOD ReadMetadataWMP (const nsAString &aFilePath, PRInt32 *_retval)
 
NS_METHOD ReadAlbumArtWMFSDK (const nsAString &aFilePath, nsACString &aMimeType, PRUint32 *aDataLen, PRUint8 **aData)
 
NS_METHOD ReadAlbumArtWMP (const nsAString &aFilePath, nsACString &aMimeType, PRUint32 *aDataLen, PRUint8 **aData)
 
NS_METHOD SetImageDataInternal (PRInt32 aType, const nsAString &aURL, IWMHeaderInfo3 *aHeader, PRBool &aSuccess)
 

Protected Attributes

nsCOMPtr< sbIMutablePropertyArraym_PropertyArray
 
nsCOMPtr< sbIMetadataChannelm_ChannelHandler
 
nsCOMPtr< nsIChannelm_Channel
 
nsString m_FilePath
 
PRBool m_Completed
 

Additional Inherited Members

Detailed Description

Definition at line 58 of file MetadataHandlerWMA.h.

Constructor & Destructor Documentation

sbMetadataHandlerWMA::~sbMetadataHandlerWMA ( )
protected

Definition at line 191 of file MetadataHandlerWMA.cpp.

Member Function Documentation

NS_METHOD sbMetadataHandlerWMA::CreateWMPMediaItem ( const nsAString &  aFilePath,
IWMPMedia3 **  aMedia 
)
protected

Utility function for the WMP metadata reading paths Given a (absolute native) file path, return a IWMPMedia3 that can be used to read metadata

Parameters
aFilePaththe path to the file to read
aMedia[out] the media object

Definition at line 871 of file MetadataHandlerWMA.cpp.

Here is the caller graph for this function:

NS_METHOD sbMetadataHandlerWMA::ReadAlbumArtWMFSDK ( const nsAString &  aFilePath,
nsACString &  aMimeType,
PRUint32 *  aDataLen,
PRUint8 **  aData 
)
protected

Read album art meadata from a file, using the WMFSDK APIs

Parameters
aFilePaththe path of the file to read
aMimeType[out] the mime type of the metadata
aDataLen[out] the length of the image data stream
aData[out] the raw image data

Definition at line 1101 of file MetadataHandlerWMA.cpp.

Here is the call graph for this function:

NS_METHOD sbMetadataHandlerWMA::ReadAlbumArtWMP ( const nsAString &  aFilePath,
nsACString &  aMimeType,
PRUint32 *  aDataLen,
PRUint8 **  aData 
)
protected

Read album art meadata from a file, using the WMP APIs

Parameters
aFilePaththe path of the file to read
aMimeType[out] the mime type of the metadata
aDataLen[out] the length of the image data stream
aData[out] the raw image data

Definition at line 1193 of file MetadataHandlerWMA.cpp.

Here is the call graph for this function:

nsString sbMetadataHandlerWMA::ReadHeaderValue ( IWMHeaderInfo3 *  aHeaderInfo,
const nsAString &  aKey 
)
protected

Read a single string-based metadata (for the WMF API methods)

Parameters
aHeaderInfothe header data to read from
aKeythe (WMF) metadata key name to read
Returns
the value of the metadata found in the file, or a void string if no values are found

Definition at line 728 of file MetadataHandlerWMA.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_METHOD sbMetadataHandlerWMA::ReadMetadataWMFSDK ( const nsAString &  aFilePath,
PRInt32 *  _retval 
)
protected

Read generic metadata from a file, using the WMFSDK APIs

Parameters
aFilePaththe path of the file to read
_retvalthe number of metadata values read
See Also
sbIMetadataHandler::read()

Definition at line 932 of file MetadataHandlerWMA.cpp.

Here is the call graph for this function:

NS_METHOD sbMetadataHandlerWMA::ReadMetadataWMP ( const nsAString &  aFilePath,
PRInt32 *  _retval 
)
protected

Read generic metadata from a file, using the WMP APIs

Parameters
aFilePaththe path of the file to read
_retvalthe number of metadata values read
See Also
sbIMetadataHandler::read()

Definition at line 1006 of file MetadataHandlerWMA.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbMetadataHandlerWMA::SetImageDataInternal ( PRInt32  aType,
const nsAString &  aURL,
IWMHeaderInfo3 *  aHeader,
PRBool &  aSuccess 
)
protected

Internal helper for writing the image data This is used because both SetImageData(0 and Write() may want to do this, but we can't have two IWMMetadataEditor instances open on the same file

Parameters
aTypethe image type
aURLthe url of the image file (must be local file)
aHeadera pre-opened IWMHeaderInfo3 to write to
aSuccess[out] whether data was written
See Also
sbIMetadataHandler::SetImageData

Definition at line 541 of file MetadataHandlerWMA.cpp.

Here is the call graph for this function:

Member Data Documentation

nsCOMPtr<nsIChannel> sbMetadataHandlerWMA::m_Channel
protected

Definition at line 72 of file MetadataHandlerWMA.h.

nsCOMPtr<sbIMetadataChannel> sbMetadataHandlerWMA::m_ChannelHandler
protected

Definition at line 71 of file MetadataHandlerWMA.h.

PRBool sbMetadataHandlerWMA::m_Completed
protected

Definition at line 74 of file MetadataHandlerWMA.h.

nsString sbMetadataHandlerWMA::m_FilePath
protected

Definition at line 73 of file MetadataHandlerWMA.h.

nsCOMPtr<sbIMutablePropertyArray> sbMetadataHandlerWMA::m_PropertyArray
protected

Definition at line 70 of file MetadataHandlerWMA.h.


The documentation for this class was generated from the following files: