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::AbstractStream PlayerPlugin::Base Gui::Widget Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent

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

 GUI_Stream (QWidget *parent=nullptr)
 
QString get_name () const override
 must be overwritten More...
 
QString get_display_name () const override
 must be overwritten More...
 
virtual QAction * get_action () const final
 needed by the player ui, final More...
 
virtual bool is_title_shown () const
 indicates if title bar is shown or not
 
Dialog * box_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

QComboBox * combo_stream () override
 
QPushButton * btn_play () override
 
Gui::MenuToolButtonbtn_menu () override
 
AbstractStreamHandlerstream_handler () const override
 
void skin_changed () override
 
virtual void play (QString url, QString station_name)
 
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)
 
template<typename T , typename UiClass >
void setup_parent (T *widget, UiClass **ui)
 
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...
 
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()

QString GUI_Stream::get_display_name ( ) const
overridevirtual

must be overwritten

Returns
the translated name of the plugin

Implements PlayerPlugin::Base.

◆ get_name()

QString GUI_Stream::get_name ( ) const
overridevirtual

must be overwritten

Returns
the NOT translated name of the plugin

Implements PlayerPlugin::Base.

◆ has_loading_bar()

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

◆ 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