MythTV
master
|
Read and write Vorbis (Xiph) tags in a FLAC file. More...
#include <metaioflacvorbis.h>
Public Member Functions | |
MetaIOFLACVorbis (void) | |
virtual | ~MetaIOFLACVorbis (void) |
bool | write (const QString &filename, MusicMetadata *mdata) |
Writes all metadata back to a file. More... | |
bool | writeAlbumArt (const QString &filename, const AlbumArtImage *albumart) |
Write the albumart image to the file. More... | |
bool | removeAlbumArt (const QString &filename, const AlbumArtImage *albumart) |
Remove the albumart image from the file. More... | |
MusicMetadata * | read (const QString &filename) |
Reads MusicMetadata from a file. More... | |
AlbumArtList | getAlbumArtList (const QString &filename) |
Read the albumart images from the file. More... | |
QImage * | getAlbumArt (const QString &filename, ImageType type) |
Read the albumart image from the file. More... | |
bool | supportsEmbeddedImages (void) |
Does the tag support embedded cover art. More... | |
bool | changeImageType (const QString &filename, const AlbumArtImage *albumart, ImageType newType) |
virtual bool | TagExists (const QString &filename) |
![]() | |
MetaIOTagLib (void) | |
virtual | ~MetaIOTagLib (void) |
![]() | |
MetaIO (void) | |
Constructor. More... | |
virtual | ~MetaIO (void) |
Destructor. More... | |
virtual bool | writeVolatileMetadata (const QString &filename, MusicMetadata *mdata) |
Writes rating and playcount back to a file. More... | |
void | readFromFilename (const QString &filename, QString &artist, QString &album, QString &title, QString &genre, int &tracknum) |
Reads MusicMetadata based on the folder/filename. More... | |
MusicMetadata * | readFromFilename (const QString &filename, bool blnLength=false) |
Reads MusicMetadata based on the folder/filename. More... | |
void | readFromFilename (MusicMetadata *metadata) |
Reads MusicMetadata based on the folder/filename. More... | |
Private Member Functions | |
TagLib::FLAC::File * | OpenFile (const QString &filename) |
Open the file to read the tag. More... | |
TagLib::FLAC::Picture * | getPictureFromFile (TagLib::FLAC::File *flacfile, ImageType type) |
TagLib::FLAC::Picture::Type | PictureTypeFromImageType (ImageType itype) |
QString | getExtFromMimeType (const QString &mimeType) |
Additional Inherited Members | |
![]() | |
static MetaIO * | createTagger (const QString &filename) |
Finds an appropriate tagger for the given file. More... | |
static MusicMetadata * | readMetadata (const QString &filename) |
Read the metadata from filename directly. More... | |
static MusicMetadata * | getMetadata (const QString &filename) |
Get the metadata for filename . More... | |
![]() | |
static const QString | ValidFileExtensions |
![]() | |
int | getTrackLength (TagLib::File *file) |
Find the length of the track (in seconds) More... | |
int | getTrackLength (const QString &filename) |
Find the length of the track (in seconds) More... | |
void | ReadGenericMetadata (TagLib::Tag *tag, MusicMetadata *metadata) |
Writes metadata common to all tag formats to the tag. More... | |
void | WriteGenericMetadata (TagLib::Tag *tag, const MusicMetadata *metadata) |
Writes metadata common to all tag formats to the tag. More... | |
![]() | |
void | saveTimeStamps (void) |
void | restoreTimeStamps (void) |
![]() | |
QString | m_filename |
QString | m_filenameFormat |
struct stat | m_fileinfo |
Read and write Vorbis (Xiph) tags in a FLAC file.
Definition at line 21 of file metaioflacvorbis.h.
MetaIOFLACVorbis::MetaIOFLACVorbis | ( | void | ) |
Definition at line 16 of file metaioflacvorbis.cpp.
|
virtual |
Definition at line 21 of file metaioflacvorbis.cpp.
|
virtual |
Writes all metadata back to a file.
filename | The filename to write metadata to |
mdata | A pointer to a MusicMetadata object |
Implements MetaIOTagLib.
Definition at line 50 of file metaioflacvorbis.cpp.
Referenced by FlacEncoder::~FlacEncoder().
|
virtual |
Write the albumart image to the file.
filename | The music file to add the albumart |
albumart | The Album Art image to write |
Reimplemented from MetaIO.
Definition at line 343 of file metaioflacvorbis.cpp.
|
virtual |
Remove the albumart image from the file.
filename | The music file to remove the albumart |
albumart | The Album Art image to remove |
Reimplemented from MetaIO.
Definition at line 420 of file metaioflacvorbis.cpp.
|
virtual |
Reads MusicMetadata from a file.
filename | The filename to read metadata from. |
Implements MetaIOTagLib.
Definition at line 108 of file metaioflacvorbis.cpp.
|
virtual |
Read the albumart images from the file.
filename | The filename for which we want to find the images. |
Reimplemented from MetaIO.
Definition at line 256 of file metaioflacvorbis.cpp.
|
virtual |
Read the albumart image from the file.
filename | The filename for which we want to find the albumart. |
type | The type of image we want - front/back etc |
Reimplemented from MetaIO.
Definition at line 165 of file metaioflacvorbis.cpp.
|
inlinevirtual |
Does the tag support embedded cover art.
Reimplemented from MetaIO.
Definition at line 35 of file metaioflacvorbis.h.
|
virtual |
Reimplemented from MetaIO.
Definition at line 465 of file metaioflacvorbis.cpp.
|
virtual |
Reimplemented from MetaIO.
Definition at line 506 of file metaioflacvorbis.cpp.
Referenced by MetaIO::createTagger().
|
private |
Open the file to read the tag.
filename | The filename |
Definition at line 31 of file metaioflacvorbis.cpp.
Referenced by changeImageType(), getAlbumArt(), getAlbumArtList(), read(), removeAlbumArt(), TagExists(), write(), and writeAlbumArt().
|
private |
Definition at line 190 of file metaioflacvorbis.cpp.
Referenced by changeImageType(), getAlbumArt(), removeAlbumArt(), and writeAlbumArt().
|
private |
Definition at line 220 of file metaioflacvorbis.cpp.
Referenced by changeImageType(), getPictureFromFile(), and writeAlbumArt().
|
private |
Definition at line 524 of file metaioflacvorbis.cpp.
Referenced by getAlbumArtList().