Home · All Classes · Annotated · Functions

QBluetoothAddress Class Reference

The QBluetoothAddress class represents a bluetooth address (bdaddr). More...

#include <QBluetoothAddress>

Public Functions


Detailed Description

The QBluetoothAddress class represents a bluetooth address (bdaddr).

The QBluetoothAddress class refers to a single BluetoothAddress object. Each Bluetooth device can have one and only one address. There are certain special addresses defined. Namely any, local, all.

See also QBluetoothLocalDevice and QBluetoothRemoteDevice.


Member Function Documentation

QBluetoothAddress::QBluetoothAddress ()

Construct a new invalid bluetooth address object.

QBluetoothAddress::QBluetoothAddress ( const QBluetoothAddress & other )

Construct a copy of a bluetooth address object from other object.

QBluetoothAddress::QBluetoothAddress ( const QString & addr )

Construct a bluetooth address object based on string representation given by addr. The string should be in the format of XX:XX:XX:XX:XX:XX where XX represents a hexadecimal number. If the string is in an invalid format, and invalid bdaddr is constructed.

QBluetoothAddress::~QBluetoothAddress ()

Destroys a Bluetooth address object.

QString QBluetoothAddress::toString () const

Converts the Bluetooth address object into a QString. The format will be of the form XX:XX:XX:XX:XX:XX where XX is a hexadecimal number.

bool QBluetoothAddress::valid () const

Returns whether the address is valid.

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

Assigns the contents of the Bluetooth address object other to the current object.

bool QBluetoothAddress::operator== ( const QBluetoothAddress & other )

Compares the current Bluetooth address against a Bluetooth address given by other.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7