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

Signals

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

Public Member Functions

 AbstractStream (QWidget *parent=nullptr)
 
virtual void skin_changed () override
 
virtual QAction * get_action () const final
 needed by the player ui, final More...
 
virtual QString get_name () const =0
 must be overwritten More...
 
virtual QString get_display_name () const =0
 must be overwritten More...
 
virtual bool is_title_shown () const
 indicates if title bar is shown or not
 
Dialogbox_into_dialog ()
 

Protected Slots

void listen_clicked ()
 
void combo_idx_changed (int idx)
 
void new_clicked ()
 
void save_clicked ()
 
void edit_clicked ()
 
void delete_clicked ()
 
void too_many_urls_found (int n_urls, int n_max_urls)
 
void stopped ()
 
void error ()
 
void data_available ()
 
void _sl_skin_changed ()
 

Protected Member Functions

virtual void retranslate_ui () override
 
virtual void play (QString url, QString station_name)
 
virtual QString get_title_fallback_name () const =0
 
bool has_loading_bar () 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 QComboBox * combo_stream ()=0
 
virtual QPushButton * btn_play ()=0
 
virtual MenuToolButtonbtn_menu ()=0
 
virtual AbstractStreamHandlerstream_handler () const =0
 
virtual QString url () const
 
QString current_station () const
 
void add_stream (const QString &name, const QString &url)
 
virtual void finalize_initialization ()
 
bool is_ui_initialized () const
 Check if ui already was initialized. More...
 
template<typename T , typename UiClass >
void setup_parent (T *widget, UiClass **ui)
 
void closeEvent (QCloseEvent *e) override
 
void showEvent (QShowEvent *e) override
 

Protected Attributes

Dialog_boxed_dialog =nullptr
 

Member Function Documentation

◆ get_action()

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

needed by the player ui, final

Returns
action of plugin

◆ get_display_name()

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

must be overwritten

Returns
the translated name of the plugin

Implemented in GUI_Equalizer, GUI_Bookmarks, GUI_Spectrum, GUI_PlaylistChooser, GUI_AudioConverter, GUI_LevelPainter, GUI_Broadcast, GUI_Stream, GUI_Crossfader, GUI_Podcasts, and GUI_Speed.

◆ get_name()

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

must be overwritten

Returns
the NOT translated name of the plugin

Implemented in GUI_Equalizer, GUI_Bookmarks, GUI_Spectrum, GUI_PlaylistChooser, GUI_AudioConverter, GUI_LevelPainter, GUI_Broadcast, GUI_Stream, GUI_Crossfader, GUI_Podcasts, and GUI_Speed.

◆ has_loading_bar()

bool Gui::AbstractStream::has_loading_bar ( ) 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.

◆ is_ui_initialized()

bool PlayerPlugin::Base::is_ui_initialized ( ) const
protectedinherited

Check if ui already was initialized.

Returns

◆ sig_action_triggered

void PlayerPlugin::Base::sig_action_triggered ( 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