#include <mp4file.h>
Collaboration diagram for File:
Public Member Functions | |
virtual MP4::Properties * | audioProperties () const |
File (const char *file, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average, MP4FileHandle handle=MP4_INVALID_FILE_HANDLE) | |
MP4::Tag * | getMP4Tag () 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 () |
File & | operator= (const File &) |
Protected Attributes | |
MP4FileHandle | mp4file |
MP4::Tag * | mp4tag |
MP4::Properties * | properties |
Definition at line 34 of file mp4file.h.
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.
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 |
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:
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);
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] |
MP4FileHandle mp4file [protected] |
Definition at line 80 of file mp4file.h.
Referenced by File::File(), File::isOpen(), File::read(), File::save(), and File::~File().
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().