QBluetoothZero  2.0
QBtLocalDevice Class Reference

#include <QBtLocalDevice.h>

List of all members.

Static Public Member Functions

static QBtAddress getLocalDeviceAddress ()
static bool isVisible ()
static void setVisible (bool value)
static QBtDevice::DeviceMajor getDeviceClass ()
static void setDeviceClass (QBtDevice::DeviceMajor classId)
static void setLocalDeviceName (const QString &deviceName)
static QString getLocalDeviceName ()
static bool isBluetoothSupported ()
static void askUserTurnOnBtPower ()
static bool setBluetoothPowerState (bool value)
static bool getBluetoothPowerState ()
static bool addNewDevice (const QBtDevice &device)
static bool deleteDevice (const QBtDevice &device)
static bool deleteDevice (const QBtAddress &address)
static bool unpairDevice (const QBtDevice &device)
static bool unpairDevice (const QBtAddress &address)

Member Function Documentation

static bool QBtLocalDevice::addNewDevice ( const QBtDevice device) [static]

Add a new device in the bluetooth registry.

Parameters:
devicethe device to be added
Returns:
true upon success, else false
static void QBtLocalDevice::askUserTurnOnBtPower ( ) [static]

Symbian specific function. Used if bluetooth is powered off, showing a dialog that asks permission from the user to power on bluetooth.

static bool QBtLocalDevice::deleteDevice ( const QBtDevice device) [static]

Delete a device from the bluetooth registry.

Parameters:
devicethe device to be deleted
Returns:
true upon success, else false. If device doesn't exists in the registry the also false
static bool QBtLocalDevice::deleteDevice ( const QBtAddress address) [static]

Delete a device from the bluetooth registry using the bluetooth address.

Parameters:
addressthe device address of the device to be delete
Returns:
true upon success, else false. If device doesn't exists in the registry the also false
static bool QBtLocalDevice::getBluetoothPowerState ( ) [static]

Returns true/false if bluetooth hardware is powered on/off respectively.

static QBtDevice::DeviceMajor QBtLocalDevice::getDeviceClass ( ) [static]
static QBtAddress QBtLocalDevice::getLocalDeviceAddress ( ) [static]

Bluetooth local properties /// Returns if possible the local device address

static QString QBtLocalDevice::getLocalDeviceName ( ) [static]

Get local device name.

Returns:
device name
static bool QBtLocalDevice::isBluetoothSupported ( ) [static]

Returns true if bluetooth hardware exists and is plugged in.

static bool QBtLocalDevice::isVisible ( ) [static]

Returns true if local device is visible to other devices.

static bool QBtLocalDevice::setBluetoothPowerState ( bool  value) [static]

Symbian specific function. Turns on/off bluetooth. Returns true is operation was sucessful.

static void QBtLocalDevice::setDeviceClass ( QBtDevice::DeviceMajor  classId) [static]

Sets the UUID of the device that characterizes the device's type. The possible enumeration values passed as argument are defined in QBtDevice::DeviceMajor.

static void QBtLocalDevice::setLocalDeviceName ( const QString &  deviceName) [static]

Sets the name of the device throught which it will be identified by other devices during SDP discovery.

static void QBtLocalDevice::setVisible ( bool  value) [static]

Sets the device visibility to other devices.

Parameters:
valuetrue -> visible, false -> invisible
static bool QBtLocalDevice::unpairDevice ( const QBtDevice device) [static]

Breaks the pairing between the local device and the device passed as argument.

Parameters:
devicethe device class containing the information of the device to be unpaired.
static bool QBtLocalDevice::unpairDevice ( const QBtAddress address) [static]

Breaks the pairing between the local device and the remote device identified by the bluetooth address passed as argument.

Parameters:
addressthe bluetooth address of the remote device.

The documentation for this class was generated from the following file: