Class CapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
- java.lang.Object
-
- org.harctoolbox.irscrutinizer.capturinghardware.CapturingHardware<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.harctoolbox.harchardware.IHarcHardware,org.harctoolbox.harchardware.ir.ICapture,org.harctoolbox.harchardware.ir.IIrReader
- Direct Known Subclasses:
CapturingGlobalCache,CapturingLircMode2,CapturingSendingHardware,CapturingSerial
public abstract class CapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware> extends Object implements org.harctoolbox.harchardware.ir.ICapture
-
-
Field Summary
Fields Modifier and Type Field Description protected GuiUtilsguiUtilsprotected Propsproperties
-
Constructor Summary
Constructors Modifier Constructor Description protectedCapturingHardware(JPanel panel, Props properties, GuiUtils guiUtils, CapturingHardwareManager capturingHardwareManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.harctoolbox.ircore.ModulatedIrSequencecapture()voidclose()abstract TgetCapturer()abstract StringgetName()JPanelgetPanel()StringgetVersion()booleanisValid()protected voidselectMe()voidsetBeginTimeout(int beginTimeout)voidsetCaptureMaxSize(int captureMaxSize)voidsetDebug(int debug)voidsetEndingTimeout(int endingTimeout)voidsetTimeout(int i)protected voidsetupHardwareCommonEnd()voidsetVerbose(boolean verbose)booleanstopCapture()
-
-
-
Constructor Detail
-
CapturingHardware
protected CapturingHardware(JPanel panel, Props properties, GuiUtils guiUtils, CapturingHardwareManager capturingHardwareManager)
-
-
Method Detail
-
getPanel
public JPanel getPanel()
- Returns:
- the panel
-
getCapturer
public abstract T getCapturer()
- Returns:
- the hardware
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
setupHardwareCommonEnd
protected void setupHardwareCommonEnd()
-
selectMe
protected void selectMe() throws IOException, org.harctoolbox.harchardware.HarcHardwareException- Throws:
IOExceptionorg.harctoolbox.harchardware.HarcHardwareException
-
capture
public org.harctoolbox.ircore.ModulatedIrSequence capture() throws org.harctoolbox.harchardware.HarcHardwareException, IOException, org.harctoolbox.ircore.InvalidArgumentException- Specified by:
capturein interfaceorg.harctoolbox.harchardware.ir.ICapture- Throws:
org.harctoolbox.harchardware.HarcHardwareExceptionIOExceptionorg.harctoolbox.ircore.InvalidArgumentException
-
stopCapture
public boolean stopCapture()
- Specified by:
stopCapturein interfaceorg.harctoolbox.harchardware.ir.ICapture
-
getVersion
public String getVersion() throws IOException
- Specified by:
getVersionin interfaceorg.harctoolbox.harchardware.IHarcHardware- Throws:
IOException
-
setVerbose
public void setVerbose(boolean verbose)
- Specified by:
setVerbosein interfaceorg.harctoolbox.harchardware.IHarcHardware
-
setTimeout
public void setTimeout(int i) throws IOException, org.harctoolbox.harchardware.HarcHardwareException- Specified by:
setTimeoutin interfaceorg.harctoolbox.harchardware.IHarcHardware- Throws:
IOExceptionorg.harctoolbox.harchardware.HarcHardwareException
-
setDebug
public void setDebug(int debug)
- Specified by:
setDebugin interfaceorg.harctoolbox.harchardware.IHarcHardware
-
setBeginTimeout
public void setBeginTimeout(int beginTimeout) throws IOException, org.harctoolbox.harchardware.HarcHardwareException- Specified by:
setBeginTimeoutin interfaceorg.harctoolbox.harchardware.ir.IIrReader- Throws:
IOExceptionorg.harctoolbox.harchardware.HarcHardwareException
-
setCaptureMaxSize
public void setCaptureMaxSize(int captureMaxSize) throws IOException, org.harctoolbox.harchardware.HarcHardwareException- Specified by:
setCaptureMaxSizein interfaceorg.harctoolbox.harchardware.ir.IIrReader- Throws:
IOExceptionorg.harctoolbox.harchardware.HarcHardwareException
-
setEndingTimeout
public void setEndingTimeout(int endingTimeout) throws IOException, org.harctoolbox.harchardware.HarcHardwareException- Specified by:
setEndingTimeoutin interfaceorg.harctoolbox.harchardware.ir.IIrReader- Throws:
IOExceptionorg.harctoolbox.harchardware.HarcHardwareException
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceorg.harctoolbox.harchardware.IHarcHardware
-
getName
public abstract String getName()
-
-