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

Signals | |
| void | error (const QString &mesg) |
| void | isEnabled (int devnr, bool) |
Public Member Functions | |
| OTDevice (OTGateway *_OT) | |
| ~OTDevice () | |
| OTGateway * | gateway () const |
| bool | needsAttach (void) const |
| int | deviceNr () const |
| bool | attach () |
| bool | detach () |
| bool | isAttached () const |
| bool | checkAttach () |
| QString | getRFCommDevicePattern () |
Private Slots | |
| void | slotStdOut (Opie::Core::OProcess *, char *, int) |
| void | slotStdErr (Opie::Core::OProcess *, char *, int) |
Private Member Functions | |
| void | detectDeviceType (QString &Device, QString &Mode, unsigned long &Speed) |
| pid_t | getPidOfHCIAttach (void) |
Private Attributes | |
| Opie::Core::OProcess * | m_hciattach |
| int | m_deviceNr |
| pid_t | m_hciattachPid |
| OTGateway * | OT |
| bool | NeedsAttach |
Definition at line 29 of file OTDevice.h.
|
|
Brings up the device. will detech which device is needed Usage example: new Device(/dev/ttySB0, csr) Definition at line 17 of file OTDevice.cpp. References detectDeviceType(), getPidOfHCIAttach(), m_deviceNr, m_hciattach, m_hciattachPid, needsAttach(), and OT. |
|
|
unloads the device Definition at line 48 of file OTDevice.cpp. References Opie::Core::OProcess::detach(), m_hciattach, and needsAttach(). |
|
|
attach the device
Definition at line 56 of file OTDevice.cpp. References OProcess::AllOutput, detectDeviceType(), OProcess::DontCare, error(), FALSE, m_hciattach, m_hciattachPid, needsAttach(), OProcess, slotStdErr(), slotStdOut(), tr, and TRUE. |
|
|
Definition at line 122 of file OTDevice.cpp. References QDir::exists(), getPidOfHCIAttach(), isEnabled(), m_deviceNr, m_hciattachPid, needsAttach(), S, QString::setNum(), and TRUE. Referenced by Opietooth2::OTGateway::updateDrivers(). |
|
|
detach the device
Definition at line 97 of file OTDevice.cpp. References error(), FALSE, isEnabled(), m_deviceNr, m_hciattach, m_hciattachPid, needsAttach(), odebug, oendl, tr, and TRUE. |
|
||||||||||||||||
|
Definition at line 209 of file OTDevice.cpp. References model, Opie::Core::Model_GenuineIntel, Opie::Core::Model_iPAQ_H39xx, Opie::Core::Model_iPAQ_H5xxx, NeedsAttach, odebug, and oendl. Referenced by attach(), and OTDevice(). |
|
|
Definition at line 54 of file OTDevice.h. References m_deviceNr. |
|
|
Signals if the attach/detach of the device produced errors
|
|
|
Definition at line 48 of file OTDevice.h. References OT. |
|
|
Definition at line 175 of file OTDevice.cpp. References QValueList< T >::begin(), QDir::Dirs, QValueList< T >::end(), QDir::entryList(), QRegExp::match(), needsAttach(), QDir::path(), QFileInfo::readLink(), and QFileInfo::setFile(). Referenced by checkAttach(), and OTDevice(). |
|
|
Definition at line 246 of file OTDevice.cpp. References QDir::exists(). Referenced by BluetoothRFCOMMRun::deviceFile(). |
|
|
Is the device loaded?
Definition at line 118 of file OTDevice.cpp. References m_hciattachPid, and needsAttach(). |
|
||||||||||||
|
Referenced by checkAttach(), detach(), and slotStdOut(). |
|
|
Definition at line 51 of file OTDevice.h. References NeedsAttach. Referenced by attach(), checkAttach(), detach(), getPidOfHCIAttach(), isAttached(), OTDevice(), and ~OTDevice(). |
|
||||||||||||||||
|
Definition at line 164 of file OTDevice.cpp. References QString::append(), m_hciattach, odebug, oendl, and Opie::Internal::string(). Referenced by attach(). |
|
||||||||||||||||
|
Definition at line 150 of file OTDevice.cpp. References Opie::Core::OProcess::detach(), isEnabled(), m_deviceNr, and m_hciattach. Referenced by attach(). |
|
|
Definition at line 107 of file OTDevice.h. Referenced by checkAttach(), detach(), deviceNr(), OTDevice(), and slotStdOut(). |
|
|
Definition at line 105 of file OTDevice.h. Referenced by attach(), detach(), OTDevice(), slotStdErr(), slotStdOut(), and ~OTDevice(). |
|
|
Definition at line 108 of file OTDevice.h. Referenced by attach(), checkAttach(), detach(), isAttached(), and OTDevice(). |
|
|
Definition at line 112 of file OTDevice.h. Referenced by detectDeviceType(), and needsAttach(). |
|
|
Definition at line 111 of file OTDevice.h. Referenced by gateway(), and OTDevice(). |
1.4.2