]> git.basschouten.com Git - openhab-addons.git/blob
9a2e1a55c641784d790cb549ca7fb8f43c9ca526
[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.lirc.internal.connector;
14
15 import org.openhab.binding.lirc.internal.messages.LIRCButtonEvent;
16 import org.openhab.binding.lirc.internal.messages.LIRCResponse;
17
18 /**
19  * Defines an interface to receive messages from the LIRC server
20  *
21  * @author Andrew Nagle - Initial contribution
22  */
23 public interface LIRCEventListener {
24
25     /**
26      * Procedure to receive messages from the LIRC server
27      *
28      * @param message
29      *            Message received
30      */
31     void messageReceived(LIRCResponse message);
32
33     /**
34      * Procedure for receiving notification of button presses
35      *
36      * @param buttonEvent
37      *            Button press event details
38      */
39     void buttonPressed(LIRCButtonEvent buttonEvent);
40
41     /**
42      * Procedure for receiving information about fatal errors.
43      *
44      * @param error
45      *            Error occured.
46      */
47     void errorOccured(String error);
48 }