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.tr064.internal.phonebook;
15 import java.util.Collection;
16 import java.util.Optional;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingUID;
22 * The {@link PhonebookProvider} interface provides methods to lookup a phone number from a phonebook
24 * @author Jan N. Klug - Initial contribution
27 public interface PhonebookProvider {
29 Optional<Phonebook> getPhonebookByName(String name);
31 Collection<Phonebook> getPhonebooks();
35 String getFriendlyName();