QTAtomReader Class Reference

#include <QTAtomReader.h>

Public Member Functions

 QTAtomReader ()
 
virtual ~QTAtomReader ()
 
nsresult Open (nsIFile *aFile)
 
void Close (void)
 
nsresult GetFairPlayUserID (PRUint32 *aUserID)
 
nsresult GetFairPlayAccountName (nsAString &aAccountName)
 
nsresult GetFairPlayUserName (nsAString &aUserName)
 
nsresult GetIEKInfoUserIDs (nsTArray< PRUint32 > &aUserIDList)
 
nsresult AtomPathGet (const char *aAtomPath, void *aAtom, PRUint64 *aStartOffset, PRUint64 *aEndOffset)
 

Detailed Description

This class may be used to read QuickTime atoms within a file.

Definition at line 72 of file QTAtomReader.h.

Constructor & Destructor Documentation

QTAtomReader::QTAtomReader ( )

Construct a QuickTime atom reader object.

Definition at line 56 of file QTAtomReader.cpp.

QTAtomReader::~QTAtomReader ( )
virtual

Destroy a QuickTime atom reader object.

Definition at line 66 of file QTAtomReader.cpp.

Member Function Documentation

nsresult QTAtomReader::AtomPathGet ( const char *  aAtomPath,
void *  aAtom,
PRUint64 *  aStartOffset,
PRUint64 *  aEndOffset 
)

Search the QuickTime atom reader file for an atom with the path specified by aAtomPath. Start the search at the file offset specified by aStartOffset and continue up to the offset specified by aEndOffset. If the atom is found, return its header in aAtom and update aStartOffset with the starting offset of the atom header and aEndOffset with the end offset of the atom. If the atom is not found, return NS_ERROR_FAILURE.

Parameters
aAtomPathPath to requested atom.
aAtomRequested atom.
aStartOffsetFile offset from which to start searching.
aEndOffsetFile offset from which to stop searching.

Definition at line 387 of file QTAtomReader.cpp.

Here is the caller graph for this function:

void QTAtomReader::Close ( void  )

Close the file being read by the QuickTime atom reader.

Definition at line 111 of file QTAtomReader.cpp.

nsresult QTAtomReader::GetFairPlayAccountName ( nsAString &  aAccountName)

Search the open QuickTime atom reader file for a FairPlay account name atom and return the value in aAccountName. If no FairPlay account name is present, return NS_ERROR_FAILURE and do not modify aAccountName.

Parameters
aAccountNameFairPlay account name.

Definition at line 129 of file QTAtomReader.cpp.

Here is the call graph for this function:

nsresult QTAtomReader::GetFairPlayUserID ( PRUint32 *  aUserID)

Search the open QuickTime atom reader file for a FairPlay user ID atom and return the value in aUserID. If no FairPlay user ID is present, return NS_ERROR_FAILURE and do not modify aUserID.

Parameters
aUserIDFairPlay user ID.

Definition at line 257 of file QTAtomReader.cpp.

Here is the call graph for this function:

nsresult QTAtomReader::GetFairPlayUserName ( nsAString &  aUserName)

Search the open QuickTime atom reader file for a FairPlay user name atom and return the value in aUserName. If no FairPlay user name is present, return NS_ERROR_FAILURE and do not modify aUserName.

Parameters
aUserNameFairPlay user name.

Definition at line 189 of file QTAtomReader.cpp.

Here is the call graph for this function:

nsresult QTAtomReader::GetIEKInfoUserIDs ( nsTArray< PRUint32 > &  aUserIDList)

Search the open iPod iEKInfo file for all FairPlay user ID atoms and return their values in aUserIDList.

Parameters
aUserIDListList of FairPlay user IDs.

Definition at line 321 of file QTAtomReader.cpp.

Here is the call graph for this function:

nsresult QTAtomReader::Open ( nsIFile *  aFile)

Open the file specified by aFile for reading by the QuickTime atom reader.

Parameters
aFileFile to open.

Definition at line 78 of file QTAtomReader.cpp.


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