]> git.basschouten.com Git - openhab-addons.git/blob
7a05e37f272862b8971a594d6a00da1856ef5788
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.enigma2.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link Enigma2RemoteKey} class defines the remote keys of an enigma2 device
19  * used across the whole binding.
20  *
21  * @author Guido Dolfen - Initial contribution
22  */
23 @NonNullByDefault
24 public enum Enigma2RemoteKey {
25     POWER(116),
26
27     KEY_0(11),
28     KEY_1(2),
29     KEY_2(3),
30     KEY_3(4),
31     KEY_4(5),
32     KEY_5(6),
33     KEY_6(7),
34     KEY_7(8),
35     KEY_8(9),
36     KEY_9(10),
37
38     ARROW_LEFT(412),
39     ARROW_RIGHT(407),
40
41     VOLUME_DOWN(114),
42     VOLUME_UP(115),
43     MUTE(113),
44
45     CHANNEL_UP(402),
46     CHANNEL_DOWN(403),
47
48     LEFT(105),
49     RIGHT(106),
50     UP(103),
51     DOWN(108),
52     OK(352),
53     EXIT(174),
54
55     RED(398),
56     GREEN(399),
57     YELLOW(400),
58     BLUE(401),
59
60     PLAY(207),
61     PAUSE(119),
62     STOP(128),
63     RECORD(167),
64     FAST_FORWARD(208),
65     FAST_BACKWARD(168),
66
67     TV(377),
68     RADIO(385),
69     AUDIO(392),
70     VIDEO(393),
71     TEXT(388),
72     INFO(358),
73     MENU(139),
74     HELP(138),
75     SUBTITLE(370),
76     EPG(358);
77
78     private final int value;
79
80     Enigma2RemoteKey(int value) {
81         this.value = value;
82     }
83
84     public int getValue() {
85         return value;
86     }
87 }