21 #ifndef GUI_ABSTRACT_STREAM_H_ 22 #define GUI_ABSTRACT_STREAM_H_ 24 #include "Interfaces/PlayerPlugin/PlayerPlugin.h" 25 #include "Helper/Pimpl.h" 45 virtual void play(QString url, QString station_name);
47 virtual QString get_title_fallback_name()
const=0;
51 template<
typename T,
typename UiType>
52 void setup_parent(T* subclass, UiType** uiptr)
54 PlayerPluginInterface::setup_parent(subclass, uiptr);
57 set_le_url( ui->le_url );
58 set_combo_stream( ui->combo_stream );
59 set_btn_play( ui->btn_play );
60 set_btn_tool( ui->btn_tool );
61 set_lab_listen( ui->lab_listen );
63 GUI_AbstractStream::init_ui();
67 void listen_clicked();
68 void combo_idx_changed(
int idx);
69 void delete_clicked();
72 void text_changed(
const QString& str);
73 void too_many_urls_found(
int n_urls,
int n_max_urls);
77 void data_available();
78 void _sl_skin_changed();
83 void init_connections();
86 void set_le_url(QLineEdit* le_url);
87 void set_combo_stream(QComboBox* le_combo_stream);
88 void set_btn_play(QPushButton* btn_play);
90 void set_lab_listen(QLabel* lab_listen);
92 void set_searching(
bool searching);
94 virtual void init_ui()
override;
97 #endif // GUI_ABSTRACT_STREAM_H_ Definition: GUI_AbstractStream.h:34
virtual void language_changed() override
language_changed Has to be implemented and is called when language has changed
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 bot...
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: PlayerPlugin.h:38
Used to interprete website data as streams. Some methods have to be overridden, to map their function...
Definition: AbstractStreamHandler.h:40