]> git.basschouten.com Git - openhab-addons.git/blob
f0a238f372aa037b332af393fff1923c14ccf0c8
[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.bluetooth.bluez.internal.events;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * This is the listener interface for BlueZEvents.
19  *
20  * @author Benjamin Lafois - Initial Contribution
21  *
22  */
23 @NonNullByDefault
24 public interface BlueZEventListener {
25
26     public void onDBusBlueZEvent(BlueZEvent event);
27
28     public default void onDiscoveringChanged(AdapterDiscoveringChangedEvent event) {
29         onDBusBlueZEvent(event);
30     }
31
32     public default void onPoweredChange(AdapterPoweredChangedEvent event) {
33         onDBusBlueZEvent(event);
34     }
35
36     public default void onRssiUpdate(RssiEvent event) {
37         onDBusBlueZEvent(event);
38     }
39
40     public default void onTxPowerUpdate(TXPowerEvent event) {
41         onDBusBlueZEvent(event);
42     }
43
44     public default void onCharacteristicNotify(CharacteristicUpdateEvent event) {
45         onDBusBlueZEvent(event);
46     }
47
48     public default void onManufacturerDataUpdate(ManufacturerDataEvent event) {
49         onDBusBlueZEvent(event);
50     }
51
52     public default void onServiceDataUpdate(ServiceDataEvent event) {
53         onDBusBlueZEvent(event);
54     }
55
56     public default void onConnectedStatusUpdate(ConnectedEvent event) {
57         onDBusBlueZEvent(event);
58     }
59
60     public default void onNameUpdate(NameEvent event) {
61         onDBusBlueZEvent(event);
62     }
63
64     public default void onServicesResolved(ServicesResolvedEvent event) {
65         onDBusBlueZEvent(event);
66     }
67 }