Base for Taglib metadata classes.
More...
#include <libmythmetadata/metaiotaglib.h>
|
| MetaIOTagLib (void)=default |
|
| ~MetaIOTagLib (void) override=default |
|
bool | write (const QString &filename, MusicMetadata *mdata) override=0 |
| Writes all metadata back to a file. More...
|
|
MusicMetadata * | read (const QString &filename) override=0 |
| Reads MusicMetadata from a file. More...
|
|
| MetaIO () |
|
virtual | ~MetaIO (void)=default |
|
virtual bool | writeVolatileMetadata ([[maybe_unused]] const QString &filename, [[maybe_unused]] MusicMetadata *mdata) |
| Writes rating and playcount back to a file. More...
|
|
virtual bool | supportsEmbeddedImages (void) |
| Does the tag support embedded cover art. More...
|
|
virtual AlbumArtList | getAlbumArtList ([[maybe_unused]] const QString &filename) |
| Reads the list of embedded images in the tag. More...
|
|
virtual bool | writeAlbumArt ([[maybe_unused]] const QString &filename, [[maybe_unused]] const AlbumArtImage *albumart) |
|
virtual bool | removeAlbumArt ([[maybe_unused]] const QString &filename, [[maybe_unused]] const AlbumArtImage *albumart) |
|
virtual bool | changeImageType ([[maybe_unused]] const QString &filename, [[maybe_unused]] const AlbumArtImage *albumart, [[maybe_unused]] ImageType newType) |
|
virtual QImage * | getAlbumArt ([[maybe_unused]] const QString &filename, [[maybe_unused]] ImageType type) |
|
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...
|
|
virtual bool | TagExists ([[maybe_unused]] const QString &filename) |
|
Base for Taglib metadata classes.
Definition at line 20 of file metaiotaglib.h.
◆ MetaIOTagLib()
MetaIOTagLib::MetaIOTagLib |
( |
void |
| ) |
|
|
default |
◆ ~MetaIOTagLib()
MetaIOTagLib::~MetaIOTagLib |
( |
void |
| ) |
|
|
overridedefault |
◆ write()
◆ read()
◆ getTrackLength() [1/2]
std::chrono::milliseconds MetaIOTagLib::getTrackLength |
( |
TagLib::File * |
file | ) |
|
|
staticprotected |
◆ getTrackLength() [2/2]
std::chrono::milliseconds MetaIOTagLib::getTrackLength |
( |
const QString & |
filename | ) |
|
|
overrideprotectedvirtual |
Find the length of the track (in milliseconds)
- Parameters
-
filename | The filename for which we want to find the length. |
- Returns
- An integer (signed!) to represent the length in milliseconds.
Implements MetaIO.
Definition at line 105 of file metaiotaglib.cpp.
◆ ReadGenericMetadata()
void MetaIOTagLib::ReadGenericMetadata |
( |
TagLib::Tag * |
tag, |
|
|
MusicMetadata * |
metadata |
|
) |
| |
|
protected |
◆ WriteGenericMetadata()
void MetaIOTagLib::WriteGenericMetadata |
( |
TagLib::Tag * |
tag, |
|
|
const MusicMetadata * |
metadata |
|
) |
| |
|
staticprotected |
The documentation for this class was generated from the following files: