MetaIOTagLib Class Reference

Base for Taglib metadata classes. More...

#include <metaiotaglib.h>

Inheritance diagram for MetaIOTagLib:
MetaIO MetaIOFLACVorbis MetaIOID3 MetaIOOggVorbis MetaIOWavPack

List of all members.

Public Member Functions

 MetaIOTagLib (void)
virtual ~MetaIOTagLib (void)
virtual bool write (const Metadata *mdata)=0
 Writes all metadata back to a file.
virtual Metadataread (const QString &filename)=0
 Reads Metadata from a file.

Protected Member Functions

int getTrackLength (TagLib::File *file)
 Find the length of the track (in seconds).
int getTrackLength (const QString &filename)
 Find the length of the track (in seconds).
void ReadGenericMetadata (TagLib::Tag *tag, Metadata *metadata)
void WriteGenericMetadata (TagLib::Tag *tag, const Metadata *metadata)

Detailed Description

Base for Taglib metadata classes.

Definition at line 20 of file metaiotaglib.h.


Constructor & Destructor Documentation

MetaIOTagLib::MetaIOTagLib ( void   ) 

Definition at line 18 of file metaiotaglib.cpp.

MetaIOTagLib::~MetaIOTagLib ( void   )  [virtual]

Definition at line 23 of file metaiotaglib.cpp.


Member Function Documentation

virtual bool MetaIOTagLib::write ( const Metadata mdata  )  [pure virtual]

Writes all metadata back to a file.

Parameters:
mdata A pointer to a Metadata object
Returns:
Boolean to indicate success/failure.

Implements MetaIO.

Implemented in MetaIOFLACVorbis, MetaIOID3, MetaIOOggVorbis, and MetaIOWavPack.

virtual Metadata* MetaIOTagLib::read ( const QString &  filename  )  [pure virtual]

Reads Metadata from a file.

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

Implements MetaIO.

Implemented in MetaIOFLACVorbis, MetaIOID3, MetaIOOggVorbis, and MetaIOWavPack.

int MetaIOTagLib::getTrackLength ( TagLib::File *  file  )  [protected]

Find the length of the track (in seconds).

Parameters:
file Pointer to file object
Returns:
An integer (signed!) to represent the length in milliseconds.

Definition at line 95 of file metaiotaglib.cpp.

Referenced by MetaIOWavPack::read(), MetaIOOggVorbis::read(), MetaIOID3::read(), and MetaIOFLACVorbis::read().

int MetaIOTagLib::getTrackLength ( const QString &  filename  )  [protected, 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 milliseconds.

Implements MetaIO.

Definition at line 111 of file metaiotaglib.cpp.

void MetaIOTagLib::ReadGenericMetadata ( TagLib::Tag *  tag,
Metadata metadata 
) [protected]
void MetaIOTagLib::WriteGenericMetadata ( TagLib::Tag *  tag,
const Metadata metadata 
) [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:09 2012 for MythTV by  doxygen 1.6.3