Sayonara Player
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Gui::AbstractStationPlugin Class Referenceabstract
Inheritance diagram for Gui::AbstractStationPlugin:
PlayerPlugin::Base Gui::Widget Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent GUI_Podcasts GUI_Stream

Signals

void sigActionTriggered (bool checked)
 signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired
 
void sigReload (PlayerPlugin::Base *plugin)
 emitted when reloading is requested, after firing this signal the plugin will be painted new. Useful, if the size has changed
 
void sigOpened ()
 
void sigShown ()
 
void sigClosed ()
 

Public Member Functions

 AbstractStationPlugin (PlaylistCreator *playlistCreator, AbstractStationHandler *stationHandler, QWidget *parent=nullptr)
 
virtual QAction * pluginAction () const final
 needed by the player ui, final
 
virtual QString name () const =0
 must be overwritten
 
virtual QString displayName () const =0
 must be overwritten
 
virtual bool hasTitle () const
 indicates if title bar is shown or not
 
DialogboxIntoDialog ()
 

Protected Member Functions

virtual QComboBox * comboStream ()=0
 
virtual QPushButton * btnPlay ()=0
 
virtual MenuToolButtonbtnMenu ()=0
 
virtual QString titleFallbackName () const =0
 
virtual GUI_ConfigureStationcreateConfigDialog ()=0
 
void initUi () override
 GUI will be initialized on first show up. Please use this to make Sayonara starting fast.
 
void assignUiVariables () override
 
void skinChanged () override
 
void retranslate () override
 
bool hasLoadingBar () const override
 indicates if the widget has a loading bar. If yes, there will be reserved some extra space at the bottom of the widget
 
void addStream (const StationPtr &station, bool temporary)
 
virtual void finalizeInitialization ()
 
virtual bool isUiInitialized () const
 Check if ui already was initialized.
 
template<typename T , typename UiClass >
void setupParent (T *widget, UiClass **ui)
 
void closeEvent (QCloseEvent *e) override
 
void showEvent (QShowEvent *e) override
 

Protected Attributes

DialogmBoxedDialog = nullptr
 

Member Function Documentation

◆ assignUiVariables()

void Gui::AbstractStationPlugin::assignUiVariables ( )
overrideprotectedvirtual

Reimplemented from PlayerPlugin::Base.

◆ closeEvent()

void PlayerPlugin::Base::closeEvent ( QCloseEvent * e)
overrideprotectedvirtualinherited

Reimplemented from Gui::Widget.

◆ displayName()

virtual QString PlayerPlugin::Base::displayName ( ) const
pure virtualinherited

◆ hasLoadingBar()

bool Gui::AbstractStationPlugin::hasLoadingBar ( ) const
overrideprotectedvirtual

indicates if the widget has a loading bar. If yes, there will be reserved some extra space at the bottom of the widget

Returns

Reimplemented from PlayerPlugin::Base.

◆ hasTitle()

virtual bool PlayerPlugin::Base::hasTitle ( ) const
virtualinherited

indicates if title bar is shown or not

Reimplemented in VisualPlugin.

◆ initUi()

void Gui::AbstractStationPlugin::initUi ( )
overrideprotectedvirtual

GUI will be initialized on first show up. Please use this to make Sayonara starting fast.

Implements PlayerPlugin::Base.

◆ isUiInitialized()

virtual bool PlayerPlugin::Base::isUiInitialized ( ) const
protectedvirtualinherited

Check if ui already was initialized.

Returns

Reimplemented in GUI_SpectrogramPainter.

◆ name()

virtual QString PlayerPlugin::Base::name ( ) const
pure virtualinherited

◆ pluginAction()

virtual QAction * PlayerPlugin::Base::pluginAction ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
action of plugin

◆ retranslate()

void Gui::AbstractStationPlugin::retranslate ( )
overrideprotectedvirtual

Implements PlayerPlugin::Base.

◆ showEvent()

void PlayerPlugin::Base::showEvent ( QShowEvent * e)
overrideprotectedvirtualinherited

Reimplemented from Gui::Widget.

◆ sigActionTriggered

void PlayerPlugin::Base::sigActionTriggered ( bool checked)
signalinherited

signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired

Parameters
pluginthis pointer to current plugin
checkedindicates whether checked or unchecked

◆ skinChanged()

void Gui::AbstractStationPlugin::skinChanged ( )
overrideprotectedvirtual

Reimplemented from Gui::WidgetTemplateParent.