Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Gui
Plugins
Broadcasting
GUI_Broadcast.h
1
/* GUI_Broadcast.h */
2
3
/* Copyright (C) 2011-2024 Michael Lugmair (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
PlayManager
;
30
class
RawAudioDataProvider
;
31
32
class
GUI_Broadcast :
33
public
PlayerPlugin::Base
34
{
35
Q_OBJECT
36
PIMPL(GUI_Broadcast)
37
UI_CLASS(GUI_Broadcast)
38
39
public
:
40
explicit
GUI_Broadcast(
PlayManager
* playManager,
RawAudioDataProvider
* audioDataProvider,
41
QWidget* parent =
nullptr
);
42
~GUI_Broadcast()
override
;
43
44
QString
name
()
const override
;
45
QString
displayName
()
const override
;
46
47
private
slots:
48
void
connectionEstablished(
const
QString& ip);
49
void
connectionClosed(
const
QString& ip);
50
void
canListenChanged(
bool
b);
51
52
void
dismissClicked();
53
void
dismissAllClicked();
54
void
currentIndexChanged(
int
idx);
55
void
retry();
56
void
mp3EncoderFound();
57
58
private
:
59
void
dismissAt(
int
idx);
60
void
setStatusLabel();
61
62
void
retranslate()
override
;
63
void
initUi()
override
;
64
65
bool
checkDismissVisible()
const
;
66
bool
checkDismissAllVisible()
const
;
67
void
updateDismissButtons();
68
69
void
startServer();
70
};
71
72
#endif
// GUI_BROADCAST_H
GUI_Broadcast
Definition
GUI_Broadcast.h:34
GUI_Broadcast::displayName
QString displayName() const override
must be overwritten
GUI_Broadcast::name
QString name() const override
must be overwritten
PlayManager
Definition
PlayManager.h:34
PlayerPlugin::Base
Definition
PlayerPluginBase.h:40
RawAudioDataProvider
Definition
AudioDataProvider.h:55
Generated on
for Sayonara Player by
1.17.0