public class SmartPOSController
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
SmartPOSController.OpenCardReaderListener |
static interface |
SmartPOSController.OpenPrinterListener |
Constructor and Description |
---|
SmartPOSController() |
SmartPOSController(java.lang.String hostname) |
Modifier and Type | Method and Description |
---|---|
RFReturnCode |
closeCardReader()
Initiate command to close RF interface.
|
PrinterReturnCode |
closePrinter()
Initiate command to close Printer interface.
|
boolean |
isCardReaderConnected() |
boolean |
isPrinterConnected() |
void |
openCardReader(int timeout,
byte cardTypes,
SmartPOSController.OpenCardReaderListener listener)
Initiate command to open RF interface.
|
void |
openPrinter(SmartPOSController.OpenPrinterListener listener)
Initiate command to open Printer interface.
|
public SmartPOSController()
public SmartPOSController(java.lang.String hostname)
public void openCardReader(int timeout, byte cardTypes, SmartPOSController.OpenCardReaderListener listener)
timeout
- RF interface timeout in milliseconds.cardTypes
- Byte mask of accepted card types.listener
- SmartPOSController.OpenCardReaderListener
public boolean isCardReaderConnected()
public boolean isPrinterConnected()
public RFReturnCode closeCardReader()
public void openPrinter(SmartPOSController.OpenPrinterListener listener)
public PrinterReturnCode closePrinter()
PrinterReturnCode