![]() |
Sayonara Player
|
The AbstractFrame class
for example AbstractFrame<Discnumber, TagLib::ID3v2::TextIdentificationFrame>
More...
#include <ID3v2Frame.h>
Public Member Functions | |
ID3v2Frame (TagLib::ID3v2::Tag *tag, const char *four) | |
virtual bool | read (ModelType_t &data) |
sets the _data_model by reading from the frame More... | |
virtual bool | write (const ModelType_t &data_model) |
insert the _data_model into the frame More... | |
bool | is_frame_found () const |
if the frame was found when called read() More... | |
FrameType_t * | frame () |
Protected Member Functions | |
virtual TagLib::ID3v2::Frame * | create_id3v2_frame ()=0 |
create_id3v2_frame creates new id3v2 frame if there's no frame we have to create it manually every subclass has to implement this function More... | |
virtual void | map_model_to_frame (const ModelType_t &model, FrameType_t *frame)=0 |
map_model_to_frame maps the model to the frame and vice versa so the frame knows how to get/set data | |
virtual void | map_frame_to_model (const FrameType_t *frame, ModelType_t &model)=0 |
TagLib::ID3v2::Tag * | tag () const |
void | set_tag (TagLib::ID3v2::Tag *tag) |
QString | convert_string (const TagLib::String &str) const |
TagLib::String | convert_string (const QString &str) const |
QString | key () const |
TagLib::String | tag_key () const |
Protected Attributes | |
FrameType_t * | mFrame =nullptr |
The AbstractFrame class
for example AbstractFrame<Discnumber, TagLib::ID3v2::TextIdentificationFrame>
|
protectedpure virtual |
create_id3v2_frame creates new id3v2 frame if there's no frame we have to create it manually every subclass has to implement this function
Implemented in ID3v2::PopularimeterFrame, ID3v2::LyricsFrame, ID3v2::DiscnumberFrame, ID3v2::CoverFrame, ID3v2::ComposerFrame, and ID3v2::AlbumArtistFrame.
|
inline |
if the frame was found when called read()
|
inlinevirtual |
sets the _data_model by reading from the frame
data | reference to data filled with _data_model |
|
inlinevirtual |
insert the _data_model into the frame
data_model | the data model |