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

The AlbumArtistFrame class. More...

#include <AlbumArtist.h>

Inheritance diagram for ID3v2::AlbumArtistFrame:
ID3v2::ID3v2Frame< QString, TagLib::ID3v2::TextIdentificationFrame > Tagging::AbstractFrame< TagLib::ID3v2::Tag > Tagging::AbstractFrameHelper

Public Member Functions

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

Detailed Description

The AlbumArtistFrame class.

Member Function Documentation

◆ create_id3v2_frame()

TagLib::ID3v2::Frame* ID3v2::AlbumArtistFrame::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< QString, TagLib::ID3v2::TextIdentificationFrame >.

◆ is_frame_found()

bool ID3v2::ID3v2Frame< QString , TagLib::ID3v2::TextIdentificationFrame >::is_frame_found
inlineinherited

if the frame was found when called read()

Returns
true, if the frame was found

◆ read()

virtual bool ID3v2::ID3v2Frame< QString , TagLib::ID3v2::TextIdentificationFrame >::read ( QString &  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< QString , TagLib::ID3v2::TextIdentificationFrame >::write ( const QString &  data_model)
inlinevirtualinherited

insert the _data_model into the frame

Parameters
data_modelthe data model
Returns
false if frame cannot be accessed