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:
27  virtual ~MetaIOWavPack(void) = 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
bool write(const QString &filename, MusicMetadata *mdata) override=0
Writes all metadata back to a file.
Read and write metadata in Wavpack APE tags.
Definition: metaiowavpack.h:23
#define META_PUBLIC
Definition: mythmetaexp.h:9
MetaIOWavPack(void)
Definition: metaiowavpack.h:26
MusicMetadata * read(const QString &filename) override=0
Reads MusicMetadata from a file.
Base for Taglib metadata classes.
Definition: metaiotaglib.h:20