#include <tebase.h>
Граф наследования:TEBase:
Открытые слоты | |
virtual void | processEvent (int Code) |
virtual QStringList | execCommand (const QString &cmd) |
virtual QString | errorText () const |
Сигналы | |
void | deviceEvent (int Code) |
Открытые члены | |
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 () |
Защищенные члены | |
virtual void | setErrorText (const QString &err) |
void | timerEvent (QTimerEvent *) |
Защищенные данные | |
ExecEngine | m_ee |
Свойства | |
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 | ( | ) | [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.