Added the methods to check which kind of tags the file actually has.

This commit is contained in:
Tsuda Kageyu
2013-07-04 18:11:33 +09:00
parent 7e866e11ad
commit 1503909824
17 changed files with 164 additions and 8 deletions

View File

@ -231,6 +231,16 @@ void WavPack::File::strip(int tags)
}
}
bool WavPack::File::hasID3v1Tag() const
{
return d->hasID3v1;
}
bool WavPack::File::hasAPETag() const
{
return d->hasAPE;
}
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////

View File

@ -173,7 +173,17 @@ namespace TagLib {
* \note In order to make the removal permanent save() still needs to be called
*/
void strip(int tags = AllTags);
/*!
* Returns whether or not the file on disk contains an ID3v1 tag.
*/
bool hasID3v1Tag() const;
/*!
* Returns whether or not the file on disk contains an APE tag.
*/
bool hasAPETag() const;
private:
File(const File &);
File &operator=(const File &);