#include </home/clem/local/src/opie/noncore/settings/networksettings2/opietooth2/OTHCISocket.h>
Collaboration diagram for Opietooth2::OTHCISocket:

Public Types | |
| enum | Error { ErrSocket = 1 } |
Signals | |
| void | event (unsigned char eventCode, QByteArray buf) |
| void | error (QString message) |
| void | connectionClosed () |
Public Member Functions | |
| OTHCISocket (OTDriver *ConnectTo) | |
| virtual | ~OTHCISocket () |
| virtual bool | open () |
| virtual void | close () |
| bool | sendCommand (unsigned char ogf, unsigned short ocf, QByteArray buf) |
| bool | readStatus (unsigned char ogf, unsigned short ocf, int *status, int timeout_ms=1000) |
| void | readEvent (void) |
| int | socket (void) |
| QSocketDevice & | socketDevice () |
| OTDriver * | driver () const |
Private Slots | |
| void | slotSocketActivated () |
| void | slotSocketError (int) |
| void | slotConnectionClosed () |
Private Member Functions | |
| void | updateStatus (const QByteArray &data) |
Private Attributes | |
| QGuardedPtr< QSocketNotifier > | HCIReadNotifier |
| QSocketDevice | HCISocket |
| OTDriver * | Driver |
| bool | BStatusSet |
| unsigned short | LastStatusOcf |
| unsigned char | LastStatusOgf |
| int | LastStatus |
|
|
Reads whole HCI packet.
Definition at line 72 of file OTHCISocket.h. |
|
|
Definition at line 25 of file OTHCISocket.cpp. References BStatusSet, Driver, and HCIReadNotifier. |
|
|
Definition at line 32 of file OTHCISocket.cpp. References close(). |
|
|
Closes the HCI socket. Definition at line 36 of file OTHCISocket.cpp. References HCIReadNotifier, HCISocket, odebug, and oendl. Referenced by open(), slotSocketError(), and ~OTHCISocket(). |
|
|
Referenced by slotConnectionClosed(). |
|
|
Definition at line 83 of file OTHCISocket.h. References Driver. |
|
|
Referenced by open(), and slotSocketError(). |
|
||||||||||||
|
Referenced by slotSocketActivated(). |
|
|
Opens a HCI socket for the given
Definition at line 47 of file OTHCISocket.cpp. References close(), Opietooth2::OTDriver::devId(), Opietooth2::OTDriver::devname(), Driver, error(), HCIReadNotifier, HCISocket, odebug, oendl, s, slotSocketActivated(), socket(), and tr. |
|
|
Forces reading the next event packet. Definition at line 190 of file OTHCISocket.cpp. References HCIReadNotifier, and slotSocketActivated(). |
|
||||||||||||||||||||
|
Definition at line 222 of file OTHCISocket.cpp. References BStatusSet, HCISocket, LastStatus, LastStatusOcf, LastStatusOgf, odebug, oendl, and slotSocketActivated(). |
|
||||||||||||||||
|
Definition at line 197 of file OTHCISocket.cpp. References QBuffer::buffer(), QBuffer::close(), HCISocket, IO_WriteOnly, QDataStream::LittleEndian, QBuffer::open(), QDataStream::setByteOrder(), stream, and QDataStream::writeRawBytes(). |
|
|
Definition at line 185 of file OTHCISocket.cpp. References connectionClosed(), odebug, and oendl. Referenced by slotSocketActivated(). |
|
|
Definition at line 124 of file OTHCISocket.cpp. References buf, event(), HCISocket, len, odebug, oendl, slotConnectionClosed(), slotSocketError(), and updateStatus(). Referenced by open(), readEvent(), and readStatus(). |
|
|
Definition at line 114 of file OTHCISocket.cpp. References close(), Opietooth2::OTDriver::devname(), Driver, error(), and tr. Referenced by slotSocketActivated(). |
|
|
Returns the internal socket Definition at line 272 of file OTHCISocket.cpp. References HCISocket. Referenced by open(). |
|
|
Definition at line 80 of file OTHCISocket.h. References HCISocket. |
|
|
Definition at line 169 of file OTHCISocket.cpp. References BStatusSet, IO_ReadOnly, LastStatus, LastStatusOcf, LastStatusOgf, QDataStream::LittleEndian, QDataStream::setByteOrder(), and stream. Referenced by slotSocketActivated(). |
|
|
Definition at line 101 of file OTHCISocket.h. Referenced by OTHCISocket(), readStatus(), and updateStatus(). |
|
|
Definition at line 99 of file OTHCISocket.h. Referenced by driver(), open(), OTHCISocket(), and slotSocketError(). |
|
|
Definition at line 97 of file OTHCISocket.h. Referenced by close(), open(), OTHCISocket(), and readEvent(). |
|
|
Definition at line 98 of file OTHCISocket.h. Referenced by close(), open(), readStatus(), sendCommand(), slotSocketActivated(), socket(), and socketDevice(). |
|
|
Definition at line 104 of file OTHCISocket.h. Referenced by readStatus(), and updateStatus(). |
|
|
Definition at line 102 of file OTHCISocket.h. Referenced by readStatus(), and updateStatus(). |
|
|
Definition at line 103 of file OTHCISocket.h. Referenced by readStatus(), and updateStatus(). |
1.4.2