mirror of
https://github.com/taglib/taglib.git
synced 2025-11-12 20:52:52 -05:00
Added the methods to check which kind of tags the file actually has.
This commit is contained in:
@ -236,6 +236,16 @@ void TrueAudio::File::strip(int tags)
|
||||
}
|
||||
}
|
||||
|
||||
bool TrueAudio::File::hasID3v1Tag() const
|
||||
{
|
||||
return d->hasID3v1;
|
||||
}
|
||||
|
||||
bool TrueAudio::File::hasID3v2Tag() const
|
||||
{
|
||||
return d->hasID3v2;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// private members
|
||||
|
||||
@ -209,7 +209,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 ID3v2 tag.
|
||||
*/
|
||||
bool hasID3v2Tag() const;
|
||||
|
||||
private:
|
||||
File(const File &);
|
||||
File &operator=(const File &);
|
||||
|
||||
Reference in New Issue
Block a user