com.toshiba.tgcsapi
Class TGCSMPOS4610CashDrawer

java.lang.Object
  extended by com.toshiba.tgcsapi.TGCSMPOSDevice
      extended by com.toshiba.tgcsapi.TGCSMPOS4610CashDrawer

public class TGCSMPOS4610CashDrawer
extends TGCSMPOSDevice


Constructor Summary
TGCSMPOS4610CashDrawer()
           
 
Method Summary
 boolean getDrawerOpened()
          Obtain the status of the cash drawer bit.
 void openDrawer()
          Open the cash drawer
 void waitForDrawerClose(int beepTimeout, int beepFrequency, int beepDuration, int beepDelay)
          Wait for the cash drawer to be closed.
 
Methods inherited from class com.toshiba.tgcsapi.TGCSMPOSDevice
addPOSEventListener, claim, clearInput, clearOutput, close, directIO, getClaimed, getDataEventEnabled, getDeviceEnabled, getDevices, getOutputID, getPhysicalDeviceName, getVersion, handleEvent, loadConfigurationFile, loadMICRExceptionFile, open, release, removePOSEventListener, setDataEventEnabled, setDeviceEnabled, unregisterAllEventHandlers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGCSMPOS4610CashDrawer

public TGCSMPOS4610CashDrawer()
Method Detail

openDrawer

public void openDrawer()
                throws TGCSMPOSException
Open the cash drawer

Throws:
TGCSMPOSException

waitForDrawerClose

public void waitForDrawerClose(int beepTimeout,
                               int beepFrequency,
                               int beepDuration,
                               int beepDelay)
                        throws TGCSMPOSException
Wait for the cash drawer to be closed. After beepTimeout, the API will proceed to send beep commands at beepFrequency for beepDuration with beepDelay intervals until the cash drawer is closed. This method will return when the cash drawer closed bit is set.

Throws:
TGCSMPOSException

getDrawerOpened

public boolean getDrawerOpened()
                        throws TGCSMPOSException
Obtain the status of the cash drawer bit. If the cash drawer is opened true, false otherwise.

Throws:
TGCSMPOSException