Package org.harctoolbox.harchardware.ir
Interface IRemoteCommandIrSender
- All Known Implementing Classes:
GirsClient,IrTransIRDB,LircCcfClient,LircClient
public interface IRemoteCommandIrSender
This is a bunch of functions for IR senders using a remote/command-model of sending.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of repeats to perform by sendIrCommandRepeat -
Method Summary
Modifier and TypeMethodDescriptionString[]getCommands(String remote) Returns an array of command names for the remote given in the argument.String[]Returns an array of "remote" names.Returns a default Transmitter for the device.booleansendIrCommand(String remote, String command, int count, Transmitter transmitter) Sends the command to the hardware, to be sent count number of times.booleansendIrCommandRepeat(String remote, String command, Transmitter transmitter) Like sendIr, but sends the IR signal until stopped by stopIr.
-
Field Details
-
repeatMax
static final int repeatMaxNumber of repeats to perform by sendIrCommandRepeat- See Also:
-
-
Method Details
-
getRemotes
Returns an array of "remote" names.- Returns:
- Throws:
IOException
-
getCommands
Returns an array of command names for the remote given in the argument.- Parameters:
remote- The "remote" to search in- Returns:
- Throws:
IOException
-
sendIrCommand
boolean sendIrCommand(String remote, String command, int count, Transmitter transmitter) throws IOException, NoSuchTransmitterException Sends the command to the hardware, to be sent count number of times.- Parameters:
remote-command-count- Number of times to repeat the commandtransmitter-- Returns:
- success
- Throws:
IOExceptionNoSuchTransmitterException
-
sendIrCommandRepeat
boolean sendIrCommandRepeat(String remote, String command, Transmitter transmitter) throws IOException, NoSuchTransmitterException Like sendIr, but sends the IR signal until stopped by stopIr. An implementation, or a hardware, may limit the number of repeats though.- Parameters:
remote-command-transmitter-- Returns:
- Throws:
IOExceptionNoSuchTransmitterException
-
getTransmitter
Transmitter getTransmitter()Returns a default Transmitter for the device. May be null if the device ignores the Transmitter argument in sendIr.- Returns:
-