#include <libmythmetadata/metaio.h>
|
| MetaIO (void) |
|
virtual | ~MetaIO (void)=default |
|
virtual bool | write (const QString &filename, MusicMetadata *mdata)=0 |
| Writes all metadata back to a file. More...
|
|
virtual bool | writeVolatileMetadata ([[maybe_unused]] const QString &filename, [[maybe_unused]] MusicMetadata *mdata) |
| Writes rating and playcount back to a file. More...
|
|
virtual MusicMetadata * | read (const QString &filename)=0 |
| Reads MusicMetadata from 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) |
|
Definition at line 17 of file metaio.h.
◆ MetaIO()
◆ ~MetaIO()
virtual MetaIO::~MetaIO |
( |
void |
| ) |
|
|
virtualdefault |
◆ write()
◆ writeVolatileMetadata()
virtual bool MetaIO::writeVolatileMetadata |
( |
[[maybe_unused] ] const QString & |
filename, |
|
|
[[maybe_unused] ] MusicMetadata * |
mdata |
|
) |
| |
|
inlinevirtual |
Writes rating and playcount back to a file.
- Parameters
-
filename | The filename to write metadata to |
mdata | A pointer to a MusicMetadata object |
- Returns
- Boolean to indicate success/failure.
Definition at line 39 of file metaio.h.
◆ read()
◆ supportsEmbeddedImages()
virtual bool MetaIO::supportsEmbeddedImages |
( |
void |
| ) |
|
|
inlinevirtual |
◆ getAlbumArtList()
virtual AlbumArtList MetaIO::getAlbumArtList |
( |
[[maybe_unused] ] const QString & |
filename | ) |
|
|
inlinevirtual |
◆ writeAlbumArt()
virtual bool MetaIO::writeAlbumArt |
( |
[[maybe_unused] ] const QString & |
filename, |
|
|
[[maybe_unused] ] const AlbumArtImage * |
albumart |
|
) |
| |
|
inlinevirtual |
◆ removeAlbumArt()
virtual bool MetaIO::removeAlbumArt |
( |
[[maybe_unused] ] const QString & |
filename, |
|
|
[[maybe_unused] ] const AlbumArtImage * |
albumart |
|
) |
| |
|
inlinevirtual |
◆ changeImageType()
virtual bool MetaIO::changeImageType |
( |
[[maybe_unused] ] const QString & |
filename, |
|
|
[[maybe_unused] ] const AlbumArtImage * |
albumart, |
|
|
[[maybe_unused] ] ImageType |
newType |
|
) |
| |
|
inlinevirtual |
◆ getAlbumArt()
virtual QImage* MetaIO::getAlbumArt |
( |
[[maybe_unused] ] const QString & |
filename, |
|
|
[[maybe_unused] ] ImageType |
type |
|
) |
| |
|
inlinevirtual |
◆ readFromFilename() [1/3]
void MetaIO::readFromFilename |
( |
const QString & |
filename, |
|
|
QString & |
artist, |
|
|
QString & |
album, |
|
|
QString & |
title, |
|
|
QString & |
genre, |
|
|
int & |
tracknum |
|
) |
| |
◆ readFromFilename() [2/3]
Reads MusicMetadata based on the folder/filename.
- Parameters
-
filename | The filename to try and determine metadata for. |
blnLength | If true, read the file length as well. |
- Returns
- MusicMetadata Pointer, or nullptr on error.
Definition at line 163 of file metaio.cpp.
◆ readFromFilename() [3/3]
◆ TagExists()
virtual bool MetaIO::TagExists |
( |
[[maybe_unused] ] const QString & |
filename | ) |
|
|
inlinevirtual |
◆ createTagger()
MetaIO * MetaIO::createTagger |
( |
const QString & |
filename | ) |
|
|
static |
◆ readMetadata()
◆ getMetadata()
◆ saveTimeStamps()
void MetaIO::saveTimeStamps |
( |
void |
| ) |
|
|
protected |
◆ restoreTimeStamps()
void MetaIO::restoreTimeStamps |
( |
void |
| ) |
|
|
protected |
◆ getTrackLength()
virtual std::chrono::milliseconds MetaIO::getTrackLength |
( |
const QString & |
filename | ) |
|
|
protectedpure virtual |
◆ kValidFileExtensions
const QString MetaIO::kValidFileExtensions |
|
static |
◆ m_filename
QString MetaIO::m_filename |
|
protected |
◆ m_filenameFormat
QString MetaIO::m_filenameFormat |
|
protected |
The documentation for this class was generated from the following files: