From: Michael Helmling Date: Tue, 14 Feb 2012 20:35:50 +0000 (+0100) Subject: Ported xm. X-Git-Tag: v1.8beta~24^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a8e9b702cf34b6d206c32b1226fbf71f1fd86ab;p=taglib Ported xm. --- diff --git a/taglib/xm/xmfile.cpp b/taglib/xm/xmfile.cpp index bd450c85..d4225c45 100644 --- a/taglib/xm/xmfile.cpp +++ b/taglib/xm/xmfile.cpp @@ -379,14 +379,14 @@ Mod::Tag *XM::File::tag() const return &d->tag; } -TagDict XM::File::toDict() const +PropertyMap XM::File::properties() const { - return d->tag.toDict(); + return d->tag.properties(); } -void XM::File::fromDict(const TagDict &tagDict) +PropertyMap XM::File::setProperties(const PropertyMap &properties) { - d->tag.fromDict(tagDict); + return d->tag.setProperties(properties); } XM::Properties *XM::File::audioProperties() const diff --git a/taglib/xm/xmfile.h b/taglib/xm/xmfile.h index 27257fca..1b07010b 100644 --- a/taglib/xm/xmfile.h +++ b/taglib/xm/xmfile.h @@ -61,16 +61,16 @@ namespace TagLib { Mod::Tag *tag() const; /*! - * Implements the unified tag dictionary interface -- export function. - * Forwards to Mod::Tag::toDict(). + * Implements the unified property interface -- export function. + * Forwards to Mod::Tag::properties(). */ - TagDict toDict() const; + PropertyMap properties() const; /*! - * Implements the unified tag dictionary interface -- import function. - * Forwards to Mod::Tag::fromDict(). + * Implements the unified property interface -- import function. + * Forwards to Mod::Tag::setProperties(). */ - void fromDict(const TagDict &); + PropertyMap setProperties(const PropertyMap &); /*! * Returns the XM::Properties for this file. If no audio properties