sbTranscodeProfileLoader Class Reference

#include <sbTranscodeProfileLoader.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBITRANSCODEPROFILELOADER
NS_DECL_NSIRUNNABLE 
sbTranscodeProfileLoader ()
 
- Public Member Functions inherited from sbITranscodeProfileLoader
sbITranscodeProfile loadProfile (in nsIFile aFile)
 

Protected Types

enum  ContainerType_t { CONTAINER_GENERIC, CONTAINER_AUDIO, CONTAINER_VIDEO }
 

Protected Member Functions

nsresult LoadProfileInternal ()
 
nsresult GetType (nsIDOMNode *aTypeNode, PRUint32 *_retval)
 
nsresult ProcessProperty (nsIDOMElement *aPropertyElement, sbITranscodeProfileProperty **_retval)
 
nsresult ProcessAttribute (nsIDOMElement *aAttributeElement, sbITranscodeProfileAttribute **_retval)
 
nsresult ProcessContainer (sbTranscodeProfile *aProfile, ContainerType_t aContainerType, nsIDOMElement *aContainer)
 

Protected Attributes

nsCOMPtr< nsIFile > mFile
 
nsRefPtr< sbTranscodeProfilemProfile
 
nsresult mResult
 

Detailed Description

Definition at line 45 of file sbTranscodeProfileLoader.h.

Member Enumeration Documentation

Enumerator
CONTAINER_GENERIC 
CONTAINER_AUDIO 
CONTAINER_VIDEO 

Definition at line 59 of file sbTranscodeProfileLoader.h.

Constructor & Destructor Documentation

sbTranscodeProfileLoader::sbTranscodeProfileLoader ( )

Definition at line 56 of file sbTranscodeProfileLoader.cpp.

Member Function Documentation

nsresult sbTranscodeProfileLoader::GetType ( nsIDOMNode *  aTypeNode,
PRUint32 *  _retval 
)
protected

Get the transcode type specified in the XML node

Parameters
[in]aTypeNodethe DOM node with the type data
Returns
the type constant
See Also
sbITranscodeProfile::TRANSCODE_TYPE_*

Definition at line 251 of file sbTranscodeProfileLoader.cpp.

Here is the caller graph for this function:

nsresult sbTranscodeProfileLoader::LoadProfileInternal ( )
protected

Internal main-thread only implementation of LoadProfile

Parameters
[in]mFilethe file to load the profile from
[out]mProfilethe profile loaded

Definition at line 113 of file sbTranscodeProfileLoader.cpp.

Here is the call graph for this function:

nsresult sbTranscodeProfileLoader::ProcessAttribute ( nsIDOMElement *  aAttributeElement,
sbITranscodeProfileAttribute **  _retval 
)
protected

Process the given attribute node and fill out the attribute data

Parameters
[in]aPropertyElementthe XML element with attribute data to read
Returns
the parsed transcode attribute

Definition at line 278 of file sbTranscodeProfileLoader.cpp.

Here is the caller graph for this function:

nsresult sbTranscodeProfileLoader::ProcessContainer ( sbTranscodeProfile aProfile,
ContainerType_t  aContainerType,
nsIDOMElement *  aContainer 
)
protected

Process the container element and set the properties on the given profile

Parameters
[in]aProfilethe transcode profile to modify
[in]aContainerTypethe type of the container
[out]aContainerthe container XML element to parse

Definition at line 428 of file sbTranscodeProfileLoader.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbTranscodeProfileLoader::ProcessProperty ( nsIDOMElement *  aPropertyElement,
sbITranscodeProfileProperty **  _retval 
)
protected

Process the given property node and fill out the property data

Parameters
[in]aPropertyElementthe XML element with property data to read
Returns
the parsed transcode property

Definition at line 331 of file sbTranscodeProfileLoader.cpp.

Here is the caller graph for this function:

Member Data Documentation

nsCOMPtr<nsIFile> sbTranscodeProfileLoader::mFile
protected

The file to process Used a parameter for LoadProfileInternal

Definition at line 107 of file sbTranscodeProfileLoader.h.

nsRefPtr<sbTranscodeProfile> sbTranscodeProfileLoader::mProfile
protected

The transcode profile to output Used as a return value for LoadProfileInternal

Definition at line 113 of file sbTranscodeProfileLoader.h.

nsresult sbTranscodeProfileLoader::mResult
protected

The XPCOM result of LoadProfileInternal

Definition at line 118 of file sbTranscodeProfileLoader.h.


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