MythTV  master
metaioavfcomment.h
Go to the documentation of this file.
1 #ifndef METAIOAVFCOMMENT_H_
2 #define METAIOAVFCOMMENT_H_
3 
4 // libmythmetadata
5 #include "metaio.h"
6 
7 struct AVFormatContext;
8 
20 {
21 public:
22  MetaIOAVFComment(void) : MetaIO() {}
23  virtual ~MetaIOAVFComment(void) = default;
24 
25  bool write(const QString &filename, MusicMetadata* mdata) override; // MetaIO
26  MusicMetadata* read(const QString &filename) override; // MetaIO
27 
28 private:
29  int getTrackLength(const QString &filename) override; // MetaIO
30  int getTrackLength(AVFormatContext* pContext);
31 };
32 
33 #endif
34 
Definition: metaio.h:17
virtual MusicMetadata * read(const QString &filename)=0
Reads MusicMetadata from a file.
virtual int getTrackLength(const QString &filename)=0
#define META_PUBLIC
Definition: mythmetaexp.h:9
virtual bool write(const QString &filename, MusicMetadata *mdata)=0
Writes all metadata back to a file.
Attempt to read metadata in files without a specific metadata reading implementation.