File Class Reference

#include <mp4file.h>

Collaboration diagram for File:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual MP4::PropertiesaudioProperties () const
 File (const char *file, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average, MP4FileHandle handle=MP4_INVALID_FILE_HANDLE)
MP4::TaggetMP4Tag () const
void read (bool readProperties, Properties::ReadStyle propertiesStyle)
virtual bool save ()
virtual TagLib::Tag * tag () const
virtual ~File ()

Protected Member Functions

 File (const File &)
bool isOpen ()
Fileoperator= (const File &)

Protected Attributes

MP4FileHandle mp4file
MP4::Tagmp4tag
MP4::Propertiesproperties

Detailed Description

Definition at line 34 of file mp4file.h.


Constructor & Destructor Documentation

File ( const char *  file,
bool  readProperties = true,
Properties::ReadStyle  propertiesStyle = Properties::Average,
MP4FileHandle  handle = MP4_INVALID_FILE_HANDLE 
)

Contructs a MP4 file from file. If readProperties is true the file's audio properties will also be read using propertiesStyle. If false, propertiesStyle is ignored.

Create the MP4 file.

Definition at line 41 of file mp4file.cpp.

References File::isOpen(), File::mp4file, and File::read().

Here is the call graph for this function:

~File (  )  [virtual]

Destroys this instance of the File.

Definition at line 69 of file mp4file.cpp.

References File::mp4file, File::mp4tag, and File::properties.

File ( const File  )  [protected]


Member Function Documentation

MP4::Properties * audioProperties (  )  const [virtual]

Returns the MP4::Properties for this file. If no audio properties were read then this will return a null pointer.

Definition at line 86 of file mp4file.cpp.

References File::properties.

TagLib::MP4::Tag * getMP4Tag (  )  const

Definition at line 81 of file mp4file.cpp.

References File::mp4tag.

bool isOpen (  )  [protected]

Definition at line 174 of file mp4file.cpp.

References File::mp4file.

Referenced by File::File().

Here is the caller graph for this function:

File& operator= ( const File  )  [protected]

void read ( bool  readProperties,
Properties::ReadStyle  propertiesStyle 
)

Definition at line 183 of file mp4file.cpp.

References File::mp4file, File::mp4tag, File::properties, Properties::readMP4Properties(), and Tag::readTags().

Referenced by File::File().

Here is the call graph for this function:

Here is the caller graph for this function:

bool save (  )  [virtual]

Save the file. This is the same as calling save(AllTags);

Note:
As of now, saving MP4 tags is not supported.

Definition at line 91 of file mp4file.cpp.

References Tag::bpm(), Tag::compilation(), Tag::cover(), File::mp4file, File::mp4tag, WMA::Attribute::name(), setmeta, Tag::track(), Tag::Undefined, and Tag::year().

Here is the call graph for this function:

TagLib::Tag * tag (  )  const [virtual]

Definition at line 76 of file mp4file.cpp.

References File::mp4tag.


Member Data Documentation

MP4FileHandle mp4file [protected]

Definition at line 80 of file mp4file.h.

Referenced by File::File(), File::isOpen(), File::read(), File::save(), and File::~File().

MP4::Tag* mp4tag [protected]

Definition at line 78 of file mp4file.h.

Referenced by File::getMP4Tag(), File::read(), File::save(), File::tag(), and File::~File().

MP4::Properties* properties [protected]

Definition at line 79 of file mp4file.h.

Referenced by File::audioProperties(), File::read(), and File::~File().


The documentation for this class was generated from the following files:
Generated on Mon Aug 6 21:24:48 2007 for plai by  doxygen 1.5.1