mirror of
https://github.com/taglib/taglib.git
synced 2025-07-27 09:24:25 -04:00
Fix #94: add a unified interface for pictures
This commit is contained in:
@ -27,6 +27,7 @@
|
||||
#include <tdebug.h>
|
||||
|
||||
#include <xiphcomment.h>
|
||||
#include <tpicturemap.h>
|
||||
#include <tpropertymap.h>
|
||||
|
||||
using namespace TagLib;
|
||||
@ -120,6 +121,11 @@ TagLib::uint Ogg::XiphComment::track() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
TagLib::PictureMap Ogg::XiphComment::pictures() const
|
||||
{
|
||||
return PictureMap();
|
||||
}
|
||||
|
||||
void Ogg::XiphComment::setTitle(const String &s)
|
||||
{
|
||||
addField("TITLE", s);
|
||||
@ -163,6 +169,10 @@ void Ogg::XiphComment::setTrack(uint i)
|
||||
addField("TRACKNUMBER", String::number(i));
|
||||
}
|
||||
|
||||
void Ogg::XiphComment::setPictures(const PictureMap &l)
|
||||
{
|
||||
}
|
||||
|
||||
bool Ogg::XiphComment::isEmpty() const
|
||||
{
|
||||
FieldListMap::ConstIterator it = d->fieldListMap.begin();
|
||||
|
@ -86,6 +86,7 @@ namespace TagLib {
|
||||
virtual String genre() const;
|
||||
virtual uint year() const;
|
||||
virtual uint track() const;
|
||||
virtual PictureMap pictures() const;
|
||||
|
||||
virtual void setTitle(const String &s);
|
||||
virtual void setArtist(const String &s);
|
||||
@ -94,6 +95,7 @@ namespace TagLib {
|
||||
virtual void setGenre(const String &s);
|
||||
virtual void setYear(uint i);
|
||||
virtual void setTrack(uint i);
|
||||
virtual void setPictures( const PictureMap &l );
|
||||
|
||||
virtual bool isEmpty() const;
|
||||
virtual String toString() const;
|
||||
|
Reference in New Issue
Block a user