TagLib  2.2.1
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 
35 namespace TagLib {
36 
37  namespace ID3v2 {
38 
40 
51  {
52  friend class FrameFactory;
53 
54  public:
55 
61 
69  explicit GeneralEncapsulatedObjectFrame(const ByteVector &data);
70 
75 
78 
82  String toString() const override;
83 
87  StringList toStringList() const override;
88 
96  String::Type textEncoding() const;
97 
104  void setTextEncoding(String::Type encoding);
105 
109  String mimeType() const;
110 
114  void setMimeType(const String &type);
115 
121  String fileName() const;
122 
128  void setFileName(const String &name);
129 
138  String description() const;
139 
148  void setDescription(const String &desc);
149 
159  ByteVector object() const;
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
An implementation of ID3v2 headers.
Definition: id3v2header.h:48
A wide string class suitable for unicode.
Definition: tstring.h:82
A byte vector.
Definition: tbytevector.h:45
A factory for creating ID3v2 frames during parsing.
Definition: id3v2framefactory.h:67
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55
A list of strings.
Definition: tstringlist.h:43
ID3v2 frame implementation.
Definition: id3v2frame.h:56
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
An ID3v2 general encapsulated object frame implementation.
Definition: generalencapsulatedobjectframe.h:50
Type
Definition: tstring.h:96
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41