![]() |
|
#include <attachedpictureframe.h>
Inheritance diagram for TagLib::ID3v2::AttachedPictureFrame:
Public Types | |
enum | Type { Other = 0x00, FileIcon = 0x01, OtherFileIcon = 0x02, FrontCover = 0x03, BackCover = 0x04, LeafletPage = 0x05, Media = 0x06, LeadArtist = 0x07, Artist = 0x08, Conductor = 0x09, Band = 0x0A, Composer = 0x0B, Lyricist = 0x0C, RecordingLocation = 0x0D, DuringRecording = 0x0E, DuringPerformance = 0x0F, MovieScreenCapture = 0x10, ColouredFish = 0x11, Illustration = 0x12, BandLogo = 0x13, PublisherLogo = 0x14 } |
Public Member Functions | |
AttachedPictureFrame () | |
AttachedPictureFrame (const ByteVector &data) | |
virtual | ~AttachedPictureFrame () |
virtual String | toString () const |
String::Type | textEncoding () const |
void | setTextEncoding (String::Type t) |
String | mimeType () const |
void | setMimeType (const String &m) |
Type | type () const |
void | setType (Type t) |
ByteVector | picture () const |
void | setPicture (const ByteVector &p) |
Protected Member Functions | |
virtual void | parseFields (const ByteVector &data) |
virtual ByteVector | renderFields () const |
Friends | |
class | FrameFactory |
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.
|
This describes the function or content of the picture.
|
|
Constructs an empty picture frame. The description, content and text encoding should be set manually. |
|
Constructs an AttachedPicture frame based on data. |
|
Destroys the AttahcedPictureFrame instance. |
|
Returns the mime type of the image. This should in most cases be "image/png" or "image/jpeg". |
|
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. |
|
Returns the image data as a ByteVector.
|
|
Render the field data back to a binary format in a ByteVector. This must be overridden by subclasses. Implements TagLib::ID3v2::Frame. |
|
Sets the mime type of the image. This should in most cases be "image/png" or "image/jpeg". |
|
Sets the image data to p. p should be of the type specified in this frame's mime-type specification.
|
|
Set the text encoding used for the description.
|
|
Sets the type for the image.
|
|
Returns the text encoding used for the description.
|
|
Returns a string containing the description and mime-type Implements TagLib::ID3v2::Frame. |
|
Returns the type of the image.
|
|
Reimplemented from TagLib::ID3v2::Frame. |