Diffstat (limited to 'libopie2/opiebluez/obluetooth.h') (more/less context) (ignore 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 @@ -109,79 +109,91 @@ class OBluetooth : public QObject * 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> */ class OBluetoothInterface : public QObject { Q_OBJECT public: typedef QDict<OBluetoothDevice> DeviceMap; typedef QDictIterator<OBluetoothDevice> DeviceIterator; public: /** * Constructor. Normally you don't create @ref OBluetoothInterface objects yourself, * but access them via @ref OBluetooth::interface(). */ OBluetoothInterface( QObject* parent, const char* name, void* devinfo, int ctlfd ); /** * Destructor. */ virtual ~OBluetoothInterface(); /** - * @return the MAC address of the interfaces + * @return the MAC address of the interface. */ QString macAddress() const; /** * Setting an interface to up enables it to receive packets. */ bool setUp( bool ); /** * @returns true if the interface is up. */ 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(); private: DeviceMap _devices; class Private; Private *d; }; /*====================================================================================== * OBluetoothDevice *======================================================================================*/ /** * @brief An bluetooth (remote) device abstraction. * * This class resembles a (remote) bluetooth device. * @author Michael 'Mickey' Lauer <mickey@vanille.de> */ class OBluetoothDevice : public QObject { Q_OBJECT public: /** * Constructor. */ - OBluetoothDevice( QObject* parent, const char* name ); + OBluetoothDevice( QObject* parent, const char* name, void* inqinfo ); /** * Destructor. */ 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; }; } } #endif |