TagLib 1.8.0 (apefile.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
ape
apefile.h
Go to the documentation of this file.
1
/***************************************************************************
2
copyright : (C) 2010 by Alex Novichkov
3
email : novichko@atnet.ru
4
5
copyright : (C) 2006 by Lukáš Lalinský
6
email : lalinsky@gmail.com
7
(original WavPack implementation)
8
9
copyright : (C) 2004 by Allan Sandfeld Jensen
10
email : kde@carewolf.org
11
(original MPC implementation)
12
***************************************************************************/
13
14
/***************************************************************************
15
* This library is free software; you can redistribute it and/or modify *
16
* it under the terms of the GNU Lesser General Public License version *
17
* 2.1 as published by the Free Software Foundation. *
18
* *
19
* This library is distributed in the hope that it will be useful, but *
20
* WITHOUT ANY WARRANTY; without even the implied warranty of *
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22
* Lesser General Public License for more details. *
23
* *
24
* You should have received a copy of the GNU Lesser General Public *
25
* License along with this library; if not, write to the Free Software *
26
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
27
* 02110-1301 USA *
28
* *
29
* Alternatively, this file is available under the Mozilla Public *
30
* License Version 1.1. You may obtain a copy of the License at *
31
* http://www.mozilla.org/MPL/ *
32
***************************************************************************/
33
34
#ifndef TAGLIB_APEFILE_H
35
#define TAGLIB_APEFILE_H
36
37
#include "
tfile.h
"
38
#include "
taglib_export.h
"
39
#include "
apeproperties.h
"
40
41
namespace
TagLib {
42
43
class
Tag
;
44
45
namespace
ID3v1 {
class
Tag
; }
46
namespace
APE {
class
Tag
; }
47
49
57
namespace
APE {
58
60
68
class
TAGLIB_EXPORT
File
:
public
TagLib::File
69
{
70
public
:
75
enum
TagTypes
{
77
NoTags = 0x0000,
79
ID3v1 = 0x0001,
81
APE = 0x0002,
83
AllTags = 0xffff
84
};
85
91
File
(
FileName
file,
bool
readProperties =
true
,
92
Properties::ReadStyle
propertiesStyle =
Properties::Average
);
93
102
File
(
IOStream
*stream,
bool
readProperties =
true
,
103
Properties::ReadStyle
propertiesStyle =
Properties::Average
);
104
108
virtual
~
File
();
109
114
virtual
TagLib::Tag
*tag()
const
;
115
121
PropertyMap
properties()
const
;
122
127
void
removeUnsupportedProperties(
const
StringList
&properties);
128
134
PropertyMap
setProperties(
const
PropertyMap
&);
139
virtual
Properties
*audioProperties()
const
;
140
147
virtual
bool
save();
148
161
ID3v1::Tag
*ID3v1Tag(
bool
create =
false
);
162
174
APE::Tag
*APETag(
bool
create =
false
);
175
184
void
strip(
int
tags = AllTags);
185
186
private
:
187
File
(
const
File
&);
188
File
&operator=(
const
File
&);
189
190
void
read(
bool
readProperties,
Properties::ReadStyle
propertiesStyle);
191
void
scan();
192
long
findID3v1();
193
long
findAPE();
194
195
class
FilePrivate;
196
FilePrivate *d;
197
};
198
}
199
}
200
201
#endif