Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Bluez::OBluetoothInterface Class Reference

An bluetooth interface wrapper. More...

#include </home/clem/local/src/opie/libopie2/opiebluez/obluetooth.h>

Collaboration diagram for Opie::Bluez::OBluetoothInterface:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QDict< OBluetoothDeviceDeviceMap
typedef QDictIterator< OBluetoothDeviceDeviceIterator

Public Member Functions

 OBluetoothInterface (QObject *parent, const char *name, void *devinfo, int ctlfd)
virtual ~OBluetoothInterface ()
QString macAddress () const
bool setUp (bool)
bool isUp () const
DeviceIterator neighbourhood ()

Private Attributes

DeviceMap _devices
Privated

Classes

class  Private

Detailed Description

An bluetooth interface wrapper.

This class provides a wrapper for a bluetooth HCI device. All the cumbersome details of Linux ioctls are hidden under a convenient high-level interface.

Warning:
Most of the setting methods contained in this class require the appropriate process permissions to work.
Author:
Michael 'Mickey' Lauer <mickey@vanille.de>

Definition at line 115 of file obluetooth.h.


Member Typedef Documentation

typedef QDictIterator<OBluetoothDevice> Opie::Bluez::OBluetoothInterface::DeviceIterator
 

Definition at line 120 of file obluetooth.h.

typedef QDict<OBluetoothDevice> Opie::Bluez::OBluetoothInterface::DeviceMap
 

Definition at line 117 of file obluetooth.h.


Constructor & Destructor Documentation

Opie::Bluez::OBluetoothInterface::OBluetoothInterface QObject *  parent,
const char *  name,
void *  devinfo,
int  ctlfd
 

Constructor. Normally you don't create OBluetoothInterface objects yourself, but access them via OBluetooth::interface().

Definition at line 152 of file obluetooth.cpp.

References d.

Opie::Bluez::OBluetoothInterface::~OBluetoothInterface  )  [virtual]
 

Destructor.

Definition at line 158 of file obluetooth.cpp.


Member Function Documentation

bool Opie::Bluez::OBluetoothInterface::isUp  )  const
 

Returns:
true if the interface is up.

Definition at line 189 of file obluetooth.cpp.

References d, and Opie::Bluez::OBluetoothInterface::Private::devinfo.

QString Opie::Bluez::OBluetoothInterface::macAddress  )  const
 

Returns:
the MAC address of the interface.

Definition at line 162 of file obluetooth.cpp.

References d, and Opie::Bluez::OBluetoothInterface::Private::devinfo.

OBluetoothInterface::DeviceIterator Opie::Bluez::OBluetoothInterface::neighbourhood  ) 
 

Returns:
an iterator usable for iterating through the devices in range.

Definition at line 194 of file obluetooth.cpp.

References _devices, assert, QDict< type >::clear(), Opie::Bluez::OBluetoothInterface::Private::ctlfd, d, Opie::Bluez::OBluetoothInterface::Private::devinfo, i, QDict< type >::insert(), Opie::Bluez::OBluetoothDevice::macAddress(), oendl, and owarn.

bool Opie::Bluez::OBluetoothInterface::setUp bool   ) 
 

Setting an interface to up enables it to receive packets.

Definition at line 173 of file obluetooth.cpp.

References Opie::Bluez::OBluetoothInterface::Private::ctlfd, d, Opie::Bluez::OBluetoothInterface::Private::devinfo, oendl, owarn, and Opie::Bluez::OBluetoothInterface::Private::reloadInfo().


Member Data Documentation

DeviceMap Opie::Bluez::OBluetoothInterface::_devices [private]
 

Definition at line 150 of file obluetooth.h.

Referenced by neighbourhood().

Private* Opie::Bluez::OBluetoothInterface::d [private]
 

Definition at line 151 of file obluetooth.h.

Referenced by isUp(), macAddress(), neighbourhood(), OBluetoothInterface(), and setUp().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:00:22 2005 for OPIE by  doxygen 1.4.2