commentsframe.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TAGLIB_COMMENTSFRAME_H
00023 #define TAGLIB_COMMENTSFRAME_H
00024
00025 #include <id3v2frame.h>
00026
00027 namespace TagLib {
00028
00029 namespace ID3v2 {
00030
00032
00038 class CommentsFrame : public Frame
00039 {
00040 friend class FrameFactory;
00041
00042 public:
00047 explicit CommentsFrame(String::Type encoding = String::Latin1);
00048
00052 explicit CommentsFrame(const ByteVector &data);
00053
00057 virtual ~CommentsFrame();
00058
00064 virtual String toString() const;
00065
00074 ByteVector language() const;
00075
00083 String description() const;
00084
00090 String text() const;
00091
00099 void setLanguage(const ByteVector &languageCode);
00100
00106 void setDescription(const String &s);
00107
00113 virtual void setText(const String &s);
00114
00123 String::Type textEncoding() const;
00124
00132 void setTextEncoding(String::Type encoding);
00133
00134 protected:
00135
00136
00137 virtual void parseFields(const ByteVector &data);
00138 virtual ByteVector renderFields() const;
00139
00140 private:
00144 CommentsFrame(const ByteVector &data, Header *h);
00145 CommentsFrame(const CommentsFrame &);
00146 CommentsFrame &operator=(const CommentsFrame &);
00147
00148 class CommentsFramePrivate;
00149 CommentsFramePrivate *d;
00150 };
00151
00152 }
00153 }
00154 #endif