Sayonara Player
GUI_RemoteControl.h
1 /* GUI_RemoteControl.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  * created by Lucio Carreras,
21  * Sep 3, 2012
22  *
23  */
24 
25 #ifndef GUISOCKETSETUP_H_
26 #define GUISOCKETSETUP_H_
27 
28 #include "Interfaces/PreferenceDialog/PreferenceWidgetInterface.h"
29 
30 namespace Ui
31 {
32  class GUI_RemoteControl;
33 }
34 
37 {
38  Q_OBJECT
39 
40 public:
41  explicit GUI_RemoteControl(QWidget* parent=nullptr);
43 
44  void commit() override;
45  void revert() override;
46 
47  QString get_action_name() const override;
48 
49 
50 protected:
51  void init_ui() override;
52  void retranslate_ui() override;
53 
54 
55 private slots:
56  void active_toggled(bool b);
57  void port_changed(int port);
58 
59 
60 private:
61  Ui::GUI_RemoteControl* ui=nullptr;
62 
63  QString get_url_string();
64  void refresh_url();
65 };
66 
67 #endif /* GUISOCKETSETUP_H_ */
Definition: GUI_RemoteControl.h:35
Definition: GUI_SomaFM.h:34
Definition: ui_GUI_RemoteControl.h:105
Abstract Interface you should use when creating a preferences item.
Definition: PreferenceWidgetInterface.h:39