SerialDevice Class Reference
Simple serial device.
More...
#include <serialdevice.h>
Inherits SerialDeviceBase.
List of all member functions.
Public Members
- SerialDevice ( const QString & device, int rate = 38400, bool trackStatus = FALSE )
- ~SerialDevice ()
- int fd () const
- bool open ( int mode )
- void close ()
- void flush ()
- uint size () const
- int readBlock ( char * data, uint maxlen )
- int writeBlock ( const char * data, uint len )
- int getch ()
- int putch ( int )
- int ungetch ( int )
- int rate () const
- virtual bool dtr () const
- virtual void setDtr ( bool value )
- virtual bool dsr () const
- virtual bool carrier () const
- virtual bool rts () const
- virtual void setRts ( bool value )
- virtual bool cts () const
- virtual void discard ()
Static Public Members
- SerialDevice * create ( const QString & name, int defaultRate = 115200 )
Detailed Description
Simple serial device.
This class manages a very simple serial device, which is accessed
at a specific baud rate with no parity, 8 data bits, and 1 stop bit.
It is intended for communicating with GSM modems and the like.
See also Qtopia Phone Classes.
Member Function Documentation
SerialDevice * SerialDevice::create ( const QString & name, int defaultRate = 115200 ) [static]
Create and open a serial device from a name of the form "device:rate".
Returns NULL if the device could not be opened.
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.1.2
|