Sayonara Player
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
28
30
33{
34 Q_OBJECT
35 UI_CLASS(GUI_AudioConverter)
37
38 public:
39 explicit GUI_AudioConverter(ConverterFactory* converterFactory, 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
60 void retranslate() override;
61 void initUi() override;
62};
63
64
65#endif // GUI_AUDIOCONVERTER_H
Definition: ConverterFactory.h:28
Definition: GUI_AudioConverter.h:33
QString name() const override
must be overwritten
QString displayName() const override
must be overwritten
Definition: PlayerPluginBase.h:40