Sayonara Player
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Gui::CoverButton Class Reference

The CoverButton class. More...

#include <CoverButton.h>

Inheritance diagram for Gui::CoverButton:
Gui::WidgetTemplate< QPushButton > Gui::WidgetTemplateParent

Public Slots

void trigger ()
 

Signals

void sig_cover_changed ()
 
void sig_rejected ()
 

Public Member Functions

 CoverButton (QWidget *parent=nullptr)
 
void set_cover_location (const Cover::Location &cl)
 Set an appropriate cover location. Afterwards a search is triggered to find the cover. More...
 
void set_cover_data (const QByteArray &data, const QString &mimetype)
 Sets the raw data parsed out of the audio file. More...
 
void set_silent (bool silent)
 silent results that the cover is not stored productively. The AlternativeCoverFetcher will save the cover to a temporary path which can be re- trieved by Cover::Location::alternative_path() More...
 
bool is_silent () const
 
QPixmap pixmap () const
 
virtual void showEvent (QShowEvent *e) override
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *e) override
 
virtual void language_changed ()
 
virtual void skin_changed ()
 

Detailed Description

The CoverButton class.

Member Function Documentation

◆ set_cover_data()

void Gui::CoverButton::set_cover_data ( const QByteArray &  data,
const QString &  mimetype 
)

Sets the raw data parsed out of the audio file.

Parameters
dataraw data
mimetypejpg, png or something similar

◆ set_cover_location()

void Gui::CoverButton::set_cover_location ( const Cover::Location cl)

Set an appropriate cover location. Afterwards a search is triggered to find the cover.

Parameters
cl

◆ set_silent()

void Gui::CoverButton::set_silent ( bool  silent)

silent results that the cover is not stored productively. The AlternativeCoverFetcher will save the cover to a temporary path which can be re- trieved by Cover::Location::alternative_path()

Parameters
silent