TagLib API Documentation
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 "taglib_export.h"
33#include "id3v2frame.h"
34
35namespace TagLib {
36
37 namespace ID3v2 {
38
40
51 {
52 friend class FrameFactory;
53
54 public:
55
61
70
75
78
82 String toString() const override;
83
87 StringList toStringList() const override;
88
97
105
110
114 void setMimeType(const String &type);
115
122
128 void setFileName(const String &name);
129
139
148 void setDescription(const String &desc);
149
160
169 void setObject(const ByteVector &data);
170
171 protected:
172 void parseFields(const ByteVector &data) override;
173 ByteVector renderFields() const override;
174
175 private:
177
178 class GeneralEncapsulatedObjectFramePrivate;
180 std::unique_ptr<GeneralEncapsulatedObjectFramePrivate> d;
181 };
182 } // namespace ID3v2
183} // namespace TagLib
184
185#endif
A byte vector.
Definition: tbytevector.h:46
A factory for creating ID3v2 frames during parsing.
Definition: id3v2framefactory.h:68
ID3v2 frame implementation.
Definition: id3v2frame.h:57
An ID3v2 general encapsulated object frame implementation.
Definition: generalencapsulatedobjectframe.h:51
StringList toStringList() const override
void setObject(const ByteVector &data)
void setTextEncoding(String::Type encoding)
GeneralEncapsulatedObjectFrame(const GeneralEncapsulatedObjectFrame &)=delete
GeneralEncapsulatedObjectFrame & operator=(const GeneralEncapsulatedObjectFrame &)=delete
void parseFields(const ByteVector &data) override
ByteVector renderFields() const override
GeneralEncapsulatedObjectFrame(const ByteVector &data)
An implementation of ID3v2 headers.
Definition: id3v2header.h:49
A list of strings.
Definition: tstringlist.h:44
A wide string class suitable for unicode.
Definition: tstring.h:83
Type
Definition: tstring.h:96
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55