Sayonara Player
GUI_RemoteControlPreferences.h
1 /* GUI_RemoteControlPreferences.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  * created by Lucio Carreras,
21  * Sep 3, 2012
22  *
23  */
24 
25 #ifndef GUI_REMOTECONTROL_PREFERENCES_H
26 #define GUI_REMOTECONTROL_PREFERENCES_H
27 
28 #include "Gui/Preferences/PreferenceWidget.h"
29 
31 
33  public Preferences::Base
34 {
35  Q_OBJECT
37 
38 public:
39  explicit GUI_RemoteControlPreferences(const QString& identifier);
41 
42  bool commit() override;
43  void revert() override;
44 
45  QString action_name() const override;
46 
47 protected:
48  void init_ui() override;
49  void retranslate_ui() override;
50 
51 private slots:
52  void active_toggled(bool b);
53  void port_changed(int port);
54 
55 private:
56  QString get_url_string();
57  void refresh_url();
58 };
59 
60 #endif /* GUISOCKETSETUP_H_ */
Definition: GUI_RemoteControlPreferences.h:32