TagLib 1.8.0 (mpcfile.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
mpc
mpcfile.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_MPCFILE_H
27
#define TAGLIB_MPCFILE_H
28
29
#include "
taglib_export.h
"
30
#include "
tfile.h
"
31
#include "
tag.h
"
32
33
#include "
mpcproperties.h
"
34
35
#include "
tlist.h
"
36
37
namespace
TagLib {
38
39
class
Tag;
40
41
namespace
ID3v1 {
class
Tag; }
42
namespace
APE {
class
Tag; }
43
45
54
namespace
MPC {
55
57
66
class
TAGLIB_EXPORT
File
:
public
TagLib::File
67
{
68
public
:
73
enum
TagTypes
{
75
NoTags = 0x0000,
77
ID3v1 = 0x0001,
79
ID3v2 = 0x0002,
81
APE = 0x0004,
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
123
void
removeUnsupportedProperties(
const
StringList
&properties);
124
130
PropertyMap
setProperties(
const
PropertyMap
&);
131
136
virtual
Properties
*audioProperties()
const
;
137
141
virtual
bool
save();
142
155
ID3v1::Tag
*ID3v1Tag(
bool
create =
false
);
156
169
APE::Tag
*APETag(
bool
create =
false
);
170
180
void
strip(
int
tags = AllTags);
181
186
void
remove
(
int
tags = AllTags);
187
188
private
:
189
File
(
const
File
&);
190
File
&operator=(
const
File
&);
191
192
void
read(
bool
readProperties,
Properties::ReadStyle
propertiesStyle);
193
void
scan();
194
long
findAPE();
195
long
findID3v1();
196
long
findID3v2();
197
198
class
FilePrivate;
199
FilePrivate *d;
200
};
201
}
202
}
203
204
#endif