![]() |
Sayonara Player
|
Signals | |
| void | sig_close_event () |
| 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_Podcasts (QWidget *parent=nullptr) | |
| QString | get_name () const override |
| must be overwritten More... | |
| QString | get_display_name () const override |
| must be overwritten More... | |
| virtual void | setup_stations (const QMap< QString, QString > &) |
| template<typename T > | |
| void | setup_parent (T *subclass) |
| 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... | |
| SayonaraDialog * | box_into_dialog () |
| bool | is_dark () const |
| Returns, if the current skin is dark. More... | |
| void | setupUi (PlayerPluginInterface *GUI_Podcasts) |
| void | retranslateUi (PlayerPluginInterface *GUI_Podcasts) |
Public Attributes | |
| QGridLayout * | gridLayout |
| QComboBox * | combo_stream |
| QLabel * | label_2 |
| QLineEdit * | le_url |
| QHBoxLayout * | horizontalLayout |
| MenuToolButton * | btn_tool |
| QSpacerItem * | horizontalSpacer |
| QPushButton * | btn_play |
| QLabel * | lab_listen |
| QLabel * | label |
Protected Member Functions | |
| virtual void | language_changed () override |
| language_changed Has to be implemented and is called when language has changed | |
| virtual void | init_ui () override |
| GUI will be initialized on first show up. Please use this to make Sayonara starting fast. | |
| virtual void | play (QString url, QString station_name) |
| virtual GlobalMessage::Answer | show_delete_confirm_dialog () |
| 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 | |
| QString | elide_text (const QString &text, QWidget *widget, int max_lines) |
Protected Slots | |
| virtual void | listen_clicked () |
| virtual void | combo_idx_changed (int idx) |
| virtual void | delete_clicked () |
| virtual void | save_clicked () |
| virtual void | new_clicked () |
| virtual void | text_changed (const QString &str) |
| void | error () |
| void | data_available () |
| void | _sl_skin_changed () |
| 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 | |
| DatabaseConnector * | _db =nullptr |
| AbstractStreamHandler * | _stream_handler =nullptr |
| QString | _title_fallback_name |
| QMap< QString, QString > | _stations |
| 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 |
|
overrideprotectedinherited |
Event fired when closed overrides QWidget::closeEvent.
| e | the event |
|
finalvirtualinherited |
needed by the player ui, final
|
overridevirtual |
|
overridevirtual |
|
overridevirtualinherited |
get translated text of shortcut (overridden)
| shortcut_identifier | shortcut id |
Implements ShortcutWidget.
|
finalvirtualinherited |
needed by the player ui, final
|
finalvirtualinherited |
needed by the player ui, final
|
inlineinherited |
Returns, if the current skin is dark.
|
protectedinherited |
Check if ui already was initialized.
|
protectedvirtualslotinherited |
Playstate has changed, this does nothing in default implementation.
| the | new State |
|
signalinherited |
signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired
| plugin | this pointer to current plugin |
| checked | indicates whether checked or unchecked |
1.8.12