TagLib 1.11 (TagLib: unsynchronizedlyricsframe.h Source File)

unsynchronizedlyricsframe.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor, Boston, MA         *
00021  *   02110-1301  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 
00148       PropertyMap asProperties() const;
00149 
00157       static UnsynchronizedLyricsFrame *findByDescription(const Tag *tag, const String &d);
00158 
00159     protected:
00160       // Reimplementations.
00161 
00162       virtual void parseFields(const ByteVector &data);
00163       virtual ByteVector renderFields() const;
00164 
00165     private:
00169       UnsynchronizedLyricsFrame(const ByteVector &data, Header *h);
00170       UnsynchronizedLyricsFrame(const UnsynchronizedLyricsFrame &);
00171       UnsynchronizedLyricsFrame &operator=(const UnsynchronizedLyricsFrame &);
00172 
00173       class UnsynchronizedLyricsFramePrivate;
00174       UnsynchronizedLyricsFramePrivate *d;
00175     };
00176 
00177   }
00178 }
00179 #endif