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) |
| void | WriteGenericMetadata (TagLib::Tag *tag, const Metadata *metadata) |
Base for Taglib metadata classes.
Definition at line 20 of file metaiotaglib.h.
| MetaIOTagLib::MetaIOTagLib | ( | void | ) |
Definition at line 18 of file metaiotaglib.cpp.
| MetaIOTagLib::~MetaIOTagLib | ( | void | ) | [virtual] |
Definition at line 23 of file metaiotaglib.cpp.
Writes all metadata back to a file.
| mdata | A pointer to a Metadata object |
Implements MetaIO.
Implemented in MetaIOFLACVorbis, MetaIOID3, MetaIOOggVorbis, and MetaIOWavPack.
| 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 MetaIOFLACVorbis, MetaIOID3, MetaIOOggVorbis, and MetaIOWavPack.
| 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 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).
| 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] |
Referenced by MetaIOWavPack::read(), MetaIOOggVorbis::read(), MetaIOID3::read(), and MetaIOFLACVorbis::read().
| void MetaIOTagLib::WriteGenericMetadata | ( | TagLib::Tag * | tag, | |
| const Metadata * | metadata | |||
| ) | [protected] |
Referenced by MetaIOWavPack::write(), MetaIOOggVorbis::write(), MetaIOID3::write(), and MetaIOFLACVorbis::write().
1.6.3