Sayonara Player
Friends | Signals | Public Member Functions | Public Slots | Protected Member Functions | Protected Slots | Protected Attributes | List of all members
GUI_Broadcast Class Reference

Friends

class PlayerPluginInterface
 

Signals

void sig_action_triggered (PlayerPluginInterface *plugin, bool checked)
 signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired More...
 
void sig_reload (PlayerPluginInterface *)
 emitted when reloading is requested, after firing this signal the plugin will be painted new. Useful, if the size has changed
 

Public Member Functions

 GUI_Broadcast (QWidget *parent=nullptr)
 
QString get_name () const override
 must be overwritten More...
 
QString get_display_name () const override
 must be overwritten More...
 
virtual QSize get_size () const final
 needed by the player ui, final More...
 
virtual QAction * get_action () const final
 needed by the player ui, final More...
 
virtual bool is_closed () const final
 needed by the player ui, final More...
 
virtual void show ()
 show Plugin
 
virtual bool is_title_shown () const
 
QString get_shortcut_text (const QString &shortcut_identifier) const override
 get translated text of shortcut (overridden) More...
 
SayonaraDialogbox_into_dialog ()
 
bool is_dark () const
 Returns, if the current skin is dark. More...
 

Public Slots

void new_connection (const QString &ip)
 
void connection_closed (const QString &ip)
 
void can_listen (bool)
 

Protected Member Functions

void language_changed () override
 language_changed Has to be implemented and is called when language has changed
 
void init_ui () override
 GUI will be initialized on first show up. Please use this to make Sayonara starting fast.
 
void closeEvent (QCloseEvent *e) override
 Event fired when closed overrides QWidget::closeEvent. More...
 
bool is_ui_initialized () const
 Check if ui already was initialized. More...
 
void set_ui_initialized ()
 mark ui as initialized
 
template<typename T >
void setup_parent (T *widget)
 
QString elide_text (const QString &text, QWidget *widget, int max_lines)
 
void setupUi (QWidget *GUI_Broadcast)
 
void retranslateUi (QWidget *GUI_Broadcast)
 

Protected Slots

virtual void playstate_changed (PlayManager::PlayState state)
 Playstate has changed, this does nothing in default implementation. More...
 
virtual void played ()
 Playstate has changed to playing.
 
virtual void paused ()
 Playstate has changed to paused.
 
virtual void stopped ()
 Playstate has changed to stop.
 
virtual void skin_changed ()
 

Protected Attributes

StreamServer_server =nullptr
 
PlayManager_play_manager =nullptr
 _play_manager Notifies about playstate
 
QAction * _pp_action =nullptr
 _pp_action already allocated, displays name of the plugin by calling get_name()
 
SayonaraDialog_boxed_dialog =nullptr
 
Settings_settings =nullptr
 
QGridLayout * gridLayout
 
QHBoxLayout * horizontalLayout_2
 
QLabel * lab_status
 
QLabel * lab_error
 
QPushButton * btn_retry
 
QHBoxLayout * horizontalLayout_3
 
QSpacerItem * horizontalSpacer_2
 
QPushButton * btn_dismiss
 
QPushButton * btn_dismiss_all
 
QComboBox * combo_clients
 

Member Function Documentation

§ closeEvent()

void PlayerPluginInterface::closeEvent ( QCloseEvent *  e)
overrideprotectedinherited

Event fired when closed overrides QWidget::closeEvent.

Parameters
ethe event

§ get_action()

virtual QAction* PlayerPluginInterface::get_action ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
action of plugin

§ get_display_name()

QString GUI_Broadcast::get_display_name ( ) const
overridevirtual

must be overwritten

Returns
the translated name of the plugin

Implements PlayerPluginInterface.

§ get_name()

QString GUI_Broadcast::get_name ( ) const
overridevirtual

must be overwritten

Returns
the NOT translated name of the plugin

Implements PlayerPluginInterface.

§ get_shortcut_text()

QString PlayerPluginInterface::get_shortcut_text ( const QString &  shortcut_identifier) const
overridevirtualinherited

get translated text of shortcut (overridden)

Parameters
shortcut_identifiershortcut id
Returns
translated shortcut text

Implements ShortcutWidget.

§ get_size()

virtual QSize PlayerPluginInterface::get_size ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
miminum size of plugin

§ is_closed()

virtual bool PlayerPluginInterface::is_closed ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
visibility of plugin

§ is_dark()

bool SayonaraWidgetTemplate< QWidget >::is_dark ( ) const
inlineinherited

Returns, if the current skin is dark.

Returns
true, if dark. false else

§ is_ui_initialized()

bool PlayerPluginInterface::is_ui_initialized ( ) const
protectedinherited

Check if ui already was initialized.

Returns

§ playstate_changed

virtual void PlayerPluginInterface::playstate_changed ( PlayManager::PlayState  state)
protectedvirtualslotinherited

Playstate has changed, this does nothing in default implementation.

Parameters
thenew State

§ sig_action_triggered

void PlayerPluginInterface::sig_action_triggered ( PlayerPluginInterface plugin,
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
Inheritance diagram for GUI_Broadcast:
PlayerPluginInterface Ui::GUI_Broadcast SayonaraWidget ShortcutWidget Ui_GUI_Broadcast SayonaraWidgetTemplate< QWidget > SayonaraClass