MythTV  master
metaiowavpack.h
Go to the documentation of this file.
1 #ifndef METAIOWAVPACK_H_
2 #define METAIOWAVPACK_H_
3 
4 // libmythmetadata
5 #include "metaiotaglib.h"
6 #include "musicmetadata.h"
7 
8 // Taglib
9 #include <wavpackfile.h>
10 
11 using TagLib::Tag;
12 using TagLib::String;
13 
24 {
25 public:
26  MetaIOWavPack(void) = default;
27  ~MetaIOWavPack(void) override = default;
28 
29  bool write(const QString &filename, MusicMetadata* mdata) override; // MetaIOTagLib
30  MusicMetadata* read(const QString &filename) override; // MetaIOTagLib
31 
32 private:
33  static TagLib::WavPack::File *OpenFile(const QString &filename);
34 };
35 
36 #endif
MetaIOTagLib::write
bool write(const QString &filename, MusicMetadata *mdata) override=0
Writes all metadata back to a file.
MusicMetadata
Definition: musicmetadata.h:81
MetaIOTagLib::read
MusicMetadata * read(const QString &filename) override=0
Reads MusicMetadata from a file.
MetaIOWavPack::~MetaIOWavPack
~MetaIOWavPack(void) override=default
MetaIOWavPack::MetaIOWavPack
MetaIOWavPack(void)=default
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:637
MetaIOTagLib
Base for Taglib metadata classes.
Definition: metaiotaglib.h:21
metaiotaglib.h
META_PUBLIC
#define META_PUBLIC
Definition: mythmetaexp.h:9
musicmetadata.h
MetaIOWavPack
Read and write metadata in Wavpack APE tags.
Definition: metaiowavpack.h:24