TagLib
2.1
|
An ID3v2 attached picture frame implementation. More...
#include <attachedpictureframe.h>
Protected Member Functions | |
void | parseFields (const ByteVector &data) override |
ByteVector | renderFields () const override |
Protected Member Functions inherited from TagLib::ID3v2::Frame | |
Frame (const ByteVector &data) | |
Frame (Header *h) | |
void | setHeader (Header *h, bool deleteCurrent=true) |
void | parse (const ByteVector &data) |
ByteVector | fieldData (const ByteVector &frameData) const |
String | readStringField (const ByteVector &data, String::Type encoding, int *position=nullptr) |
String::Type | checkTextEncoding (const StringList &fields, String::Type encoding) const |
virtual PropertyMap | asProperties () const |
Protected Attributes | |
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE std::unique_ptr< AttachedPictureFramePrivate > | d |
Friends | |
class | FrameFactory |
Additional Inherited Members | |
Static Public Member Functions inherited from TagLib::ID3v2::Frame | |
static ByteVector | textDelimiter (String::Type t) |
static ByteVector | keyToFrameID (const String &) |
static String | frameIDToKey (const ByteVector &) |
Static Public Attributes inherited from TagLib::ID3v2::Frame | |
static const String | instrumentPrefix |
static const String | commentPrefix |
static const String | lyricsPrefix |
static const String | urlPrefix |
Static Protected Member Functions inherited from TagLib::ID3v2::Frame | |
static void | splitProperties (const PropertyMap &original, PropertyMap &singleFrameProperties, PropertyMap &tiplProperties, PropertyMap &tmclProperties) |
An ID3v2 attached picture frame implementation.
This is an implementation of ID3v2 attached pictures. Pictures may be included in tags, one per APIC frame (but there may be multiple APIC frames in a single tag). These pictures are usually in either JPEG or PNG format.
TagLib::ID3v2::AttachedPictureFrame::AttachedPictureFrame | ( | ) |
Constructs an empty picture frame. The description, content and text encoding should be set manually.
References AttachedPictureFrame().
Referenced by AttachedPictureFrame(), AttachedPictureFrame(), AttachedPictureFrame(), operator=(), and ~AttachedPictureFrame().
|
explicit |
Constructs an AttachedPicture frame based on data.
References AttachedPictureFrame().
|
override |
Destroys the AttachedPictureFrame instance.
References AttachedPictureFrame().
|
delete |
References AttachedPictureFrame().
String TagLib::ID3v2::AttachedPictureFrame::description | ( | ) | const |
String TagLib::ID3v2::AttachedPictureFrame::mimeType | ( | ) | const |
Returns the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
References mimeType().
Referenced by mimeType().
|
delete |
References AttachedPictureFrame().
|
overrideprotectedvirtual |
Called by parse() to parse the field data. It makes this information available through the public API. This must be overridden by the subclasses.
Implements TagLib::ID3v2::Frame.
Reimplemented in TagLib::ID3v2::AttachedPictureFrameV22.
References parseFields().
Referenced by parseFields().
ByteVector TagLib::ID3v2::AttachedPictureFrame::picture | ( | ) | const |
Returns the image data as a ByteVector.
References picture().
Referenced by picture().
|
overrideprotectedvirtual |
Render the field data back to a binary format in a ByteVector. This must be overridden by subclasses.
Implements TagLib::ID3v2::Frame.
References renderFields(), and TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE.
Referenced by renderFields().
void TagLib::ID3v2::AttachedPictureFrame::setDescription | ( | const String & | desc | ) |
Sets a textual description of the image to desc.
References setDescription().
Referenced by setDescription().
void TagLib::ID3v2::AttachedPictureFrame::setMimeType | ( | const String & | m | ) |
Sets the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
References setMimeType().
Referenced by setMimeType().
void TagLib::ID3v2::AttachedPictureFrame::setPicture | ( | const ByteVector & | p | ) |
Sets the image data to p. p should be of the type specified in this frame's mime-type specification.
References setPicture().
Referenced by setPicture().
void TagLib::ID3v2::AttachedPictureFrame::setTextEncoding | ( | String::Type | t | ) |
Set the text encoding used for the description.
References setTextEncoding().
Referenced by setTextEncoding().
void TagLib::ID3v2::AttachedPictureFrame::setType | ( | Type | t | ) |
String::Type TagLib::ID3v2::AttachedPictureFrame::textEncoding | ( | ) | const |
Returns the text encoding used for the description.
References textEncoding().
Referenced by textEncoding().
|
overridevirtual |
Returns a string containing the description and mime-type
Implements TagLib::ID3v2::Frame.
References toString().
Referenced by toString().
|
overridevirtual |
Returns a string list containing the description and mime-type.
Reimplemented from TagLib::ID3v2::Frame.
References toStringList().
Referenced by toStringList().
Type TagLib::ID3v2::AttachedPictureFrame::type | ( | ) | const |
|
friend |
References FrameFactory.
Referenced by FrameFactory.
|
protected |