TagLib 1.8.0 (apefooter.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
ape
apefooter.h
Go to the documentation of this file.
1
/***************************************************************************
2
copyright : (C) 2004 by Allan Sandfeld Jensen
3
email : kde@carewolf.org
4
***************************************************************************/
5
6
/***************************************************************************
7
* This library is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU Lesser General Public License version *
9
* 2.1 as published by the Free Software Foundation. *
10
* *
11
* This library is distributed in the hope that it will be useful, but *
12
* WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14
* Lesser General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU Lesser General Public *
17
* License along with this library; if not, write to the Free Software *
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19
* 02110-1301 USA *
20
* *
21
* Alternatively, this file is available under the Mozilla Public *
22
* License Version 1.1. You may obtain a copy of the License at *
23
* http://www.mozilla.org/MPL/ *
24
***************************************************************************/
25
26
#ifndef TAGLIB_APEFOOTER_H
27
#define TAGLIB_APEFOOTER_H
28
29
#include "
tbytevector.h
"
30
#include "
taglib_export.h
"
31
32
namespace
TagLib {
33
34
namespace
APE {
35
37
45
class
TAGLIB_EXPORT
Footer
46
{
47
public
:
51
Footer
();
52
57
Footer
(
const
ByteVector
&data);
58
62
virtual
~
Footer
();
63
67
uint
version()
const
;
68
72
bool
headerPresent()
const
;
73
77
bool
footerPresent()
const
;
78
82
bool
isHeader()
const
;
83
87
void
setHeaderPresent(
bool
b)
const
;
88
92
uint
itemCount()
const
;
93
98
void
setItemCount(
uint
s);
99
106
uint
tagSize()
const
;
107
114
uint
completeTagSize()
const
;
115
120
void
setTagSize(
uint
s);
121
125
static
uint
size();
126
131
static
ByteVector
fileIdentifier();
132
137
void
setData(
const
ByteVector
&data);
138
142
ByteVector
renderFooter()
const
;
143
148
ByteVector
renderHeader()
const
;
149
150
protected
:
155
void
parse(
const
ByteVector
&data);
156
160
ByteVector
render(
bool
isHeader)
const
;
161
162
private
:
163
Footer
(
const
Footer
&);
164
Footer
&operator=(
const
Footer
&);
165
166
class
FooterPrivate;
167
FooterPrivate *d;
168
};
169
170
}
171
}
172
173
#endif