#include <metaio.h>
Public Member Functions | |
| MetaIO (void) | |
| Constructor. | |
| virtual | ~MetaIO (void) |
| Destructor. | |
| virtual bool | write (const Metadata *mdata)=0 |
| Writes all metadata back to a file. | |
| virtual bool | writeVolatileMetadata (const Metadata *mdata) |
| Writes rating and playcount back to a file. | |
| virtual Metadata * | read (const QString &filename)=0 |
| Reads Metadata from a file. | |
| virtual bool | supportsEmbeddedImages (void) |
| Does the tag support embedded cover art. | |
| virtual AlbumArtList | getAlbumArtList (const QString &filename) |
| Reads the list of embedded images in the tag. | |
| virtual bool | writeAlbumArt (const QString &filename, const AlbumArtImage *albumart) |
| virtual bool | removeAlbumArt (const QString &filename, const AlbumArtImage *albumart) |
| virtual bool | changeImageType (const QString &filename, const AlbumArtImage *albumart, ImageType newType) |
| virtual QImage * | getAlbumArt (const QString &filename, ImageType type) |
| void | readFromFilename (const QString &filename, QString &artist, QString &album, QString &title, QString &genre, int &tracknum) |
| Reads Metadata based on the folder/filename. | |
| Metadata * | readFromFilename (const QString &filename, bool blnLength=false) |
| Reads Metadata based on the folder/filename. | |
| void | readFromFilename (Metadata *metadata) |
| Reads Metadata based on the folder/filename. | |
| virtual bool | TagExists (const QString &filename) |
Private Member Functions | |
| virtual int | getTrackLength (const QString &filename)=0 |
Private Attributes | |
| QString | mFilename |
| QString | mFilenameFormat |
Definition at line 12 of file metaio.h.
| MetaIO::MetaIO | ( | void | ) |
Constructor.
Definition at line 12 of file metaio.cpp.
| MetaIO::~MetaIO | ( | void | ) | [virtual] |
Destructor.
Definition at line 20 of file metaio.cpp.
Writes all metadata back to a file.
| mdata | A pointer to a Metadata object |
Implemented in MetaIOAVFComment, MetaIOFLACVorbis, MetaIOID3, MetaIOMP4, MetaIOOggVorbis, MetaIOTagLib, and MetaIOWavPack.
Referenced by Decoder::commitMetadata(), and EditMetadataCommon::saveAll().
Writes rating and playcount back to a file.
| mdata | A pointer to a Metadata object |
Reimplemented in MetaIOID3.
Definition at line 32 of file metaio.h.
Referenced by Decoder::commitVolatileMetadata().
| virtual Metadata* MetaIO::read | ( | const QString & | filename | ) | [pure virtual] |
Reads Metadata from a file.
| filename | The filename to read metadata from. |
Implemented in MetaIOAVFComment, MetaIOFLACVorbis, MetaIOID3, MetaIOMP4, MetaIOOggVorbis, MetaIOTagLib, and MetaIOWavPack.
Referenced by Decoder::readMetadata().
| virtual bool MetaIO::supportsEmbeddedImages | ( | void | ) | [inline, virtual] |
Does the tag support embedded cover art.
Reimplemented in MetaIOID3.
Definition at line 51 of file metaio.h.
Referenced by FileScanner::AddFileToDB(), AlbumArtImages::addImage(), ImportMusicDialog::addPressed(), EditAlbumartDialog::customEvent(), EditAlbumartDialog::doCopyImageToTag(), EditAlbumartDialog::doRemoveImageFromTag(), EditMetadataCommon::scanForImages(), and EditAlbumartDialog::showMenu().
| virtual AlbumArtList MetaIO::getAlbumArtList | ( | const QString & | filename | ) | [inline, virtual] |
Reads the list of embedded images in the tag.
| filename | The filename to read images from. |
Reimplemented in MetaIOID3.
Definition at line 62 of file metaio.h.
Referenced by FileScanner::AddFileToDB(), ImportMusicDialog::addPressed(), and EditMetadataCommon::scanForImages().
| virtual bool MetaIO::writeAlbumArt | ( | const QString & | filename, | |
| const AlbumArtImage * | albumart | |||
| ) | [inline, virtual] |
Reimplemented in MetaIOID3.
Definition at line 68 of file metaio.h.
Referenced by EditAlbumartDialog::doCopyImageToTag().
| virtual bool MetaIO::removeAlbumArt | ( | const QString & | filename, | |
| const AlbumArtImage * | albumart | |||
| ) | [inline, virtual] |
Reimplemented in MetaIOID3.
Definition at line 76 of file metaio.h.
Referenced by EditAlbumartDialog::doRemoveImageFromTag().
| virtual bool MetaIO::changeImageType | ( | const QString & | filename, | |
| const AlbumArtImage * | albumart, | |||
| ImageType | newType | |||
| ) | [inline, virtual] |
Reimplemented in MetaIOID3.
Definition at line 84 of file metaio.h.
Referenced by EditAlbumartDialog::customEvent().
| virtual QImage* MetaIO::getAlbumArt | ( | const QString & | filename, | |
| ImageType | type | |||
| ) | [inline, virtual] |
Reimplemented in MetaIOID3.
Definition at line 94 of file metaio.h.
Referenced by AlbumArtImages::addImage(), and Metadata::getAlbumArtFile().
| void MetaIO::readFromFilename | ( | const QString & | filename, | |
| QString & | artist, | |||
| QString & | album, | |||
| QString & | title, | |||
| QString & | genre, | |||
| int & | tracknum | |||
| ) |
Reads Metadata based on the folder/filename.
| filename | The filename to try and determine metadata for. |
Definition at line 30 of file metaio.cpp.
Referenced by MetaIOMP4::read(), MetaIOAVFComment::read(), readFromFilename(), and Decoder::readMetadata().
Reads Metadata based on the folder/filename.
| filename | The filename to try and determine metadata for. |
Definition at line 104 of file metaio.cpp.
| void MetaIO::readFromFilename | ( | Metadata * | metadata | ) |
Reads Metadata based on the folder/filename.
| metadata | Metadata Pointer |
Definition at line 125 of file metaio.cpp.
| virtual bool MetaIO::TagExists | ( | const QString & | filename | ) | [inline, virtual] |
Reimplemented in MetaIOFLACVorbis, and MetaIOID3.
| virtual int MetaIO::getTrackLength | ( | const QString & | filename | ) | [private, pure virtual] |
Implemented in MetaIOAVFComment, MetaIOMP4, and MetaIOTagLib.
Referenced by readFromFilename().
QString MetaIO::mFilename [private] |
QString MetaIO::mFilenameFormat [private] |
Definition at line 121 of file metaio.h.
Referenced by MetaIO(), and readFromFilename().
1.6.3