|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.toshiba.tgcsapi.TGCSMPOSDevice
public class TGCSMPOSDevice
Constructor Summary | |
---|---|
TGCSMPOSDevice()
|
Method Summary | |
---|---|
void |
addPOSEventListener(POSEventHandler handler)
Add a POSEventHandler to the virtual device. |
void |
claim(int timeout)
Perform the claim() operation. |
void |
clearInput()
Perform clearInput() operation. |
void |
clearOutput()
Perform clearOutput() operation. |
void |
close()
Perform device close() operation. |
void |
directIO(int command,
int data,
java.lang.Object obj)
Perform directIO() operation. |
boolean |
getClaimed()
Obtain the claimed state of the virtual device. |
boolean |
getDataEventEnabled()
Obtain DataEventEnabled state of the virtual device. |
boolean |
getDeviceEnabled()
Obtain the DeviceEnabled state of the virtual device. |
static ConfiguredDevice[] |
getDevices()
This method will return an array of ConfiguredDevice registered with the SDK. |
int |
getOutputID()
Obtain the OutputID value for the virtual device. |
java.lang.String |
getPhysicalDeviceName()
Obtain the PhysicalDeviceName of the virtual device. |
static java.lang.String |
getVersion()
This class-wide method is used to obtain the API Version. |
void |
handleEvent(POSEvent event)
Call the registered listeners to process the events that has been fired. |
static void |
loadConfigurationFile(java.lang.String configurationFile)
Loads a configuration file to the TGCS Mobile POS System. |
static void |
loadMICRExceptionFile(java.lang.String micrExceptionFile)
Load the MICR Exception File that will facilitate in the parsing of MICR data from the TGCS Printer. |
void |
open(java.lang.String logicalDeviceName)
Perform device open() operation. |
void |
release()
Perform release() operation. |
void |
removePOSEventListener(POSEventHandler handler)
Removes a POSEventHandler from the virtual device. |
void |
setDataEventEnabled(boolean value)
Set the DataEventEnabled attribute of the virtual device. |
void |
setDeviceEnabled(boolean value)
Set the DeviceEnabled state of the virtual device. |
void |
unregisterAllEventHandlers()
Removes all registered POSEventHandlers from the virtual device. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TGCSMPOSDevice()
Method Detail |
---|
public void handleEvent(POSEvent event)
public void addPOSEventListener(POSEventHandler handler)
handler
- public void removePOSEventListener(POSEventHandler handler)
handler
- public void unregisterAllEventHandlers()
public static java.lang.String getVersion()
public static void loadConfigurationFile(java.lang.String configurationFile)
configurationFile
- public static void loadMICRExceptionFile(java.lang.String micrExceptionFile)
micrExceptionFile
- public static ConfiguredDevice[] getDevices()
public void open(java.lang.String logicalDeviceName) throws TGCSMPOSException
TGCSMPOSException
public void close() throws TGCSMPOSException
TGCSMPOSException
public void claim(int timeout) throws TGCSMPOSException
TGCSMPOSException
public void release() throws TGCSMPOSException
TGCSMPOSException
public void directIO(int command, int data, java.lang.Object obj) throws TGCSMPOSException
TGCSMPOSException
public void clearInput() throws TGCSMPOSException
TGCSMPOSException
public void clearOutput() throws TGCSMPOSException
TGCSMPOSException
public boolean getClaimed() throws TGCSMPOSException
TGCSMPOSException
public boolean getDeviceEnabled() throws TGCSMPOSException
TGCSMPOSException
public void setDeviceEnabled(boolean value) throws TGCSMPOSException
TGCSMPOSException
public boolean getDataEventEnabled() throws TGCSMPOSException
TGCSMPOSException
public void setDataEventEnabled(boolean value) throws TGCSMPOSException
TGCSMPOSException
public int getOutputID() throws TGCSMPOSException
TGCSMPOSException
public java.lang.String getPhysicalDeviceName() throws TGCSMPOSException
TGCSMPOSException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |