author | mickeyl <mickeyl> | 2005-07-15 19:50:35 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-07-15 19:50:35 (UTC) |
commit | 637271751ea243456c9c00319e59675f47dcc022 (patch) (side-by-side diff) | |
tree | b17c488a688da6aa004991206d1b2b0aae2f40c7 /libopie2/opiebluez/obluetooth.h | |
parent | 72224480ec012cf8d68608aea5a1b035f4d16895 (diff) | |
download | opie-637271751ea243456c9c00319e59675f47dcc022.zip opie-637271751ea243456c9c00319e59675f47dcc022.tar.gz opie-637271751ea243456c9c00319e59675f47dcc022.tar.bz2 |
opiebluez: add scanning.
Ok, guys, everything until now was easy. It gets very ugly to go from here - even
to just get the name of a remote device, you have to setup some filters on the bluez socket,
fill in some random flags to generate a PDU that calls 'get name' and then afterwards
poll until the result comes in. Nasty :/
The BlueZ kernel interface seems to be very badly (if at all) documented.
All people are assuming that you use libbluetooth to talk to that stack.
However since libbluetooth is GPL, we can't do that :/
Guess, we are stuck here until someone finds time and/or motivation to look
into that and create some easy-to-understand examples for how to talk
directly to the BlueZ kernel interface.
Diffstat (limited to 'libopie2/opiebluez/obluetooth.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiebluez/obluetooth.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/libopie2/opiebluez/obluetooth.h b/libopie2/opiebluez/obluetooth.h index ee4a90d..fa3d2c1 100644 --- a/libopie2/opiebluez/obluetooth.h +++ b/libopie2/opiebluez/obluetooth.h @@ -131,5 +131,5 @@ class OBluetoothInterface : public QObject virtual ~OBluetoothInterface(); /** - * @return the MAC address of the interfaces + * @return the MAC address of the interface. */ QString macAddress() const; @@ -143,5 +143,5 @@ class OBluetoothInterface : public QObject bool isUp() const; /** - * @returns an iterator usable for iterating through the devices in range + * @returns an iterator usable for iterating through the devices in range. */ DeviceIterator neighbourhood(); @@ -171,5 +171,5 @@ class OBluetoothDevice : public QObject * Constructor. */ - OBluetoothDevice( QObject* parent, const char* name ); + OBluetoothDevice( QObject* parent, const char* name, void* inqinfo ); /** * Destructor. @@ -177,7 +177,19 @@ class OBluetoothDevice : public QObject virtual ~OBluetoothDevice(); /** - * @returns the MAC address of the device's interface + * @returns the MAC address of the device's interface. */ QString macAddress() const; + /** + * @returns the class of device. + */ + QString deviceClass() const; + /** + * @returns the device name. + */ + QString getName(); + + private: + class Private; + Private *d; }; |