151 Q_PROPERTY( QString ActivationKey READ activationKey WRITE setActivationKey )
152 Q_PROPERTY(
int PortNumber READ portNumber WRITE setPortNumber )
153 Q_PROPERTY(
int PortBaudRate READ portBaudRate WRITE setPortBaudRate )
161 virtual void setActivationKey(
const QString &key );
162 virtual QString activationKey()
const;
164 int connectionType();
165 virtual int setConnectionType(
int ct );
167 virtual int setPortNumber(
int pn );
168 int portNumber()
const;
170 void setPollInterval(
int pint );
173 virtual int isOpen();
176 void setTimeout(
int timeout );
180 void setDebugLevel(
int level );
182 virtual QCString utf8ToDevice(
const QString &text );
183 virtual QString deviceToUtf8(
const QCString &text );
185 virtual int isActivationKeyValid();
187 int errorCode()
const {
return iErrorCode; }
188 void setErrorCode(
const int &code ) { iErrorCode = code; }
190 virtual QString errorText()
const;
191 virtual void setErrorText(
const QString & err){m_sError=err;}
193 QString productSuffix()
const
195 return m_sProductSuffix;
197 void setProductSuffix(
const QString & sProductSuffix)
199 m_sProductSuffix=sProductSuffix;
202 void setPortBaudRate(
int);
203 int portBaudRate()
const {
return m_iPBaudRate;}
205 void setPortFlowControl(FlowType);
206 FlowType portFlowControl()
const {
return m_PFlow;}
208 void setPortParity(ParityType);
209 ParityType portParity()
const {
return m_PParity;}
211 void setPortDataBits(DataBitsType);
212 DataBitsType portDataBits()
const {
return m_PDataBits;}
214 void setPortStopBits(StopBitsType);
215 StopBitsType portStopBits()
const {
return m_PStopBits;}
218 virtual QValueList<int> supportedBaudRates();
219 virtual QValueList<int> supportedConnectionTypes();
226 virtual int startDriver();
227 virtual int stopDriver();
228 virtual int setCaptureMode(
int iMode);
229 virtual int captureMode() {
return m_iCaptureMode;};
230 virtual void processEvent(
int Code );
231 virtual QStringList execCommand(
const QString &cmd );
232 virtual bool isDriverRunning() {
return m_bDriverStarted;}
236 void deviceEvent(
int Code );
242 void startPoll(
int PollInterval = 500,
bool defaultProc =
true );
243 void startPoll(
bool defaultProc =
true );
245 void startIOTransaction();
246 void stopIOTransaction();
251 virtual int putch(
int b );
253 virtual Q_ULONG writeBlock(
const char *data, Q_ULONG len );
254 virtual Q_ULONG readBlock(
char *data, Q_ULONG maxlen = 1 );
255 virtual Q_ULONG readCount();
258 void timerEvent( QTimerEvent * );
261 bool m_bDriverStarted;
264 int vPortNumber, vDebugLevel, vTimeout, vPollInterval;
266 int m_eConnectionType;
268 QString vActivationKey;
269 QString m_sProductSuffix;
273 ParityType m_PParity;
274 DataBitsType m_PDataBits;
275 StopBitsType m_PStopBits;
The TE class is a namespace for miscellaneous identifiers that need to be global-like in trade equipm...
Definition teglobal.h:129