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) = default;
23  ~MetaIOAVFComment(void) override = 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  static int getTrackLength(AVFormatContext* pContext);
31 };
32 
33 #endif
34 
MetaIO::getTrackLength
virtual int getTrackLength(const QString &filename)=0
MetaIOAVFComment::MetaIOAVFComment
MetaIOAVFComment(void)=default
MetaIO::write
virtual bool write(const QString &filename, MusicMetadata *mdata)=0
Writes all metadata back to a file.
MetaIO
Definition: metaio.h:18
MusicMetadata
Definition: musicmetadata.h:81
MetaIOAVFComment
Attempt to read metadata in files without a specific metadata reading implementation.
Definition: metaioavfcomment.h:20
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:637
MetaIOAVFComment::~MetaIOAVFComment
~MetaIOAVFComment(void) override=default
metaio.h
MetaIO::read
virtual MusicMetadata * read(const QString &filename)=0
Reads MusicMetadata from a file.
META_PUBLIC
#define META_PUBLIC
Definition: mythmetaexp.h:9