#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) |
This class may be used to read QuickTime atoms within a file.
Definition at line 72 of file QTAtomReader.h.
QTAtomReader::QTAtomReader | ( | ) |
Construct a QuickTime atom reader object.
Definition at line 56 of file QTAtomReader.cpp.
|
virtual |
Destroy a QuickTime atom reader object.
Definition at line 66 of file QTAtomReader.cpp.
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.
aAtomPath | Path to requested atom. |
aAtom | Requested atom. |
aStartOffset | File offset from which to start searching. |
aEndOffset | File offset from which to stop searching. |
Definition at line 387 of file QTAtomReader.cpp.
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.
aAccountName | FairPlay account name. |
Definition at line 129 of file QTAtomReader.cpp.
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.
aUserID | FairPlay user ID. |
Definition at line 257 of file QTAtomReader.cpp.
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.
aUserName | FairPlay user name. |
Definition at line 189 of file QTAtomReader.cpp.
nsresult QTAtomReader::GetIEKInfoUserIDs | ( | nsTArray< PRUint32 > & | aUserIDList | ) |
Search the open iPod iEKInfo file for all FairPlay user ID atoms and return their values in aUserIDList.
aUserIDList | List of FairPlay user IDs. |
Definition at line 321 of file QTAtomReader.cpp.
nsresult QTAtomReader::Open | ( | nsIFile * | aFile | ) |
Open the file specified by aFile for reading by the QuickTime atom reader.
aFile | File to open. |
Definition at line 78 of file QTAtomReader.cpp.