The QBluetoothUuid class provides a Bluetooth UUID. More...
#include <QBluetoothUuid>
Inherits QUuid.
enum | ProtocolUuid { Sdp, Udp, Rfcomm, Tcp, ..., L2cap } |
enum | ServiceClassUuid { PublicBrowseGroup, ObexObjectPush } |
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 |
The QBluetoothUuid class provides a Bluetooth UUID.
This enum is a convienience type for Bluetooth protocol UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary.
Constant | Value | Description |
---|---|---|
QBluetoothUuid::Sdp | 0x0001 | SDP protocol UUID. |
QBluetoothUuid::Udp | 0x0002 | UDP protocol UUID. |
QBluetoothUuid::Rfcomm | 0x0003 | RFCOMM protocol UUID. |
QBluetoothUuid::Tcp | 0x0004 | TCP protocol UUID. |
QBluetoothUuid::Obex | 0x0008 | OBEX protocol UUID. |
QBluetoothUuid::Ip | 0x0009 | IP protocol UUID. |
QBluetoothUuid::Ftp | 0x000A | FTP protocol UUID. |
QBluetoothUuid::Http | 0x000C | HTTP protocol UUID. |
QBluetoothUuid::L2cap | 0x0100 | L2CAP protocol UUID. |
This enum is a convienience type for Bluetooth service class UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary.
Constant | Value | Description |
---|---|---|
QBluetoothUuid::PublicBrowseGroup | 0x1002 | Public browse group service class. Services which have the public browse group in their browse group list are discoverable by remote devices. |
QBluetoothUuid::ObexObjectPush | 0x1105 | OBEX object push service UUID. |
Constructs a new null Bluetooth UUID.
Constructs a new Bluetooth UUID from the protocol UUID uuid.
Constructs a new Bluetooth UUID from the service class UUID uuid.
Constructs a new Bluetooth UUID from the 16 bit UUID uuid.
Constructs a new Bluetooth UUID from the 32 bit UUID uuid.
Constructs a new Bluetooth UUID from the 128 bit UUID uuid.
Constructs a new Bluetooth UUID from the string uuid.
The string must be in the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.
Constructs a new Bluetooth UUID that is a copy of uuid.
Constructs a new Bluetooth UUID that is a copy of uuid.
Destroys the Bluetooth UUID.
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().
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.
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.
Returns the 128 bit representation of this UUID.
Returns true if other is equal to this Bluetooth UUID; otherwise returns false.