asftag.h
Go to the documentation of this file.
/**************************************************************************
copyright : (C) 2005-2007 by Lukáš Lalinský
email : lalinsky@gmail.com
**************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_ASFTAG_H
#define TAGLIB_ASFTAG_H
#include "tlist.h"
#include "tmap.h"
#include "taglib_export.h"
#include "tag.h"
#include "asfattribute.h"
namespace TagLib {
namespace ASF {
using AttributeList = List<Attribute>;
using AttributeListMap = Map<String, AttributeList>;
class TAGLIB_EXPORT Tag : public TagLib::Tag {
friend class File;
public:
Tag();
~Tag() override;
Tag(const Tag &) = delete;
Tag &operator=(const Tag &) = delete;
String title() const override;
String artist() const override;
String album() const override;
String comment() const override;
String genre() const override;
virtual String rating() const;
virtual String copyright() const;
unsigned int year() const override;
unsigned int track() const override;
void setTitle(const String &value) override;
void setArtist(const String &value) override;
void setAlbum(const String &value) override;
void setComment(const String &value) override;
virtual void setRating(const String &value);
virtual void setCopyright(const String &value);
void setGenre(const String &value) override;
void setYear(unsigned int value) override;
void setTrack(unsigned int value) override;
bool isEmpty() const override;
AttributeListMap &attributeListMap();
const AttributeListMap &attributeListMap() const;
bool contains(const String &key) const;
void removeItem(const String &key);
AttributeList attribute(const String &name) const;
void setAttribute(const String &name, const Attribute &attribute);
void setAttribute(const String &name, const AttributeList &values);
void addAttribute(const String &name, const Attribute &attribute);
PropertyMap properties() const override;
void removeUnsupportedProperties(const StringList &props) override;
PropertyMap setProperties(const PropertyMap &props) override;
StringList complexPropertyKeys() const override;
List<VariantMap> complexProperties(const String &key) const override;
bool setComplexProperties(const String &key, const List<VariantMap> &value) override;
private:
class TagPrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<TagPrivate> d;
};
} // namespace ASF
} // namespace TagLib
#endif
asfattribute.h
TagLib::ASF::Attribute
Attribute of ASF (WMA) metadata.
Definition asfattribute.h:44
TagLib::ASF::Tag::removeUnsupportedProperties
void removeUnsupportedProperties(const StringList &props) override
TagLib::ASF::Tag::attribute
AttributeList attribute(const String &name) const
TagLib::ASF::Tag::setAlbum
void setAlbum(const String &value) override
TagLib::ASF::Tag::rating
virtual String rating() const
TagLib::ASF::Tag::setTrack
void setTrack(unsigned int value) override
TagLib::ASF::Tag::complexPropertyKeys
StringList complexPropertyKeys() const override
TagLib::ASF::Tag::~Tag
~Tag() override
TagLib::ASF::Tag::contains
bool contains(const String &key) const
TagLib::ASF::Tag::setArtist
void setArtist(const String &value) override
TagLib::ASF::Tag::setGenre
void setGenre(const String &value) override
TagLib::ASF::Tag::Tag
Tag(const Tag &)=delete
TagLib::ASF::Tag::isEmpty
bool isEmpty() const override
TagLib::ASF::Tag::setTitle
void setTitle(const String &value) override
TagLib::ASF::Tag::addAttribute
void addAttribute(const String &name, const Attribute &attribute)
TagLib::ASF::Tag::setRating
virtual void setRating(const String &value)
TagLib::ASF::Tag::title
String title() const override
TagLib::ASF::Tag::setYear
void setYear(unsigned int value) override
TagLib::ASF::Tag::File
friend class File
Definition asftag.h:46
TagLib::ASF::Tag::setComplexProperties
bool setComplexProperties(const String &key, const List< VariantMap > &value) override
TagLib::ASF::Tag::setAttribute
void setAttribute(const String &name, const AttributeList &values)
TagLib::ASF::Tag::removeItem
void removeItem(const String &key)
TagLib::ASF::Tag::operator=
Tag & operator=(const Tag &)=delete
TagLib::ASF::Tag::track
unsigned int track() const override
TagLib::ASF::Tag::genre
String genre() const override
TagLib::ASF::Tag::complexProperties
List< VariantMap > complexProperties(const String &key) const override
TagLib::ASF::Tag::properties
PropertyMap properties() const override
TagLib::ASF::Tag::setProperties
PropertyMap setProperties(const PropertyMap &props) override
TagLib::ASF::Tag::setCopyright
virtual void setCopyright(const String &value)
TagLib::ASF::Tag::attributeListMap
const AttributeListMap & attributeListMap() const
TagLib::ASF::Tag::artist
String artist() const override
TagLib::ASF::Tag::setComment
void setComment(const String &value) override
TagLib::ASF::Tag::album
String album() const override
TagLib::ASF::Tag::setAttribute
void setAttribute(const String &name, const Attribute &attribute)
TagLib::ASF::Tag::Tag
Tag()
TagLib::ASF::Tag::attributeListMap
AttributeListMap & attributeListMap()
TagLib::ASF::Tag::copyright
virtual String copyright() const
TagLib::ASF::Tag::comment
String comment() const override
TagLib::ASF::Tag::year
unsigned int year() const override
TagLib::List
A generic, implicitly shared list.
Definition tlist.h:54
TagLib::Map
A generic, implicitly shared map.
Definition tmap.h:45
TagLib::PropertyMap
A map for format-independent <key,values> tag representations.
Definition tpropertymap.h:123
TagLib::StringList
A list of strings.
Definition tstringlist.h:44
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::Tag
A simple, generic interface to common audio metadata fields.
Definition tag.h:49
TagLib::ASF
An implementation of ASF (WMA) metadata.
Definition asfattribute.h:37
TagLib::ASF::AttributeList
List< Attribute > AttributeList
Definition asftag.h:39
TagLib::ASF::AttributeListMap
Map< String, AttributeList > AttributeListMap
Definition asftag.h:40
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
tag.h
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition taglib_export.h:40
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55
tlist.h
tmap.h