Home · All Classes · Annotated · Functions

QBluetoothRemoteDevice Class Reference

The QBluetoothRemoteDevice class represents a remote bluetooth device. More...

#include <QBluetoothRemoteDevice>

Public Functions


Detailed Description

The QBluetoothRemoteDevice class represents a remote bluetooth device.

The QBluetoothRemoteDevice class encapsulates a remote Bluetooth device. This class holds various device attributes of the remote device. These attributes are device address, device class, manufacturer, etc.

See also QBluetoothAddress and QBluetoothLocalDevice.


Member Function Documentation

QBluetoothRemoteDevice::QBluetoothRemoteDevice ( const QBluetoothAddress & address )

Constructs a new QBluetoothRemoteDevice object. The attributes are given default values. The address parameter defines the address of the remote device.

QBluetoothRemoteDevice::QBluetoothRemoteDevice ( const QBluetoothAddress & address, const QString & name, const QString & version, DeviceMajor dev_major, quint8 dev_minor, const QString & manufacturer, int manufacturer_id )

Constructs a new QBluetoothRemoteDevice object.

QBluetoothRemoteDevice::QBluetoothRemoteDevice ( const QBluetoothRemoteDevice & other )

Constructs a new QBluetoothRemoteDevice object from other.

QBluetoothRemoteDevice::~QBluetoothRemoteDevice ()

Deconstructs a QBluetoothRemoteDevice object.

QBluetoothAddress QBluetoothRemoteDevice::address () const

Returns the Bluetooth Address of the remote device.

DeviceMajor QBluetoothRemoteDevice::deviceMajor () const

Returns the major device number of the remote device.

See also setDeviceMajor().

QString QBluetoothRemoteDevice::deviceMajorAsString () const

Returns the major device number in string form

See also setDeviceMajor() and deviceMajor().

quint8 QBluetoothRemoteDevice::deviceMinor () const

Returns the minor device number of the remote device.

See also setDeviceMinor().

QString QBluetoothRemoteDevice::manufacturer () const

Returns "Unknown" if the manufacturer is unknown, otherwise returns the name of the manufacturer

See also setManufacturer().

int QBluetoothRemoteDevice::manufacturerId () const

Returns -1 if the manufacturer_id is not known. Otherwise returns a manufacturer id number.

See also setManufacturerId().

QString QBluetoothRemoteDevice::name () const

Returns the human readable name of the remote device.

See also setName().

void QBluetoothRemoteDevice::setDeviceMajor ( DeviceMajor major )

Sets the major device number of the remote device to major.

See also deviceMajor().

void QBluetoothRemoteDevice::setDeviceMinor ( quint8 minor )

Sets the minor device number of the remote device to minor.

See also deviceMinor().

void QBluetoothRemoteDevice::setManufacturer ( const QString & manuf )

Sets the manufacturer name string to manuf.

See also manufacturer().

void QBluetoothRemoteDevice::setManufacturerId ( int id )

Sets the manufacturer id to id.

See also manufacturerId().

void QBluetoothRemoteDevice::setName ( const QString & name )

Sets a human readable name of the remote device to name.

See also name().

void QBluetoothRemoteDevice::setVersion ( const QString & ver )

Sets the Bluetooth protocol version the remote device supports to ver.

See also version().

QString QBluetoothRemoteDevice::version () const

Returns the Bluetooth protocol version the remote device supports. This can be for instance, 1.0, 1.1, 1.2, etc.

See also setVersion().

QBluetoothRemoteDevice & QBluetoothRemoteDevice::operator= ( const QBluetoothRemoteDevice & other )

Assigns the contents of other to the current object.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7