Sayonara Player
src
Gui
Plugins
AudioConverter
GUI_AudioConverter.h
1
/* GUI_AudioConverter.h */
2
3
/* Copyright (C) 2011-2020 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_AUDIOCONVERTER_H
22
#define GUI_AUDIOCONVERTER_H
23
24
#include "Utils/Pimpl.h"
25
#include "Gui/Plugins/PlayerPluginBase.h"
26
#include "Components/PlayManager/PlayState.h"
27
28
UI_FWD(
GUI_AudioConverter
)
29
30
class
Converter
;
31
class
GUI_AudioConverter
:
32
public
PlayerPlugin::Base
33
{
34
Q_OBJECT
35
UI_CLASS(
GUI_AudioConverter
)
36
PIMPL(
GUI_AudioConverter
)
37
38
public
:
39
explicit
GUI_AudioConverter
(QWidget* parent=
nullptr
);
40
virtual
~
GUI_AudioConverter
()
override
;
41
42
QString
name
()
const override
;
43
QString
displayName
()
const override
;
44
45
private
slots:
46
void
btnStartClicked();
47
void
convertFinished();
48
void
comboCodecsIndexChanged(
int
idx);
49
void
resetButtons();
50
51
void
oggQualityChanged(
int
value);
52
void
comboLameCbrIndexChanged(
int
idx);
53
void
comboLameVbrIndexChanged(
int
idx);
54
55
void
threadCountChanged(
int
value);
56
57
private
:
58
void
checkStartButton();
59
Converter
* createConverter();
60
61
void
retranslate()
override
;
62
void
initUi()
override
;
63
};
64
65
66
#endif // GUI_AUDIOCONVERTER_H
PlayerPlugin::Base
Definition:
PlayerPluginBase.h:40
GUI_AudioConverter
Definition:
GUI_AudioConverter.h:33
GUI_AudioConverter::displayName
QString displayName() const override
must be overwritten
GUI_AudioConverter::name
QString name() const override
must be overwritten
Converter
Definition:
Converter.h:33
Generated on Wed Jan 6 2021 00:00:00 for Sayonara Player by
1.8.20