org.harctoolbox.irscrutinizer.capturinghardware
Class CapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>

java.lang.Object
  extended by org.harctoolbox.irscrutinizer.capturinghardware.CapturingHardware<T>
Type Parameters:
T -
Direct Known Subclasses:
CapturingGlobalCache, CapturingLircMode2, CapturingSerial

public abstract class CapturingHardware<T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware>
extends java.lang.Object

This class does something interesting and useful. Or not...


Field Summary
protected  int beginTimeout
           
protected  int endTimeout
           
protected  org.harctoolbox.guicomponents.GuiUtils guiUtils
           
protected  T hardware
           
protected  int maxLearnLength
           
protected  Props properties
           
protected  boolean verbose
           
 
Constructor Summary
protected CapturingHardware(javax.swing.JPanel panel, Props properties, org.harctoolbox.guicomponents.GuiUtils guiUtils, CapturingHardwareManager capturingHardwareManager)
           
 
Method Summary
 org.harctoolbox.IrpMaster.ModulatedIrSequence capture()
           
 void close()
           
 T getCapturer()
           
abstract  java.lang.String getName()
           
 javax.swing.JPanel getPanel()
           
 java.lang.String getVersion()
           
 boolean isValid()
           
protected  void selectMe()
           
 void setTimeout(int i)
           
protected  void setupHardwareCommonEnd()
           
 void setVerbose(boolean verbose)
           
 void setVerbosity(boolean verbosity)
           
 boolean stopCapture()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hardware

protected T extends org.harctoolbox.harchardware.ir.ICapture & org.harctoolbox.harchardware.IHarcHardware hardware

properties

protected Props properties

guiUtils

protected org.harctoolbox.guicomponents.GuiUtils guiUtils

verbose

protected boolean verbose

beginTimeout

protected int beginTimeout

maxLearnLength

protected int maxLearnLength

endTimeout

protected int endTimeout
Constructor Detail

CapturingHardware

protected CapturingHardware(javax.swing.JPanel panel,
                            Props properties,
                            org.harctoolbox.guicomponents.GuiUtils guiUtils,
                            CapturingHardwareManager capturingHardwareManager)
Method Detail

getPanel

public javax.swing.JPanel getPanel()
Returns:
the panel

getCapturer

public T getCapturer()
Returns:
the hardware

setVerbose

public void setVerbose(boolean verbose)

close

public void close()

setupHardwareCommonEnd

protected void setupHardwareCommonEnd()

selectMe

protected void selectMe()
                 throws java.io.IOException,
                        org.harctoolbox.harchardware.HarcHardwareException
Throws:
java.io.IOException
org.harctoolbox.harchardware.HarcHardwareException

capture

public org.harctoolbox.IrpMaster.ModulatedIrSequence capture()
                                                      throws org.harctoolbox.harchardware.HarcHardwareException,
                                                             java.io.IOException,
                                                             org.harctoolbox.IrpMaster.IrpMasterException
Throws:
org.harctoolbox.harchardware.HarcHardwareException
java.io.IOException
org.harctoolbox.IrpMaster.IrpMasterException

stopCapture

public boolean stopCapture()

getVersion

public java.lang.String getVersion()
                            throws java.io.IOException
Throws:
java.io.IOException

setVerbosity

public void setVerbosity(boolean verbosity)

setTimeout

public void setTimeout(int i)
                throws java.io.IOException
Throws:
java.io.IOException

isValid

public boolean isValid()

getName

public abstract java.lang.String getName()