Qt Mobility Reference Documentation

QBluetoothUuid Class Reference

The QBluetoothUuid class provides a Bluetooth UUID. More...

 #include <QBluetoothUuid>

Inherits QUuid.

Public Types

enum ProtocolUuid { Sdp, Udp, Rfcomm, Tcp, ..., L2cap }
enum ServiceClassUuid { PublicBrowseGroup, ObexObjectPush }

Public Functions

QBluetoothUuid ()
QBluetoothUuid ( ProtocolUuid uuid )
QBluetoothUuid ( ServiceClassUuid uuid )
QBluetoothUuid ( quint16 uuid )
QBluetoothUuid ( quint32 uuid )
QBluetoothUuid ( quint128 uuid )
QBluetoothUuid ( const QString & uuid )
QBluetoothUuid ( const QBluetoothUuid & uuid )
QBluetoothUuid ( const QUuid & uuid )
~QBluetoothUuid ()
int minimumSize () const
quint16 toUInt16 ( bool * ok = 0 ) const
quint32 toUInt32 ( bool * ok = 0 ) const
quint128 toUInt128 () const
bool operator== ( const QBluetoothUuid & other ) const
  • 13 public functions inherited from QUuid

Additional Inherited Members

  • 4 public variables inherited from QUuid
  • 1 static public member inherited from QUuid

Detailed Description

The QBluetoothUuid class provides a Bluetooth UUID.

Member Type Documentation

enum QBluetoothUuid::ProtocolUuid

This enum is a convienience type for Bluetooth protocol UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary.

ConstantValueDescription
QBluetoothUuid::Sdp0x0001SDP protocol UUID.
QBluetoothUuid::Udp0x0002UDP protocol UUID.
QBluetoothUuid::Rfcomm0x0003RFCOMM protocol UUID.
QBluetoothUuid::Tcp0x0004TCP protocol UUID.
QBluetoothUuid::Obex0x0008OBEX protocol UUID.
QBluetoothUuid::Ip0x0009IP protocol UUID.
QBluetoothUuid::Ftp0x000AFTP protocol UUID.
QBluetoothUuid::Http0x000CHTTP protocol UUID.
QBluetoothUuid::L2cap0x0100L2CAP protocol UUID.

enum QBluetoothUuid::ServiceClassUuid

This enum is a convienience type for Bluetooth service class UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary.

ConstantValueDescription
QBluetoothUuid::PublicBrowseGroup0x1002Public browse group service class. Services which have the public browse group in their browse group list are discoverable by remote devices.
QBluetoothUuid::ObexObjectPush0x1105OBEX object push service UUID.

Member Function Documentation

QBluetoothUuid::QBluetoothUuid ()

Constructs a new null Bluetooth UUID.

QBluetoothUuid::QBluetoothUuid ( ProtocolUuid uuid )

Constructs a new Bluetooth UUID from the protocol UUID uuid.

QBluetoothUuid::QBluetoothUuid ( ServiceClassUuid uuid )

Constructs a new Bluetooth UUID from the service class UUID uuid.

QBluetoothUuid::QBluetoothUuid ( quint16 uuid )

Constructs a new Bluetooth UUID from the 16 bit UUID uuid.

QBluetoothUuid::QBluetoothUuid ( quint32 uuid )

Constructs a new Bluetooth UUID from the 32 bit UUID uuid.

QBluetoothUuid::QBluetoothUuid ( quint128 uuid )

Constructs a new Bluetooth UUID from the 128 bit UUID uuid.

QBluetoothUuid::QBluetoothUuid ( const QString & uuid )

Constructs a new Bluetooth UUID from the string uuid.

The string must be in the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.

QBluetoothUuid::QBluetoothUuid ( const QBluetoothUuid & uuid )

Constructs a new Bluetooth UUID that is a copy of uuid.

QBluetoothUuid::QBluetoothUuid ( const QUuid & uuid )

Constructs a new Bluetooth UUID that is a copy of uuid.

QBluetoothUuid::~QBluetoothUuid ()

Destroys the Bluetooth UUID.

int QBluetoothUuid::minimumSize () const

Returns the minimum size in bytes that this UUID can be represented in. For non-null UUIDs 2, 4 or 16 is returned. 0 is returned for null UUIDs.

See also isNull(), toUInt16(), toUInt32(), and toUInt128().

quint16 QBluetoothUuid::toUInt16 ( bool * ok = 0 ) const

Returns the 16 bit representation of this UUID. If ok is passed it is set to true if the conversion is possible otherwise it is set to false. The return value is undefined if ok is set to false.

quint32 QBluetoothUuid::toUInt32 ( bool * ok = 0 ) const

Returns the 32 bit representation of this UUID. If ok is passed it is set to true if the conversion is possible otherwise it is set to false. The return value is undefined if ok is set to false.

quint128 QBluetoothUuid::toUInt128 () const

Returns the 128 bit representation of this UUID.

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

Returns true if other is equal to this Bluetooth UUID; otherwise returns false.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.