]> git.basschouten.com Git - openhab-addons.git/blob
55c6e997808d1891819de66227bab068973e0231
[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.yamahareceiver.internal.protocol;
14
15 import java.io.IOException;
16
17 /**
18  * The system control protocol interface. This is basically just power.
19  *
20  * @author David Graeff - Initial contribution
21  */
22 public interface SystemControl extends IStateUpdatable {
23     /**
24      * Switches the AVR on/off (off equals network standby here).
25      *
26      * @param power The new power state
27      *
28      * @throws IOException
29      * @throws ReceivedMessageParseException
30      */
31     void setPower(boolean power) throws IOException, ReceivedMessageParseException;
32
33     /**
34      * Enables party mode.
35      *
36      * @param on
37      * @throws IOException
38      * @throws ReceivedMessageParseException
39      */
40     void setPartyMode(boolean on) throws IOException, ReceivedMessageParseException;
41
42     /**
43      * Enables mute for party mode.
44      *
45      * @param on
46      * @throws IOException
47      * @throws ReceivedMessageParseException
48      */
49     void setPartyModeMute(boolean on) throws IOException, ReceivedMessageParseException;
50
51     /**
52      * Increment or decrement the volume for party mode.
53      *
54      * @param increment
55      * @throws IOException
56      * @throws ReceivedMessageParseException
57      */
58     void setPartyModeVolume(boolean increment) throws IOException, ReceivedMessageParseException;
59 }