|
MythTV
0.26-pre
|
Base for Taglib metadata classes. More...
#include <metaiotaglib.h>
Public Member Functions | |
| MetaIOTagLib (void) | |
| virtual | ~MetaIOTagLib (void) |
| virtual bool | write (const Metadata *mdata)=0 |
| Writes all metadata back to a file. | |
| virtual Metadata * | read (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) |
| Writes metadata common to all tag formats to the tag. | |
| void | WriteGenericMetadata (TagLib::Tag *tag, const Metadata *metadata) |
| Writes metadata common to all tag formats to the tag. | |
Base for Taglib metadata classes.
Definition at line 20 of file metaiotaglib.h.
Definition at line 18 of file metaiotaglib.cpp.
| MetaIOTagLib::~MetaIOTagLib | ( | void | ) | [virtual] |
Definition at line 23 of file metaiotaglib.cpp.
| virtual bool MetaIOTagLib::write | ( | const Metadata * | mdata | ) | [pure virtual] |
Writes all metadata back to a file.
| mdata | A pointer to a Metadata object |
Implements MetaIO.
Implemented in MetaIOID3, MetaIOWavPack, MetaIOFLACVorbis, and MetaIOOggVorbis.
| virtual Metadata* MetaIOTagLib::read | ( | const QString & | filename | ) | [pure virtual] |
Reads Metadata from a file.
| filename | The filename to read metadata from. |
Implements MetaIO.
Implemented in MetaIOID3, MetaIOWavPack, MetaIOFLACVorbis, and MetaIOOggVorbis.
| int MetaIOTagLib::getTrackLength | ( | TagLib::File * | file | ) | [protected] |
Find the length of the track (in seconds)
| file | Pointer to file object |
Definition at line 95 of file metaiotaglib.cpp.
Referenced by MetaIOFLACVorbis::read(), MetaIOOggVorbis::read(), MetaIOWavPack::read(), and MetaIOID3::read().
| int MetaIOTagLib::getTrackLength | ( | const QString & | filename | ) | [protected, virtual] |
Find the length of the track (in seconds)
| filename | The filename for which we want to find the length. |
Implements MetaIO.
Definition at line 111 of file metaiotaglib.cpp.
| void MetaIOTagLib::ReadGenericMetadata | ( | TagLib::Tag * | tag, |
| Metadata * | metadata | ||
| ) | [protected] |
Writes metadata common to all tag formats to the tag.
| tag | A pointer to the tag |
| metadata | Pointer to the metadata |
Definition at line 63 of file metaiotaglib.cpp.
Referenced by MetaIOFLACVorbis::read(), MetaIOOggVorbis::read(), MetaIOWavPack::read(), and MetaIOID3::read().
| void MetaIOTagLib::WriteGenericMetadata | ( | TagLib::Tag * | tag, |
| const Metadata * | metadata | ||
| ) | [protected] |
Writes metadata common to all tag formats to the tag.
| tag | A pointer to the tag |
| metadata | Pointer to the metadata |
Definition at line 33 of file metaiotaglib.cpp.
Referenced by MetaIOFLACVorbis::write(), MetaIOOggVorbis::write(), MetaIOWavPack::write(), and MetaIOID3::write().
1.7.6.1