Read and write Vorbis (Xiph) tags in a FLAC file.
More...
#include <metaioflacvorbis.h>
|
| MetaIOFLACVorbis (void)=default |
|
| ~MetaIOFLACVorbis (void) override=default |
|
bool | write (const QString &filename, MusicMetadata *mdata) override |
| Writes all metadata back to a file. More...
|
|
bool | writeAlbumArt (const QString &filename, const AlbumArtImage *albumart) override |
| Write the albumart image to the file. More...
|
|
bool | removeAlbumArt (const QString &filename, const AlbumArtImage *albumart) override |
| Remove the albumart image from the file. More...
|
|
MusicMetadata * | read (const QString &filename) override |
| Reads MusicMetadata from a file. More...
|
|
AlbumArtList | getAlbumArtList (const QString &filename) override |
| Read the albumart images from the file. More...
|
|
QImage * | getAlbumArt (const QString &filename, ImageType type) override |
| Read the albumart image from the file. More...
|
|
bool | supportsEmbeddedImages (void) override |
| Does the tag support embedded cover art. More...
|
|
bool | changeImageType (const QString &filename, const AlbumArtImage *albumart, ImageType newType) override |
|
bool | TagExists (const QString &filename) override |
|
| MetaIOTagLib (void)=default |
|
| ~MetaIOTagLib (void) override=default |
|
| MetaIO (void) |
|
virtual | ~MetaIO (void)=default |
|
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...
|
|
Read and write Vorbis (Xiph) tags in a FLAC file.
Definition at line 21 of file metaioflacvorbis.h.
◆ MetaIOFLACVorbis()
MetaIOFLACVorbis::MetaIOFLACVorbis |
( |
void |
| ) |
|
|
default |
◆ ~MetaIOFLACVorbis()
MetaIOFLACVorbis::~MetaIOFLACVorbis |
( |
void |
| ) |
|
|
overridedefault |
◆ write()
◆ writeAlbumArt()
bool MetaIOFLACVorbis::writeAlbumArt |
( |
const QString & |
filename, |
|
|
const AlbumArtImage * |
albumart |
|
) |
| |
|
overridevirtual |
Write the albumart image to the file.
- Parameters
-
filename | The music file to add the albumart |
albumart | The Album Art image to write |
- Returns
- True if successful
- Note
- We always save the image in JPEG format
Reimplemented from MetaIO.
Definition at line 363 of file metaioflacvorbis.cpp.
◆ removeAlbumArt()
bool MetaIOFLACVorbis::removeAlbumArt |
( |
const QString & |
filename, |
|
|
const AlbumArtImage * |
albumart |
|
) |
| |
|
overridevirtual |
Remove the albumart image from the file.
- Parameters
-
filename | The music file to remove the albumart |
albumart | The Album Art image to remove |
- Returns
- True if successful
Reimplemented from MetaIO.
Definition at line 440 of file metaioflacvorbis.cpp.
◆ read()
MusicMetadata * MetaIOFLACVorbis::read |
( |
const QString & |
filename | ) |
|
|
overridevirtual |
◆ getAlbumArtList()
AlbumArtList MetaIOFLACVorbis::getAlbumArtList |
( |
const QString & |
filename | ) |
|
|
overridevirtual |
Read the albumart images from the file.
- Parameters
-
filename | The filename for which we want to find the images. |
Reimplemented from MetaIO.
Definition at line 278 of file metaioflacvorbis.cpp.
◆ getAlbumArt()
QImage * MetaIOFLACVorbis::getAlbumArt |
( |
const QString & |
filename, |
|
|
ImageType |
type |
|
) |
| |
|
overridevirtual |
Read the albumart image from the file.
- Parameters
-
filename | The filename for which we want to find the albumart. |
type | The type of image we want - front/back etc |
- Returns
- A pointer to a QImage owned by the caller or nullptr if not found.
Reimplemented from MetaIO.
Definition at line 188 of file metaioflacvorbis.cpp.
◆ supportsEmbeddedImages()
bool MetaIOFLACVorbis::supportsEmbeddedImages |
( |
void |
| ) |
|
|
inlineoverridevirtual |
Does the tag support embedded cover art.
- Returns
- true if reading/writing embedded images are supported
Reimplemented from MetaIO.
Definition at line 35 of file metaioflacvorbis.h.
◆ changeImageType()
◆ TagExists()
bool MetaIOFLACVorbis::TagExists |
( |
const QString & |
filename | ) |
|
|
overridevirtual |
◆ OpenFile()
TagLib::FLAC::File * MetaIOFLACVorbis::OpenFile |
( |
const QString & |
filename | ) |
|
|
staticprivate |
◆ getPictureFromFile()
TagLib::FLAC::Picture * MetaIOFLACVorbis::getPictureFromFile |
( |
TagLib::FLAC::File * |
flacfile, |
|
|
ImageType |
type |
|
) |
| |
|
staticprivate |
◆ PictureTypeFromImageType()
TagLib::FLAC::Picture::Type MetaIOFLACVorbis::PictureTypeFromImageType |
( |
ImageType |
itype | ) |
|
|
staticprivate |
◆ getExtFromMimeType()
QString MetaIOFLACVorbis::getExtFromMimeType |
( |
const QString & |
mimeType | ) |
|
|
staticprivate |
The documentation for this class was generated from the following files: