asftag.h

Go to the documentation of this file.
00001 /**************************************************************************
00002     copyright            : (C) 2005-2007 by Lukáš Lalinský
00003     email                : lalinsky@gmail.com
00004  **************************************************************************/
00005 
00006 /***************************************************************************
00007  *   This library is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU Lesser General Public License version   *
00009  *   2.1 as published by the Free Software Foundation.                     *
00010  *                                                                         *
00011  *   This library is distributed in the hope that it will be useful, but   *
00012  *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00014  *   Lesser General Public License for more details.                       *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Lesser General Public      *
00017  *   License along with this library; if not, write to the Free Software   *
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00019  *   USA                                                                   *
00020  *                                                                         *
00021  *   Alternatively, this file is available under the Mozilla Public        *
00022  *   License Version 1.1.  You may obtain a copy of the License at         *
00023  *   http://www.mozilla.org/MPL/                                           *
00024  ***************************************************************************/
00025 
00026 #ifndef TAGLIB_ASFTAG_H
00027 #define TAGLIB_ASFTAG_H
00028 
00029 #include "tag.h"
00030 #include "tlist.h"
00031 #include "tmap.h"
00032 #include "taglib_export.h"
00033 #include "asfattribute.h"
00034 
00035 namespace TagLib {
00036 
00037   namespace ASF {
00038 
00039     typedef List<Attribute> AttributeList;
00040     typedef Map<String, AttributeList> AttributeListMap;
00041 
00042     class TAGLIB_EXPORT Tag : public TagLib::Tag {
00043 
00044       friend class File;
00045 
00046     public:
00047 
00048       Tag();
00049 
00050       virtual ~Tag();
00051 
00055       virtual String title() const;
00056 
00060       virtual String artist() const;
00061 
00066       virtual String album() const;
00067 
00071       virtual String comment() const;
00072 
00077       virtual String genre() const;
00078 
00082       virtual String rating() const;
00083 
00088       virtual String copyright() const;
00089 
00093       virtual uint year() const;
00094 
00099       virtual uint track() const;
00100 
00104       virtual void setTitle(const String &s);
00105 
00109       virtual void setArtist(const String &s);
00110 
00115       virtual void setAlbum(const String &s);
00116 
00120       virtual void setComment(const String &s);
00121 
00125       virtual void setRating(const String &s);
00126 
00130       virtual void setCopyright(const String &s);
00131 
00135       virtual void setGenre(const String &s);
00136 
00140       virtual void setYear(uint i);
00141 
00145       virtual void setTrack(uint i);
00146 
00152       virtual bool isEmpty() const;
00153 
00160       AttributeListMap &attributeListMap();
00161 
00165       void removeItem(const String &name);
00166 
00171       void setAttribute(const String &name, const Attribute &attribute);
00172 
00177       void addAttribute(const String &name, const Attribute &attribute);
00178 
00179     private:
00180 
00181       class TagPrivate;
00182       TagPrivate *d;
00183     };
00184   }
00185 }
00186 #endif