#include </home/clem/local/src/opie/noncore/net/opietooth/lib/device.h>
Collaboration diagram for OpieTooth::Device:

Signals | |
| void | device (const QString &device, bool up) |
Public Member Functions | |
| Device (const QString &device, const QString &mode, const QString &speed) | |
| ~Device () | |
| void | attach () |
| void | detach () |
| bool | isLoaded () const |
| QString | devName () const |
Private Slots | |
| virtual void | slotExited (Opie::Core::OProcess *) |
| virtual void | slotStdOut (Opie::Core::OProcess *, char *, int) |
| virtual void | slotStdErr (Opie::Core::OProcess *, char *, int) |
Private Attributes | |
| Private * | d |
| QString | m_device |
| bool | m_attached:1 |
| Opie::Core::OProcess * | m_hci |
| Opie::Core::OProcess * | m_process |
| QString | m_devId |
| QString | m_mode |
| QString | m_speed |
| pid_t | pid |
| QCString | m_output |
Definition at line 18 of file device.h.
|
||||||||||||||||
|
Brings up an device. Usage example: new Device(/dev/ttySB0, csr)
Definition at line 48 of file device.cc. References attach(), m_attached, m_device, m_hci, m_mode, m_process, m_speed, oendl, and owarn. |
|
|
unloads the device Definition at line 60 of file device.cc. References detach(). |
|
|
attach the device Definition at line 67 of file device.cc. References OProcess::AllOutput, QString::latin1(), m_device, m_mode, m_output, m_process, m_speed, OProcess::NotifyOnExit, oendl, OProcess, owarn, QCString::resize(), slotExited(), slotStdErr(), slotStdOut(), and Opie::Core::OProcess::start(). Referenced by Device(). |
|
|
detach the device Definition at line 98 of file device.cc. References m_attached, m_hci, m_process, oendl, owarn, and pid. Referenced by ~Device(). |
|
||||||||||||
|
Signals devicename and up status
Referenced by slotExited(). |
|
|
Returns the device name
Definition at line 112 of file device.cc. References QString::fromLatin1(). |
|
|
Is the device loaded?
Definition at line 109 of file device.cc. References m_attached. Referenced by OpieTooth::BluezApplet::checkBluezStatus(). |
|
|
Definition at line 115 of file device.cc. References device(), Opie::Core::OProcess::exitStatus(), m_attached, m_hci, m_output, m_process, Opie::Core::OProcess::normalExit(), oendl, OProcess, owarn, parsePid(), pid, and Opie::Core::OProcess::start(). Referenced by attach(). |
|
||||||||||||||||
|
Definition at line 182 of file device.cc. References oendl, owarn, and slotStdOut(). Referenced by attach(). |
|
||||||||||||||||
|
Definition at line 169 of file device.cc. References QCString::append(), m_output, m_process, oendl, owarn, and Opie::Internal::string(). Referenced by attach(), and slotStdErr(). |
|
|
|
|
|
Definition at line 77 of file device.h. Referenced by detach(), Device(), isLoaded(), and slotExited(). |
|
|
|
|
|
|
|
|
Definition at line 78 of file device.h. Referenced by detach(), Device(), and slotExited(). |
|
|
|
|
|
Definition at line 84 of file device.h. Referenced by attach(), slotExited(), and slotStdOut(). |
|
|
Definition at line 79 of file device.h. Referenced by attach(), detach(), Device(), slotExited(), and slotStdOut(). |
|
|
|
|
|
Definition at line 83 of file device.h. Referenced by detach(), and slotExited(). |
1.4.2