TagLib 1.7.2 (apeitem.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
ape
apeitem.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_APEITEM_H
27
#define TAGLIB_APEITEM_H
28
29
#include "
tbytevector.h
"
30
#include "
tstring.h
"
31
#include "
tstringlist.h
"
32
33
namespace
TagLib {
34
35
namespace
APE {
36
38
42
class
TAGLIB_EXPORT
Item
43
{
44
public
:
48
enum
ItemTypes
{
50
Text = 0,
52
Binary = 1,
54
Locator = 2
55
};
59
Item
();
60
64
// BIC: Remove this, StringList has a constructor from a single string
65
Item
(
const
String
&key,
const
String
&value);
66
70
Item
(
const
String
&key,
const
StringList
&values);
71
75
Item
(
const
Item
&item);
76
80
virtual
~
Item
();
81
85
Item
&operator=(
const
Item
&item);
86
90
String
key()
const
;
91
99
ByteVector
value()
const
;
100
104
void
setKey(
const
String
&key);
105
111
void
setValue(
const
String
&value);
112
119
void
setValues(
const
StringList
&values);
120
126
void
appendValue(
const
String
&value);
127
133
void
appendValues(
const
StringList
&values);
134
138
int
size()
const
;
139
144
String
toString()
const
;
145
150
StringList
toStringList()
const
;
151
155
StringList
values()
const
;
156
160
ByteVector
render()
const
;
161
165
void
parse(
const
ByteVector
& data);
166
170
void
setReadOnly(
bool
readOnly);
171
175
bool
isReadOnly()
const
;
176
182
void
setType(ItemTypes type);
183
187
ItemTypes type()
const
;
188
192
bool
isEmpty()
const
;
193
194
private
:
195
class
ItemPrivate;
196
ItemPrivate *d;
197
};
198
}
199
200
}
201
202
#endif
203
204