00001 #ifndef METAIOVORBISCOMMENT_H_ 00002 #define METAIOVORBISCOMMENT_H_ 00003 00004 #include "metaio.h" 00005 00006 class OggVorbis_File; 00007 class vorbis_comment; 00008 00009 class MetaIOOggVorbisComment : public MetaIO 00010 { 00011 public: 00012 MetaIOOggVorbisComment(void); 00013 virtual ~MetaIOOggVorbisComment(void); 00014 00015 static vorbis_comment* getRawVorbisComment(Metadata* mdata, 00016 vorbis_comment* pComment = NULL); 00017 bool write(Metadata* mdata, bool exclusive = false); 00018 Metadata* read(QString filename); 00019 00020 private: 00021 int getTrackLength(QString filename); 00022 int getTrackLength(OggVorbis_File* pVf); 00023 00024 QString getComment(vorbis_comment* pComment, const char* pLabel); 00025 }; 00026 00027 #endif 00028
1.5.5