SerialPortComponent Class Reference

#include <serialportcomponent.h>

Inheritance diagram for SerialPortComponent:

Inheritance graph
[legend]
Collaboration diagram for SerialPortComponent:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SerialPortComponent (ICNDocument *icnDocument, bool newItem, const char *id=0)
 ~SerialPortComponent ()
virtual bool canFlip () const
virtual void stepNonLogic ()
virtual bool doesStepNonLogic () const

Static Public Member Functions

static Itemconstruct (ItemDocument *itemDocument, bool newItem, const char *id)
static LibraryItemlibraryItem ()

Protected Member Functions

void initPort (const QString &port, unsigned baudRate)
virtual void dataChanged ()
virtual void drawShape (QPainter &p)
void tdCallback (bool isHigh)
void dtrCallback (bool isHigh)
void dsrCallback (bool isHigh)
void rtsCallback (bool isHigh)

Protected Attributes

LogicInm_pTD
LogicInm_pDTR
LogicOutm_pCD
LogicOutm_pCTS
LogicOutm_pRI
SerialPortm_pSerialPort

Detailed Description

Author:
David Saxton

Definition at line 22 of file serialportcomponent.h.


Member Function Documentation

virtual bool SerialPortComponent::canFlip (  )  const [inline, virtual]

Whether or not we can flip the item

Reimplemented from Item.

Definition at line 28 of file serialportcomponent.h.

virtual bool SerialPortComponent::doesStepNonLogic (  )  const [inline, virtual]

If reinherit (and use) the stepNonLogic function, then you must also reinherit this function so that it returns true. Else your component will not get called.

Reimplemented from Component.

Definition at line 33 of file serialportcomponent.h.

void SerialPortComponent::initPort ( const QString &  port,
unsigned  baudRate 
) [protected]

Parameters:
baudRate as defined in <bits/termios.h>

Definition at line 188 of file serialportcomponent.cpp.

References SerialPort::closePort(), m_pSerialPort, SerialPort::openPort(), and Item::p_itemDocument.

Referenced by dataChanged().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:57 2007 for KTechLab by  doxygen 1.5.1