#include <tebase.h>
Inheritance diagram for TEBase:

Public Slots | |
| virtual void | processEvent (int Code) |
| virtual QStringList | execCommand (const QString &cmd) |
| virtual QString | errorText () const |
Signals | |
| void | deviceEvent (int Code) |
Public Member Functions | |
| TEBase (int pn) | |
| virtual void | setActivationKey (const QString &key) |
| virtual QString | activationKey () const |
| virtual int | setConnectionType (int ct) |
| int | connectionType () |
| virtual int | setPortNumber (int pn) |
| int | portNumber () const |
| void | setPollInterval (int pint) |
| int | pollInterval () |
| virtual int | open () |
| virtual int | close () |
| virtual int | isOpen () |
| int | timeout () |
| void | setTimeout (int timeout) |
| bool | isTimeout () |
| int | debugLevel () |
| void | setDebugLevel (int level) |
| void | startPoll (int PollInterval=500, bool defaultProc=true) |
| void | startPoll (bool defaultProc=true) |
| void | stopPoll () |
| void | startIOTransaction () |
| void | stopIOTransaction () |
| TSerialPort * | port () |
| virtual int | putch (int b) |
| virtual int | getch () |
| virtual Q_ULONG | writeBlock (const char *data, Q_ULONG len) |
| virtual Q_ULONG | readBlock (char *data, Q_ULONG maxlen=1) |
| virtual Q_ULONG | readCount () |
| virtual int | poll () |
| virtual QCString | utf8ToDevice (const QString &text) |
| virtual QString | deviceToUtf8 (const QCString &text) |
| virtual int | isActivationKeyValid () |
| QString | productSuffix () const |
| void | setProductSuffix (const QString &sProductSuffix) |
| void | setPortBaudRate (int) |
| int | portBaudRate () const |
| void | setPortFlowControl (FlowType) |
| FlowType | portFlowControl () const |
| void | setPortParity (ParityType) |
| ParityType | portParity () const |
| void | setPortDataBits (DataBitsType) |
| DataBitsType | portDataBits () const |
| void | setPortStopBits (StopBitsType) |
| StopBitsType | portStopBits () const |
| void | clearPPP () |
| virtual QValueList< int > | supportedBaudRates () |
Protected Member Functions | |
| virtual void | setErrorText (const QString &err) |
| void | timerEvent (QTimerEvent *) |
Protected Attributes | |
| ExecEngine | m_ee |
Properties | |
| QString | ActivationKey [] |
| int | PortNumber [] |
| int | PortBaudRate [] |
Abstract trade equipment object. Object have internal text command interpreter that give access to object functions.
| cmd | (in) command text. Command format: <function> '(' <parm1> ',' <parm2> ',' ... <parmN> ')' |
| TEBase::TEBase | ( | int | pn | ) |
Abstract trade equipment object. Object have internal text command interpreter that give access to object functions.
| cmd | (in) command text. Command format: <function> '(' <parm1> ',' <parm2> ',' ... <parmN> ')' |
| QStringList TEBase::execCommand | ( | const QString & | cmd | ) | [virtual, slot] |
Execute command. Object have internal text command interpreter that give access to object functions.
| cmd | (in) command text. Command format: <function> '(' <parm1> ',' <parm2> ',' ... <parmN> ')' |
| int TEBase::getch | ( | ) | [virtual] |
Get character.
| int TEBase::isOpen | ( | void | ) | [virtual] |
Check comunication port connection.
| TSerialPort * TEBase::port | ( | ) |
Return pointer to device serial port object.
| int TEBase::putch | ( | int | b | ) | [virtual] |
Put character
| Q_ULONG TEBase::readBlock | ( | char * | data, | |
| Q_ULONG | maxlen = 1 | |||
| ) | [virtual] |
Read data block from device.
| void TEBase::startPoll | ( | bool | defaultProc = true |
) |
| void TEBase::startPoll | ( | int | PollInterval = 500, |
|
| bool | defaultProc = true | |||
| ) |
| void TEBase::stopPoll | ( | ) |
| void TEBase::timerEvent | ( | QTimerEvent * | ) | [protected] |
Poll device on timer event.
| Q_ULONG TEBase::writeBlock | ( | const char * | data, | |
| Q_ULONG | len | |||
| ) | [virtual] |
Write data block to device.
1.4.7