Sayonara Player
GUI_AudioConverter.h
1 /* GUI_AudioConverter.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_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;
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 get_name() const override;
43  QString get_display_name() const override;
44 
45  private slots:
46  void btn_start_clicked();
47  void convert_finished();
48  void combo_codecs_changed(int idx);
49  void reset_buttons();
50 
51  void ogg_quality_changed(int value);
52  void combo_cbr_lame_changed(int idx);
53  void lame_vbr_changed(int idx);
54 
55  void num_threads_changed(int value);
56 
57  private:
58  void check_start_button();
59  Converter* create_converter();
60 
61  void retranslate_ui() override;
62  void init_ui() override;
63 };
64 
65 
66 #endif // GUI_AUDIOCONVERTER_H
Definition: PlayerPluginBase.h:38
Definition: GUI_AudioConverter.h:31
QString get_display_name() const override
must be overwritten
QString get_name() const override
must be overwritten
Definition: Converter.h:31