2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.lirc.internal.connector;
15 import org.openhab.binding.lirc.internal.messages.LIRCButtonEvent;
16 import org.openhab.binding.lirc.internal.messages.LIRCResponse;
19 * Defines an interface to receive messages from the LIRC server
21 * @author Andrew Nagle
23 public interface LIRCEventListener {
26 * Procedure to receive messages from the LIRC server
31 void messageReceived(LIRCResponse message);
34 * Procedure for receiving notification of button presses
37 * Button press event details
39 void buttonPressed(LIRCButtonEvent buttonEvent);
42 * Procedure for receiving information about fatal errors.
47 void errorOccured(String error);