textidentificationframe.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 copyright : (C) 2002, 2003 by Scott Wheeler 00003 email : wheeler@kde.org 00004 ***************************************************************************/ 00005 00006 /*************************************************************************** 00007 * This library is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU Lesser General Public License version * 00009 * 2.1 as published by the Free Software Foundation. * 00010 * * 00011 * This library is distributed in the hope that it will be useful, but * 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00014 * Lesser General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Lesser General Public * 00017 * License along with this library; if not, write to the Free Software * 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * 00019 * USA * 00020 ***************************************************************************/ 00021 00022 #ifndef TAGLIB_TEXTIDENTIFICATIONFRAME_H 00023 #define TAGLIB_TEXTIDENTIFICATIONFRAME_H 00024 00025 #include <tstringlist.h> 00026 00027 #include <id3v2frame.h> 00028 00029 namespace TagLib { 00030 00031 namespace ID3v2 { 00032 00034 00093 class TextIdentificationFrame : public Frame 00094 { 00095 friend class FrameFactory; 00096 00097 public: 00105 TextIdentificationFrame(const ByteVector &type, String::Type encoding); 00106 00111 explicit TextIdentificationFrame(const ByteVector &data); 00112 00116 virtual ~TextIdentificationFrame(); 00117 00128 void setText(const StringList &l); 00129 00130 // Reimplementations. 00131 00132 virtual void setText(const String &s); 00133 virtual String toString() const; 00134 00143 String::Type textEncoding() const; 00144 00152 void setTextEncoding(String::Type encoding); 00153 00157 StringList fieldList() const; 00158 00159 protected: 00160 // Reimplementations. 00161 00162 virtual void parseFields(const ByteVector &data); 00163 virtual ByteVector renderFields() const; 00164 00165 private: 00169 TextIdentificationFrame(const ByteVector &data, Header *h); 00170 TextIdentificationFrame(const TextIdentificationFrame &); 00171 TextIdentificationFrame &operator=(const TextIdentificationFrame &); 00172 00173 class TextIdentificationFramePrivate; 00174 TextIdentificationFramePrivate *d; 00175 }; 00176 00177 } 00178 } 00179 #endif