21 #ifndef GUI_ABSTRACT_STREAM_H_ 22 #define GUI_ABSTRACT_STREAM_H_ 24 #include "Interfaces/PlayerPlugin/PlayerPlugin.h" 25 #include "Helper/Pimpl.h" 44 virtual void retranslate_ui()
override;
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);
55 GUI_AbstractStream::init_ui();
59 void listen_clicked();
60 void combo_idx_changed(
int idx);
61 void delete_clicked();
64 void text_changed(
const QString& str);
65 void too_many_urls_found(
int n_urls,
int n_max_urls);
69 void data_available();
70 void _sl_skin_changed();
74 virtual QLineEdit* le_url()=0;
75 virtual QComboBox* combo_stream()=0;
76 virtual QPushButton* btn_play()=0;
78 virtual QLabel* lab_listen()=0;
84 void assign_ui_vars()
override;
86 void init_connections();
89 void set_le_url(QLineEdit* le_url);
90 void set_combo_stream(QComboBox* le_combo_stream);
91 void set_btn_play(QPushButton* btn_play);
93 void set_lab_listen(QLabel* lab_listen);
95 void set_searching(
bool searching);
97 virtual void init_ui()
override;
100 #endif // GUI_ABSTRACT_STREAM_H_ Definition: GUI_AbstractStream.h:34
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