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:
24  MetaIOOggVorbis(void) = default;
25  ~MetaIOOggVorbis(void) override = default;
26 
27  bool write(const QString &filename, MusicMetadata* mdata) override; // MetaIOTagLib
28  MusicMetadata* read(const QString &filename) override; // MetaIOTagLib
29 
30  private:
31  static TagLib::Ogg::Vorbis::File *OpenFile(const QString &filename);
32 };
33 
34 #endif
MetaIOTagLib::write
bool write(const QString &filename, MusicMetadata *mdata) override=0
Writes all metadata back to a file.
MetaIOOggVorbis::MetaIOOggVorbis
MetaIOOggVorbis(void)=default
MusicMetadata
Definition: musicmetadata.h:81
MetaIOTagLib::read
MusicMetadata * read(const QString &filename) override=0
Reads MusicMetadata from a file.
MetaIOOggVorbis
Read and write Vorbis (Xiph) tags in an Ogg container.
Definition: metaiooggvorbis.h:22
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:637
MetaIOTagLib
Base for Taglib metadata classes.
Definition: metaiotaglib.h:21
metaiotaglib.h
MetaIOOggVorbis::~MetaIOOggVorbis
~MetaIOOggVorbis(void) override=default
META_PUBLIC
#define META_PUBLIC
Definition: mythmetaexp.h:9
musicmetadata.h