00001 #ifndef METAIOFLACVORBISCOMMENT_H_ 00002 #define METAIOFLACVORBISCOMMENT_H_ 00003 00004 #include "metaio.h" 00005 00006 #define HAVE_INTTYPES_H 00007 #include <FLAC/all.h> 00008 00009 class MetaIOFLACVorbisComment : public MetaIO 00010 { 00011 public: 00012 MetaIOFLACVorbisComment(void); 00013 virtual ~MetaIOFLACVorbisComment(void); 00014 00015 bool write(Metadata* mdata, bool exclusive = false); 00016 Metadata* read(QString filename); 00017 00018 private: 00019 int getTrackLength(QString filename); 00020 int getTrackLength(FLAC__StreamMetadata* pBlock); 00021 00022 QString getComment(FLAC__StreamMetadata* pBlock, const char* pLabel); 00023 void setComment(FLAC__StreamMetadata* pBlock, const char* pLabel, 00024 const QString& rData); 00025 }; 00026 00027 #endif 00028
1.5.5