Sayonara Player
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
GUI_Stream Class Reference
Inheritance diagram for GUI_Stream:
Gui::AbstractStationPlugin PlayerPlugin::Base Gui::Widget Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent

Signals

void sigActionTriggered (bool checked)
 signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired More...
 
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

 GUI_Stream (QWidget *parent=nullptr)
 
QString name () const override
 must be overwritten More...
 
QString displayName () const override
 must be overwritten More...
 
virtual QAction * pluginAction () const final
 needed by the player ui, final More...
 
virtual bool hasTitle () const
 indicates if title bar is shown or not
 
Dialog * boxIntoDialog ()
 

Protected Slots

void listenClicked ()
 
void currentIndexChanged (int idx)
 
void newClicked ()
 
void saveClicked ()
 
void editClicked ()
 
void deleteClicked ()
 
void urlCountExceeded (int urlCount, int maxUrlCount)
 
void stopped ()
 
void error ()
 
void dataAvailable ()
 

Protected Member Functions

QComboBox * comboStream () override
 
QPushButton * btnPlay () override
 
Gui::MenuToolButtonbtnMenu () override
 
AbstractStationHandlerstreamHandler () const override
 
GUI_ConfigureStationcreateConfigDialog () override
 
void skinChanged () override
 
virtual void play (const QString &station_name)
 
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 More...
 
template<typename T , typename UiType >
void setup_parent (T *subclass, UiType **uiptr)
 
virtual int addStream (const QString &name, const QString &url)
 
virtual void assignUiVariables () override
 
virtual void finalizeInitialization ()
 
virtual bool isUiInitialized () const
 Check if ui already was initialized. More...
 
template<typename T , typename UiClass >
void setupParent (T *widget, UiClass **ui)
 
void closeEvent (QCloseEvent *e) override
 
void showEvent (QShowEvent *e) override
 

Protected Attributes

Dialog * mBoxedDialog =nullptr
 

Member Function Documentation

◆ displayName()

QString GUI_Stream::displayName ( ) const
overridevirtual

must be overwritten

Returns
the translated name of the plugin

Implements PlayerPlugin::Base.

◆ hasLoadingBar()

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

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.

◆ isUiInitialized()

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

Check if ui already was initialized.

Returns

Reimplemented in GUI_SpectrogramPainter.

◆ name()

QString GUI_Stream::name ( ) const
overridevirtual

must be overwritten

Returns
the NOT translated name of the plugin

Implements PlayerPlugin::Base.

◆ pluginAction()

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

needed by the player ui, final

Returns
action of plugin

◆ 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