Sayonara Player
src
Gui
Plugins
Broadcasting
GUI_Broadcast.h
1
/* GUI_Broadcast.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
#ifndef GUI_BROADCAST_H
22
#define GUI_BROADCAST_H
23
24
#include "Gui/Plugins/PlayerPluginBase.h"
25
#include "Utils/Pimpl.h"
26
27
UI_FWD(
GUI_Broadcast
)
28
29
class
GUI_Broadcast
:
30
public
PlayerPlugin
::Base
31
{
32
Q_OBJECT
33
PIMPL(
GUI_Broadcast
)
34
UI_CLASS(
GUI_Broadcast
)
35
36
public
:
37
explicit
GUI_Broadcast
(QWidget *parent=
nullptr
);
38
virtual
~
GUI_Broadcast
();
39
40
QString get_name()
const override
;
41
QString get_display_name()
const override
;
42
43
private
slots:
44
void
connection_established(
const
QString& ip);
45
void
connection_closed(
const
QString& ip);
46
void
can_listen_changed(
bool
b);
47
48
void
dismiss_clicked();
49
void
dismiss_all_clicked();
50
void
combo_changed(
int
idx);
51
void
retry();
52
void
mp3_enc_found();
53
54
private
:
55
void
dismiss_at(
int
idx);
56
void
set_status_label();
57
58
void
retranslate_ui()
override
;
59
void
init_ui()
override
;
60
61
bool
check_dismiss_visible()
const
;
62
bool
check_dismiss_all_visible()
const
;
63
void
update_dismiss_buttons();
64
65
void
start_server();
66
};
67
68
#endif // GUI_BROADCAST_H
GUI_Broadcast
Definition:
GUI_Broadcast.h:29
PlayerPlugin
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition:
GUI_Player.h:41
Generated on Sun Nov 17 2019 00:00:00 for Sayonara Player by
1.8.16