TagLib 1.7.2 (tag.h Source File)
Home
Class Hierarchy
Namespaces
Classes
Headers
Namespace Members
Class Members
File Members
taglib
tag.h
Go to the documentation of this file.
1
/***************************************************************************
2
copyright : (C) 2002 - 2008 by Scott Wheeler
3
email : wheeler@kde.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_TAG_H
27
#define TAGLIB_TAG_H
28
29
#include "
taglib_export.h
"
30
#include "
tstring.h
"
31
32
namespace
TagLib {
33
35
44
class
TAGLIB_EXPORT
Tag
45
{
46
public
:
47
51
virtual
~
Tag
();
52
57
virtual
String
title()
const
= 0;
58
63
virtual
String
artist()
const
= 0;
64
69
virtual
String
album()
const
= 0;
70
75
virtual
String
comment()
const
= 0;
76
81
virtual
String
genre
()
const
= 0;
82
86
virtual
uint
year()
const
= 0;
87
92
virtual
uint
track()
const
= 0;
93
98
virtual
void
setTitle(
const
String
&s) = 0;
99
104
virtual
void
setArtist(
const
String
&s) = 0;
105
110
virtual
void
setAlbum(
const
String
&s) = 0;
111
116
virtual
void
setComment(
const
String
&s) = 0;
117
125
virtual
void
setGenre(
const
String
&s) = 0;
126
130
virtual
void
setYear(
uint
i) = 0;
131
135
virtual
void
setTrack(
uint
i) = 0;
136
142
virtual
bool
isEmpty()
const
;
143
155
static
void
duplicate(
const
Tag
*source,
Tag
*target,
bool
overwrite =
true
);
156
157
protected
:
162
Tag
();
163
164
private
:
165
Tag
(
const
Tag
&);
166
Tag
&operator=(
const
Tag
&);
167
168
class
TagPrivate;
169
TagPrivate *d;
170
};
171
}
172
173
#endif