![]() |
|
00001 /*************************************************************************** 00002 copyright : (C) 2002 - 2008 by Scott Wheeler 00003 email : wheeler@kde.org 00004 copyright : (C) 2006 by Urs Fleisch 00005 email : ufleisch@users.sourceforge.net 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * This library is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU Lesser General Public License version * 00011 * 2.1 as published by the Free Software Foundation. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, but * 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00016 * Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public * 00019 * License along with this library; if not, write to the Free Software * 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * 00021 * USA * 00022 * * 00023 * Alternatively, this file is available under the Mozilla Public * 00024 * License Version 1.1. You may obtain a copy of the License at * 00025 * http://www.mozilla.org/MPL/ * 00026 ***************************************************************************/ 00027 00028 #ifndef TAGLIB_UNSYNCHRONIZEDLYRICSFRAME_H 00029 #define TAGLIB_UNSYNCHRONIZEDLYRICSFRAME_H 00030 00031 #include "id3v2frame.h" 00032 00033 namespace TagLib { 00034 00035 namespace ID3v2 { 00036 00038 00041 class TAGLIB_EXPORT UnsynchronizedLyricsFrame : public Frame 00042 { 00043 friend class FrameFactory; 00044 00045 public: 00050 explicit UnsynchronizedLyricsFrame(String::Type encoding = String::Latin1); 00051 00055 explicit UnsynchronizedLyricsFrame(const ByteVector &data); 00056 00060 virtual ~UnsynchronizedLyricsFrame(); 00061 00067 virtual String toString() const; 00068 00077 ByteVector language() const; 00078 00086 String description() const; 00087 00093 String text() const; 00094 00102 void setLanguage(const ByteVector &languageCode); 00103 00109 void setDescription(const String &s); 00110 00116 virtual void setText(const String &s); 00117 00126 String::Type textEncoding() const; 00127 00135 void setTextEncoding(String::Type encoding); 00136 00137 protected: 00138 // Reimplementations. 00139 00140 virtual void parseFields(const ByteVector &data); 00141 virtual ByteVector renderFields() const; 00142 00143 private: 00147 UnsynchronizedLyricsFrame(const ByteVector &data, Header *h); 00148 UnsynchronizedLyricsFrame(const UnsynchronizedLyricsFrame &); 00149 UnsynchronizedLyricsFrame &operator=(const UnsynchronizedLyricsFrame &); 00150 00151 class UnsynchronizedLyricsFramePrivate; 00152 UnsynchronizedLyricsFramePrivate *d; 00153 }; 00154 00155 } 00156 } 00157 #endif