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

Opie::Bluez::OBluetooth Class Reference

A container class for all bluetooth interfaces. More...

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

Collaboration diagram for Opie::Bluez::OBluetooth:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QDict< OBluetoothInterfaceInterfaceMap
typedef QDictIterator< OBluetoothInterfaceInterfaceIterator

Public Member Functions

int count () const
InterfaceIterator iterator () const
bool isPresent (const char *interface) const
bool isWirelessInterface (const char *interface) const
OBluetoothInterfaceinterface (const QString &interface) const
void synchronize ()

Static Public Member Functions

static OBluetoothinstance ()

Protected Member Functions

 OBluetooth ()

Private Attributes

InterfaceMap _interfaces
OBluetoothPrivate * d
int _fd

Static Private Attributes

static OBluetooth_instance = 0

Detailed Description

A container class for all bluetooth interfaces.

This class provides access to all available bluetooth interfaces of your computer.

Author:
Michael 'Mickey' Lauer <mickey@vanille.de>

Definition at line 49 of file obluetooth.h.


Member Typedef Documentation

typedef QDictIterator<OBluetoothInterface> Opie::Bluez::OBluetooth::InterfaceIterator
 

Definition at line 55 of file obluetooth.h.

typedef QDict<OBluetoothInterface> Opie::Bluez::OBluetooth::InterfaceMap
 

Definition at line 51 of file obluetooth.h.


Constructor & Destructor Documentation

Opie::Bluez::OBluetooth::OBluetooth  )  [protected]
 

Definition at line 58 of file obluetooth.cpp.

References synchronize().

Referenced by instance().


Member Function Documentation

int Opie::Bluez::OBluetooth::count  )  const
 

Returns:
the number of available interfaces

Definition at line 74 of file obluetooth.cpp.

References _interfaces, and QDict< type >::count().

OBluetooth * Opie::Bluez::OBluetooth::instance  )  [static]
 

Returns:
a pointer to the (one and only) OBluetooth instance.

Definition at line 63 of file obluetooth.cpp.

References _instance, and OBluetooth().

Referenced by main().

OBluetoothInterface * Opie::Bluez::OBluetooth::interface const QString interface  )  const
 

Returns:
a pointer to the OBluetoothInterface object for the specified interface or 0, if not found.
See also:
OBluetoothInterface

Definition at line 79 of file obluetooth.cpp.

References _interfaces.

bool Opie::Bluez::OBluetooth::isPresent const char *  interface  )  const
 

Returns:
true, if the interface is present.

bool Opie::Bluez::OBluetooth::isWirelessInterface const char *  interface  )  const
 

Returns:
true, if the interface supports the wireless extension protocol.

OBluetooth::InterfaceIterator Opie::Bluez::OBluetooth::iterator  )  const
 

Returns:
an iterator usable for iterating through all network interfaces.

Definition at line 69 of file obluetooth.cpp.

References _interfaces.

Referenced by main().

void Opie::Bluez::OBluetooth::synchronize  ) 
 

For internal use only.

Rebuild the internal interface database

Note:
Sometimes it might be useful to call this from client code, e.g. after issuing a cardctl insert

Definition at line 84 of file obluetooth.cpp.

References _fd, _interfaces, QDict< type >::clear(), i, QDict< type >::insert(), odebug, oendl, ofatal, and owarn.

Referenced by OBluetooth().


Member Data Documentation

int Opie::Bluez::OBluetooth::_fd [private]
 

Definition at line 98 of file obluetooth.h.

Referenced by synchronize().

OBluetooth * Opie::Bluez::OBluetooth::_instance = 0 [static, private]
 

Definition at line 56 of file obluetooth.cpp.

Referenced by instance().

InterfaceMap Opie::Bluez::OBluetooth::_interfaces [private]
 

Definition at line 95 of file obluetooth.h.

Referenced by count(), interface(), iterator(), and synchronize().

OBluetoothPrivate* Opie::Bluez::OBluetooth::d [private]
 

Definition at line 96 of file obluetooth.h.


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