TagLib API Documentation
privateframe.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2008 by Serkan Kalyoncu
3 copyright : (C) 2008 by Scott Wheeler
4 email : wheeler@kde.org
5***************************************************************************/
6
7/***************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License version *
10 * 2.1 as published by the Free Software Foundation. *
11 * *
12 * This library is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15 * Lesser General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License along with this library; if not, write to the Free Software *
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
20 * 02110-1301 USA *
21 * *
22 * Alternatively, this file is available under the Mozilla Public *
23 * License Version 1.1. You may obtain a copy of the License at *
24 * http://www.mozilla.org/MPL/ *
25 ***************************************************************************/
26
27#ifndef TAGLIB_PRIVATEFRAME_H
28#define TAGLIB_PRIVATEFRAME_H
29
30#include "taglib_export.h"
31#include "id3v2frame.h"
32
33namespace TagLib {
34
35 namespace ID3v2 {
36
38
40 {
41 friend class FrameFactory;
42
43 public:
48
54 explicit PrivateFrame(const ByteVector &data);
55
59 ~PrivateFrame() override;
60
61 PrivateFrame(const PrivateFrame &) = delete;
63
69 String toString() const override;
70
75 String owner() const;
76
81
86 void setOwner(const String &s);
87
91 void setData(const ByteVector &data);
92
93 protected:
94 // Reimplementations.
95
96 void parseFields(const ByteVector &data) override;
97 ByteVector renderFields() const override;
98
99 private:
103 PrivateFrame(const ByteVector &data, Header *h);
104
105 class PrivateFramePrivate;
107 std::unique_ptr<PrivateFramePrivate> d;
108 };
109
110 } // namespace ID3v2
111} // namespace TagLib
112#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 implementation of ID3v2 headers.
Definition: id3v2header.h:49
An implementation of ID3v2 private frame.
Definition: privateframe.h:40
void parseFields(const ByteVector &data) override
String toString() const override
ByteVector renderFields() const override
void setData(const ByteVector &data)
PrivateFrame & operator=(const PrivateFrame &)=delete
ByteVector data() const
PrivateFrame(const ByteVector &data)
void setOwner(const String &s)
PrivateFrame(const PrivateFrame &)=delete
A wide string class suitable for unicode.
Definition: tstring.h:83
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