Sayonara Player
Loading...
Searching...
No Matches
src
Gui
Preferences
RemoteControl
GUI_RemoteControlPreferences.h
1
/* GUI_RemoteControlPreferences.h
2
3
* Copyright (C) 2011-2024 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
* created by Michael Lugmair (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
30
UI_FWD(
GUI_RemoteControlPreferences
)
31
32
class
GUI_RemoteControlPreferences
:
33
public Preferences::Base
34
{
35
Q_OBJECT
36
UI_CLASS_SHARED_PTR(
GUI_RemoteControlPreferences
)
37
38
public
:
39
explicit
GUI_RemoteControlPreferences
(
const
QString& identifier);
40
~GUI_RemoteControlPreferences
()
override
;
41
42
bool
commit()
override
;
43
void
revert()
override
;
44
45
[[nodiscard]] QString actionName()
const override
;
46
[[nodiscard]]
bool
hasError()
const override
;
47
[[nodiscard]] QString errorString()
const override
;
48
49
protected
:
50
void
initUi()
override
;
51
void
retranslate()
override
;
52
53
private
slots:
54
void
activeToggled(
bool
b);
55
void
portChanged(
int
port);
56
void
discoverPortChanged(
int
port);
57
58
private
:
59
void
refreshUrl();
60
};
61
62
#endif
/* GUI_REMOTECONTROL_PREFERENCES_H */
GUI_RemoteControlPreferences
Definition:
GUI_RemoteControlPreferences.h:34
Generated on Mon May 6 2024 00:00:00 for Sayonara Player by
1.9.6