Logo Search packages:      
Sourcecode: qtemu version File versions  Download package

Posix_QextSerialPort Class Reference

Inheritance diagram for Posix_QextSerialPort:

QextSerialBase

List of all members.


Detailed Description

Version:
1.0.0
Author:
Stefan Sander

Michal Policht

A cross-platform serial port class. This class encapsulates the POSIX portion of QextSerialPort. The user will be notified of errors and possible portability conflicts at run-time by default - this behavior can be turned off by defining _TTY_NOWARN_ (to turn off all warnings) or _TTY_NOWARN_PORT_ (to turn off portability warnings) in the project. Note that _TTY_NOWARN_ will also turn off portability warnings.

Definition at line 14 of file posix_qextserialport.h.


Public Types

enum  QueryMode { Polling, EventDriven }

Signals

void dsrChanged (bool status)

Public Member Functions

virtual bool atEnd () const
virtual BaudRateType baudRate () const
virtual qint64 bytesAvailable () const
virtual void close ()
virtual void construct ()
virtual DataBitsType dataBits () const
virtual FlowType flowControl () const
virtual void flush ()
virtual bool isSequential () const
virtual ulong lastError () const
virtual ulong lineStatus ()
virtual bool open (OpenMode mode)
Posix_QextSerialPortoperator= (const Posix_QextSerialPort &s)
virtual ParityType parity () const
virtual QString portName () const
 Posix_QextSerialPort (const QString &name, const PortSettings &settings, QextSerialBase::QueryMode mode)
 Posix_QextSerialPort (const PortSettings &settings, QextSerialBase::QueryMode mode)
 Posix_QextSerialPort (const QString &name, QextSerialBase::QueryMode mode)
 Posix_QextSerialPort (const Posix_QextSerialPort &s)
 Posix_QextSerialPort (QextSerialBase::QueryMode mode)
QextSerialBase::QueryMode queryMode () const
virtual qint64 readLine (char *data, qint64 maxSize)
virtual void setBaudRate (BaudRateType)
virtual void setDataBits (DataBitsType)
virtual void setDtr (bool set=true)
virtual void setFlowControl (FlowType)
virtual void setParity (ParityType)
virtual void setPortName (const QString &name)
virtual void setQueryMode (QueryMode mode)
virtual void setRts (bool set=true)
virtual void setStopBits (StopBitsType)
virtual void setTimeout (long)
virtual qint64 size () const
virtual StopBitsType stopBits () const
virtual void translateError (ulong error)
virtual void ungetChar (char c)
virtual ~Posix_QextSerialPort ()

Protected Member Functions

virtual qint64 readData (char *data, qint64 maxSize)
virtual qint64 writeData (const char *data, qint64 maxSize)

Protected Attributes

QextSerialBase::QueryMode _queryMode
int fd
ulong lastErr
QMutex * mutex
struct termios old_termios
QString port
struct termios Posix_CommConfig
struct timeval Posix_Copy_Timeout
struct timeval Posix_Timeout
QSocketNotifier * readNotifier
PortSettings Settings

Private Member Functions

void init ()

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index