Sayonara Player
src
Gui
Plugins
Stream
GUI_StationSearcher.h
1
/* GUI_StationSearcher.h */
2
3
/* Copyright (C) 2011-2019 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
22
23
#ifndef GUISTATIONSEARCHER_H
24
#define GUISTATIONSEARCHER_H
25
26
#include "Gui/Utils/Widgets/Dialog.h"
27
#include "Components/Streaming/StationSearcher/StationSearcher.h"
28
#include "Utils/Pimpl.h"
29
30
UI_FWD(
GUI_StationSearcher
)
31
32
class
GUI_StationSearcher
:
33
public Gui::Dialog
34
{
35
Q_OBJECT
36
PIMPL(
GUI_StationSearcher
)
37
UI_CLASS(
GUI_StationSearcher
)
38
39
signals:
40
void
sig_stream_selected(
const
QString& name,
const
QString& url);
41
42
public
:
43
GUI_StationSearcher
(QWidget* parent=
nullptr
);
44
~
GUI_StationSearcher
();
45
46
private
:
47
void
init_line_edit();
48
void
check_listen_button();
49
void
clear_stations();
50
void
clear_streams();
51
void
change_mode(StationSearcher::Mode mode);
52
53
54
private
slots:
55
void
search_clicked();
56
void
search_prev_clicked();
57
void
search_next_clicked();
58
void
listen_clicked();
59
60
void
search_text_changed(
const
QString& text);
61
void
stations_fetched();
62
63
void
station_changed();
64
void
stream_changed();
65
66
protected
:
67
void
showEvent(QShowEvent* e)
override
;
68
void
closeEvent(QCloseEvent* e)
override
;
69
70
void
language_changed()
override
;
71
void
skin_changed()
override
;
72
};
73
74
75
#endif // STATIONSEARCHER_H
GUI_StationSearcher
Definition:
GUI_StationSearcher.h:32
Generated on Thu Jan 30 2020 00:00:00 for Sayonara Player by
1.8.17