31#include <qvaluelist.h>
33#include "templexports.h"
35#define EVENT_READER_DATAARRIVED 1
36#define EVENT_READER_ERROR 100
55 int buffering()
const;
57 void setDropStopByte(
bool bDSB) {m_bDropStopByte=
bDSB;}
58 bool dropStopByte()
const {
return m_bDropStopByte;}
60 void setUseStopByte(
bool bUSB) {m_bUseStopByte=
bUSB;}
61 bool useStopByte()
const {
return m_bUseStopByte;}
63 void setMaxLength(
int iML) {m_iMaxLength=
iML;}
64 int maxLength()
const {
return m_iMaxLength;}
66 void setDropBegCnt(
int iDBC) {m_iDropBegCnt=
iDBC;}
67 int dropBegCnt()
const {
return m_iDropBegCnt;}
69 void setDropEndCnt(
int iDEC) {m_iDropEndCnt=
iDEC;}
70 int dropEndCnt()
const {
return m_iDropEndCnt;}
74 void setStopByte(
int);
77 void setMaxDelay(
int);
81 QString startSequence()
const {
return m_qsStartSequence;}
84 QString stopSequence()
const {
return m_qsStopSequence;}
95 return (
int)m_qBuffer.size();
105 virtual int readerType()
const=0;
114 virtual int openPort()=0;
115 virtual int closePort()=0;
116 virtual int readBarcode()=0;
118 virtual void emitSignal();
119 virtual void reportError(
const QString &);
123 virtual void handleData(
const QString &data );
131 bool m_bClearToChangeBC;
133 bool m_bDropStopByte;
141 QString m_qsStartSequence, m_qsStopSequence;
virtual int stopDriver()
Definition tebase.cpp:641
virtual int startDriver()
Definition tebase.cpp:627
virtual QString errorText() const
Definition tebase.cpp:144
The TEReaderBase is base class for all reader classes.
Definition tereaderbase.h:40