#include <serialportcomponent.h>
Inheritance diagram for SerialPortComponent:


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 Item * | construct (ItemDocument *itemDocument, bool newItem, const char *id) |
| static LibraryItem * | libraryItem () |
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 | |
| LogicIn * | m_pTD |
| LogicIn * | m_pDTR |
| LogicOut * | m_pCD |
| LogicOut * | m_pCTS |
| LogicOut * | m_pRI |
| SerialPort * | m_pSerialPort |
Definition at line 22 of file serialportcomponent.h.
| 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] |
| 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().
1.5.1