Class s.b.BaseDevice:

Part of stoqdrivers.base View In Hierarchy

Known subclasses: stoqdrivers.printers.base.BasePrinter, stoqdrivers.readers.barcode.reader.BarcodeReader, stoqdrivers.scales.base.BaseScale

Base class for all device interfaces, responsible for instantiate the device driver itself based on the brand and model specified or in the configuration file.
Method __init__ Undocumented
Method _load_configuration Undocumented
Method get_model_name Undocumented
Method get_firmware_version Printer firmware version
Method check_interfaces This method must be implemented in subclass and must ensure that the
Method notify_read This function can be called when the callsite must know when data
Method set_port Undocumented
Method get_port Undocumented
def __init__(self, brand=None, model=None, device=None, config_file=None, port=None, consts=None):
Undocumented
def _load_configuration(self, config_file):
Undocumented
def get_model_name(self):
Undocumented
def get_firmware_version(self):
Printer firmware version
def check_interfaces(self):
This method must be implemented in subclass and must ensure that the driver implements a valid interface for the current operation state.
def notify_read(self, func):
This function can be called when the callsite must know when data is coming from the serial port. It is necessary that a gobject main loop is already running before calling this method.
def set_port(self, port):
Undocumented
def get_port(self):
Undocumented
API Documentation for Stoqdrivers, generated by pydoctor at 2009-04-30 17:14:35.