MetaIOMP4 Class Reference

#include <metaiomp4.h>

Inheritance diagram for MetaIOMP4:

MetaIO

List of all members.


Detailed Description

Definition at line 14 of file metaiomp4.h.


Public Member Functions

 MetaIOMP4 (void)
virtual ~MetaIOMP4 (void)
bool write (Metadata *mdata, bool exclusive=false)
 Writes metadata back to a file.
Metadataread (QString filename)
 Reads Metadata from a file.

Private Member Functions

int getTrackLength (QString filename)
 Find the length of the track (in seconds).
int getAACTrack (mp4ff_t *infile)
void metadataSanityCheck (QString *artist, QString *album, QString *title, QString *genre)

Private Attributes

mp4ff_callback_t * mp4_cb

Constructor & Destructor Documentation

MetaIOMP4::MetaIOMP4 ( void   ) 

Definition at line 18 of file metaiomp4.cpp.

MetaIOMP4::~MetaIOMP4 ( void   )  [virtual]

Definition at line 23 of file metaiomp4.cpp.


Member Function Documentation

bool MetaIOMP4::write ( Metadata mdata,
bool  exclusive = false 
) [virtual]

Writes metadata back to a file.

Parameters:
mdata A pointer to a Metadata object
exclusive Flag to indicate if only the data in mdata should be in the file. If false, any unrecognised tags already in the file will be maintained.
Returns:
Boolean to indicate success/failure.

Implements MetaIO.

Definition at line 69 of file metaiomp4.cpp.

Metadata * MetaIOMP4::read ( QString  filename  )  [virtual]

Reads Metadata from a file.

Parameters:
filename The filename to read metadata from.
Returns:
Metadata pointer or NULL on error

Implements MetaIO.

Definition at line 187 of file metaiomp4.cpp.

int MetaIOMP4::getTrackLength ( QString  filename  )  [private, virtual]

Find the length of the track (in seconds).

Parameters:
filename The filename for which we want to find the length.
Returns:
An integer (signed!) to represent the length in seconds.

Implements MetaIO.

Definition at line 371 of file metaiomp4.cpp.

int MetaIOMP4::getAACTrack ( mp4ff_t *  infile  )  [private]

Definition at line 466 of file metaiomp4.cpp.

Referenced by getTrackLength(), and read().

void MetaIOMP4::metadataSanityCheck ( QString *  artist,
QString *  album,
QString *  title,
QString *  genre 
) [private]

Definition at line 503 of file metaiomp4.cpp.

Referenced by read().


Member Data Documentation

mp4ff_callback_t* MetaIOMP4::mp4_cb [private]

Definition at line 25 of file metaiomp4.h.

Referenced by getTrackLength(), read(), and write().


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

Generated on Sat Dec 18 05:16:05 2010 for MythTV by  doxygen 1.5.5