Sayonara Player
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ID3v2::PopularimeterFrame Class Reference

The PopularimeterFrame class. More...

#include <Popularimeter.h>

Inheritance diagram for ID3v2::PopularimeterFrame:
ID3v2::ID3v2Frame< Models::Popularimeter, TagLib::ID3v2::PopularimeterFrame > Tagging::AbstractFrame< TagLib::ID3v2::Tag > Tagging::AbstractFrameHelper

Public Member Functions

 PopularimeterFrame (TagLib::ID3v2::Tag *tag)
 
void map_model_to_frame (const Models::Popularimeter &model, TagLib::ID3v2::PopularimeterFrame *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::PopularimeterFrame *frame, Models::Popularimeter &model) override
 
virtual bool read (Models::Popularimeter &data)
 sets the _data_model by reading from the frame More...
 
virtual bool write (const Models::Popularimeter &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::PopularimeterFrame * frame ()
 

Protected Member Functions

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...
 
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

TagLib::ID3v2::PopularimeterFrame * mFrame
 

Detailed Description

The PopularimeterFrame class.

Member Function Documentation

◆ create_id3v2_frame()

TagLib::ID3v2::Frame* ID3v2::PopularimeterFrame::create_id3v2_frame ( )
overrideprotectedvirtual

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

Returns
pointer to newly created frame

Implements ID3v2::ID3v2Frame< Models::Popularimeter, TagLib::ID3v2::PopularimeterFrame >.

◆ is_frame_found()

bool ID3v2::ID3v2Frame< Models::Popularimeter , TagLib::ID3v2::PopularimeterFrame >::is_frame_found
inlineinherited

if the frame was found when called read()

Returns
true, if the frame was found

◆ read()

virtual bool ID3v2::ID3v2Frame< Models::Popularimeter , TagLib::ID3v2::PopularimeterFrame >::read ( Models::Popularimeter data)
inlinevirtualinherited

sets the _data_model by reading from the frame

Parameters
datareference to data filled with _data_model
Returns
false, if frame cannot be accessed, true else

◆ write()

virtual bool ID3v2::ID3v2Frame< Models::Popularimeter , TagLib::ID3v2::PopularimeterFrame >::write ( const Models::Popularimeter data_model)
inlinevirtualinherited

insert the _data_model into the frame

Parameters
data_modelthe data model
Returns
false if frame cannot be accessed