TagLib  1.13.1
asftag.h
Go to the documentation of this file.
1/**************************************************************************
2 copyright : (C) 2005-2007 by Lukáš Lalinský
3 email : lalinsky@gmail.com
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_ASFTAG_H
27#define TAGLIB_ASFTAG_H
28
29#include "tag.h"
30#include "tlist.h"
31#include "tmap.h"
32#include "taglib_export.h"
33#include "asfattribute.h"
34
35namespace TagLib {
36
37 namespace ASF {
38
41
42 class TAGLIB_EXPORT Tag : public TagLib::Tag {
43
44 friend class File;
45
46 public:
47
48 Tag();
49
50 virtual ~Tag();
51
55 virtual String title() const;
56
60 virtual String artist() const;
61
66 virtual String album() const;
67
71 virtual String comment() const;
72
77 virtual String genre() const;
78
82 virtual String rating() const;
83
88 virtual String copyright() const;
89
93 virtual unsigned int year() const;
94
99 virtual unsigned int track() const;
100
104 virtual void setTitle(const String &s);
105
109 virtual void setArtist(const String &s);
110
115 virtual void setAlbum(const String &s);
116
120 virtual void setComment(const String &s);
121
125 virtual void setRating(const String &s);
126
130 virtual void setCopyright(const String &s);
131
135 virtual void setGenre(const String &s);
136
140 virtual void setYear(unsigned int i);
141
145 virtual void setTrack(unsigned int i);
146
152 virtual bool isEmpty() const;
153
159
164 // BIC: return by value
166
170 bool contains(const String &name) const;
171
175 void removeItem(const String &name);
176
181 AttributeList attribute(const String &name) const;
182
187 void setAttribute(const String &name, const Attribute &attribute);
188
192 void setAttribute(const String &name, const AttributeList &values);
193
198 void addAttribute(const String &name, const Attribute &attribute);
199
203
204 private:
205
206 class TagPrivate;
207 TagPrivate *d;
208 };
209 } // namespace ASF
210} // namespace TagLib
211#endif
Definition: asfattribute.h:42
Definition: asffile.h:45
Definition: asftag.h:42
AttributeList attribute(const String &name) const
virtual String album() const
void removeUnsupportedProperties(const StringList &properties)
virtual String rating() const
virtual void setTrack(unsigned int i)
PropertyMap setProperties(const PropertyMap &properties)
virtual void setYear(unsigned int i)
PropertyMap properties() const
virtual unsigned int year() const
void addAttribute(const String &name, const Attribute &attribute)
void setAttribute(const String &name, const AttributeList &values)
virtual String genre() const
void removeItem(const String &name)
virtual unsigned int track() const
const AttributeListMap & attributeListMap() const
void setAttribute(const String &name, const Attribute &attribute)
virtual bool isEmpty() const
virtual void setRating(const String &s)
virtual String artist() const
AttributeListMap & attributeListMap()
virtual void setGenre(const String &s)
virtual void setAlbum(const String &s)
virtual String copyright() const
virtual void setArtist(const String &s)
virtual void setComment(const String &s)
virtual void setTitle(const String &s)
bool contains(const String &name) const
virtual String comment() const
virtual void setCopyright(const String &s)
virtual String title() const
A generic, implicitly shared list.
Definition: tlist.h:54
A generic, implicitly shared map.
Definition: tmap.h:44
A map for format-independent <key,valuelist> tag representations.
Definition: tpropertymap.h:119
A list of strings.
Definition: tstringlist.h:46
A wide string class suitable for unicode.
Definition: tstring.h:85
Definition: tag.h:47
List< Attribute > AttributeList
Definition: asftag.h:39
Map< String, AttributeList > AttributeListMap
Definition: asftag.h:40
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40