The DiscnumberFrame class.
More...
#include <Cover.h>
|
| CoverFrame (TagLib::ID3v2::Tag *tag) |
|
void | map_model_to_frame (const Models::Cover &model, TagLib::ID3v2::AttachedPictureFrame *frame) override |
| map_model_to_frame
maps the model to the frame and vice versa so the frame knows how to get/set data
|
|
void | map_frame_to_model (const TagLib::ID3v2::AttachedPictureFrame *frame, Models::Cover &model) override |
|
TagLib::ID3v2::Frame * | create_id3v2_frame () override |
| 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 bool | read (Models::Cover &data) |
| sets the _data_model by reading from the frame More...
|
|
virtual bool | write (const Models::Cover &data_model) |
| insert the _data_model into the frame More...
|
|
bool | is_frame_found () const |
| if the frame was found when called read() More...
|
|
TagLib::ID3v2::AttachedPictureFrame * | frame () |
|
|
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 |
|
|
TagLib::ID3v2::AttachedPictureFrame * | mFrame |
|
◆ create_id3v2_frame()
TagLib::ID3v2::Frame* ID3v2::CoverFrame::create_id3v2_frame |
( |
| ) |
|
|
overridevirtual |
◆ is_frame_found()
if the frame was found when called read()
- Returns
- true, if the frame was found
◆ read()
sets the _data_model by reading from the frame
- Parameters
-
data | reference to data filled with _data_model |
- Returns
- false, if frame cannot be accessed, true else
◆ write()
insert the _data_model into the frame
- Parameters
-
- Returns
- false if frame cannot be accessed