| TagLib 1.13 |  |

generalencapsulatedobjectframe.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2002 - 2008 by Scott Wheeler
3 email : wheeler@kde.org
4
5 copyright : (C) 2006 by Aaron VonderHaar
6 email : avh4@users.sourceforge.net
7 ***************************************************************************/
8
9/***************************************************************************
10 * This library is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU Lesser General Public License version *
12 * 2.1 as published by the Free Software Foundation. *
13 * *
14 * This library is distributed in the hope that it will be useful, but *
15 * WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
17 * Lesser General Public License for more details. *
18 * *
19 * You should have received a copy of the GNU Lesser General Public *
20 * License along with this library; if not, write to the Free Software *
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
22 * 02110-1301 USA *
23 * *
24 * Alternatively, this file is available under the Mozilla Public *
25 * License Version 1.1. You may obtain a copy of the License at *
26 * http://www.mozilla.org/MPL/ *
27 ***************************************************************************/
28
29#ifndef TAGLIB_GENERALENCAPSULATEDOBJECT_H
30#define TAGLIB_GENERALENCAPSULATEDOBJECT_H
31
32#include "id3v2frame.h"
33#include "id3v2header.h"
34#include "taglib_export.h"
35
36 namespace TagLib {
37
38 namespace ID3v2 {
39
41
51 class TAGLIB_EXPORT GeneralEncapsulatedObjectFrame : public Frame
52 {
53 friend class FrameFactory;
54
55 public:
56
61 GeneralEncapsulatedObjectFrame();
62
70 explicit GeneralEncapsulatedObjectFrame(const ByteVector &data);
71
75 virtual ~GeneralEncapsulatedObjectFrame();
76
80 virtual String toString() const;
81
89 String::Type textEncoding() const;
90
97 void setTextEncoding(String::Type encoding);
98
102 String mimeType() const;
103
107 void setMimeType(const String &type);
108
114 String fileName() const;
115
121 void setFileName(const String &name);
122
131 String description() const;
132
141 void setDescription(const String &desc);
142
152 ByteVector object() const;
153
162 void setObject(const ByteVector &object);
163
164 protected:
165 virtual void parseFields(const ByteVector &data);
166 virtual ByteVector renderFields() const;
167
168 private:
169 GeneralEncapsulatedObjectFrame(const ByteVector &data, Header *h);
170 GeneralEncapsulatedObjectFrame(const GeneralEncapsulatedObjectFrame &);
171 GeneralEncapsulatedObjectFrame &operator=(const GeneralEncapsulatedObjectFrame &);
172
173 class GeneralEncapsulatedObjectFramePrivate;
174 GeneralEncapsulatedObjectFramePrivate *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::GeneralEncapsulatedObjectFrame
An ID3v2 general encapsulated object frame implementation.
Definition: generalencapsulatedobjectframe.h:52
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::textEncoding
String::Type textEncoding() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setMimeType
void setMimeType(const String &type)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::~GeneralEncapsulatedObjectFrame
virtual ~GeneralEncapsulatedObjectFrame()
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setFileName
void setFileName(const String &name)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setTextEncoding
void setTextEncoding(String::Type encoding)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::GeneralEncapsulatedObjectFrame
GeneralEncapsulatedObjectFrame()
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::toString
virtual String toString() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::object
ByteVector object() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::description
String description() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::mimeType
String mimeType() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setDescription
void setDescription(const String &desc)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::fileName
String fileName() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::parseFields
virtual void parseFields(const ByteVector &data)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setObject
void setObject(const ByteVector &object)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::GeneralEncapsulatedObjectFrame
GeneralEncapsulatedObjectFrame(const ByteVector &data)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::renderFields
virtual ByteVector renderFields() const
TagLib::ID3v2::Header
An implementation of ID3v2 headers.
Definition: id3v2header.h:49
TagLib::String
A wide string class suitable for unicode.
Definition: tstring.h:85
TagLib::String::Type
Type
Definition: tstring.h:97
id3v2frame.h
id3v2header.h
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40