| TagLib 1.13 |  |

unsynchronizedlyricsframe.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2002 - 2008 by Scott Wheeler
3 email : wheeler@kde.org
4 copyright : (C) 2006 by Urs Fleisch
5 email : ufleisch@users.sourceforge.net
6 ***************************************************************************/
7
8/***************************************************************************
9 * This library is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU Lesser General Public License version *
11 * 2.1 as published by the Free Software Foundation. *
12 * *
13 * This library is distributed in the hope that it will be useful, but *
14 * WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
21 * 02110-1301 USA *
22 * *
23 * Alternatively, this file is available under the Mozilla Public *
24 * License Version 1.1. You may obtain a copy of the License at *
25 * http://www.mozilla.org/MPL/ *
26 ***************************************************************************/
27
28#ifndef TAGLIB_UNSYNCHRONIZEDLYRICSFRAME_H
29#define TAGLIB_UNSYNCHRONIZEDLYRICSFRAME_H
30
31#include "id3v2frame.h"
32
33 namespace TagLib {
34
35 namespace ID3v2 {
36
38
41 class TAGLIB_EXPORT UnsynchronizedLyricsFrame : public Frame
42 {
43 friend class FrameFactory;
44
45 public:
50 explicit UnsynchronizedLyricsFrame(String::Type encoding = String::Latin1);
51
55 explicit UnsynchronizedLyricsFrame(const ByteVector &data);
56
60 virtual ~UnsynchronizedLyricsFrame();
61
67 virtual String toString() const;
68
77 ByteVector language() const;
78
86 String description() const;
87
93 String text() const;
94
102 void setLanguage(const ByteVector &languageCode);
103
109 void setDescription(const String &s);
110
116 virtual void setText(const String &s);
117
126 String::Type textEncoding() const;
127
135 void setTextEncoding(String::Type encoding);
136
137
148 PropertyMap asProperties() const;
149
157 static UnsynchronizedLyricsFrame *findByDescription(const Tag *tag, const String &d);
158
159 protected:
160 // Reimplementations.
161
162 virtual void parseFields(const ByteVector &data);
163 virtual ByteVector renderFields() const;
164
165 private:
169 UnsynchronizedLyricsFrame(const ByteVector &data, Header *h);
170 UnsynchronizedLyricsFrame(const UnsynchronizedLyricsFrame &);
171 UnsynchronizedLyricsFrame &operator=(const UnsynchronizedLyricsFrame &);
172
173 class UnsynchronizedLyricsFramePrivate;
174 UnsynchronizedLyricsFramePrivate *d;
175 };
176
177 }
178}
179#endif
TagLib::ByteVector
A byte vector.
Definition: tbytevector.h:46
TagLib::ID3v2::FrameFactory
A factory for creating ID3v2 frames during parsing.
Definition: id3v2framefactory.h:66
TagLib::ID3v2::Frame
ID3v2 frame implementation.
Definition: id3v2frame.h:55
TagLib::ID3v2::Header
An implementation of ID3v2 headers.
Definition: id3v2header.h:49
TagLib::ID3v2::Tag
The main class in the ID3v2 implementation.
Definition: id3v2tag.h:128
TagLib::ID3v2::UnsynchronizedLyricsFrame
ID3v2 unsynchronized lyrics frame.
Definition: unsynchronizedlyricsframe.h:42
TagLib::ID3v2::UnsynchronizedLyricsFrame::language
ByteVector language() const
TagLib::ID3v2::UnsynchronizedLyricsFrame::textEncoding
String::Type textEncoding() const
TagLib::ID3v2::UnsynchronizedLyricsFrame::setTextEncoding
void setTextEncoding(String::Type encoding)
TagLib::ID3v2::UnsynchronizedLyricsFrame::UnsynchronizedLyricsFrame
UnsynchronizedLyricsFrame(const ByteVector &data)
TagLib::ID3v2::UnsynchronizedLyricsFrame::setDescription
void setDescription(const String &s)
TagLib::ID3v2::UnsynchronizedLyricsFrame::text
String text() const
TagLib::ID3v2::UnsynchronizedLyricsFrame::description
String description() const
TagLib::ID3v2::UnsynchronizedLyricsFrame::toString
virtual String toString() const
TagLib::ID3v2::UnsynchronizedLyricsFrame::~UnsynchronizedLyricsFrame
virtual ~UnsynchronizedLyricsFrame()
TagLib::ID3v2::UnsynchronizedLyricsFrame::findByDescription
static UnsynchronizedLyricsFrame * findByDescription(const Tag *tag, const String &d)
TagLib::ID3v2::UnsynchronizedLyricsFrame::parseFields
virtual void parseFields(const ByteVector &data)
TagLib::ID3v2::UnsynchronizedLyricsFrame::UnsynchronizedLyricsFrame
UnsynchronizedLyricsFrame(String::Type encoding=String::Latin1)
TagLib::ID3v2::UnsynchronizedLyricsFrame::asProperties
PropertyMap asProperties() const
TagLib::ID3v2::UnsynchronizedLyricsFrame::setText
virtual void setText(const String &s)
TagLib::ID3v2::UnsynchronizedLyricsFrame::renderFields
virtual ByteVector renderFields() const
TagLib::ID3v2::UnsynchronizedLyricsFrame::setLanguage
void setLanguage(const ByteVector &languageCode)
TagLib::PropertyMap
A map for format-independent <key,valuelist> tag representations.
Definition: tpropertymap.h:119
TagLib::String
A wide string class suitable for unicode.
Definition: tstring.h:85
TagLib::String::Type
Type
Definition: tstring.h:97
TagLib::String::Latin1
@ Latin1
Definition: tstring.h:101
id3v2frame.h
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40