Sayonara Player
GUI_AudioConverter.h
1 /* GUI_AudioConverter.h */
2 
3 /* Copyright (C) 2011-2017 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 "Interfaces/PlayerPlugin/PlayerPluginBase.h"
26 #include "Components/PlayManager/PlayState.h"
27 
28 UI_FWD(GUI_AudioConverter)
29 
31  public PlayerPlugin::Base
32 {
33  Q_OBJECT
34  UI_CLASS(GUI_AudioConverter)
35  PIMPL(GUI_AudioConverter)
36 
37 public:
38  explicit GUI_AudioConverter(QWidget *parent=nullptr);
39  virtual ~GUI_AudioConverter();
40 
41  QString get_name() const override;
42  QString get_display_name() const override;
43 
44 
45 private slots:
46  void rb_cbr_toggled(bool b);
47  void rb_vbr_toggled(bool b);
48  void quality_changed(int index);
49  void cb_active_toggled(bool b);
50  void mp3_enc_found();
51  void playstate_changed(PlayState state);
52  void stopped();
53 
54 private:
55  void fill_cbr();
56  void fill_vbr();
57  void pl_mode_backup();
58  void pl_mode_restore();
59 
60  void retranslate_ui() override;
61  void init_ui() override;
62 };
63 
64 #endif // GUI_AUDIOCONVERTER_H
PlayState
The PlayState enum.
Definition: PlayState.h:28
Definition: GUI_AudioConverter.h:30
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: GUI_Player.h:43