SVN commit 1148318 by lalinsky: Implemented a specialized version of APE::Tag::isEmpty() M +2 -0 NEWS M +5 -0 taglib/ape/apetag.cpp M +5 -0 taglib/ape/apetag.h M +1 -0 tests/CMakeLists.txt A tests/test_apetag.cpp [License: UNKNOWN] --- trunk/kdesupport/taglib/NEWS #1148317:1148318 @@ -2,6 +2,8 @@ ========== * Support for reading/writing tags from Monkey's Audio files. + * Implemented APE::Tag::isEmpty() to check for all APE tags, not just the + basic ones. TagLib 1.6.3 (Apr 17, 2010) =========================== --- trunk/kdesupport/taglib/taglib/ape/apetag.cpp #1148317:1148318 @@ -208,6 +208,11 @@ d->itemListMap.insert(key.upper(), item); } +bool APE::Tag::isEmpty() const +{ + return d->itemListMap.isEmpty(); +} + //////////////////////////////////////////////////////////////////////////////// // protected methods //////////////////////////////////////////////////////////////////////////////// --- trunk/kdesupport/taglib/taglib/ape/apetag.h #1148317:1148318 @@ -137,6 +137,11 @@ */ void setItem(const String &key, const Item &item); + /*! + * Returns true if the tag does not contain any data. + */ + bool isEmpty() const; + protected: /*! --- trunk/kdesupport/taglib/tests/CMakeLists.txt #1148317:1148318 @@ -39,6 +39,7 @@ test_oggflac.cpp test_flac.cpp test_ape.cpp + test_apetag.cpp ) IF(WITH_MP4) SET(test_runner_SRCS ${test_runner_SRCS}