MythTV  master
metaiooggvorbis.h
Go to the documentation of this file.
1 #ifndef METAIOOGGVORBIS_H_
2 #define METAIOOGGVORBIS_H_
3 
4 // libmythmetadata
5 #include "metaiotaglib.h"
6 #include "musicmetadata.h"
7 
8 // Taglib
9 #include <vorbisfile.h>
10 
11 using TagLib::Tag;
12 using TagLib::String;
13 
22 {
23  public:
25  ~MetaIOOggVorbis(void) = default;
26 
27  bool write(const QString &filename, MusicMetadata* mdata) override; // MetaIOTagLib
28  MusicMetadata* read(const QString &filename) override; // MetaIOTagLib
29 
30  private:
31  TagLib::Ogg::Vorbis::File *OpenFile(const QString &filename);
32 };
33 
34 #endif
bool write(const QString &filename, MusicMetadata *mdata) override=0
Writes all metadata back to a file.
#define META_PUBLIC
Definition: mythmetaexp.h:9
MusicMetadata * read(const QString &filename) override=0
Reads MusicMetadata from a file.
Base for Taglib metadata classes.
Definition: metaiotaglib.h:20
Read and write Vorbis (Xiph) tags in an Ogg container.