QBluetoothUuid

Since: 1.2

#include <QtConnectivity/QBluetoothUuid>

The QBluetoothUuid class provides a Bluetooth UUID.

QtConnectivity


Overview

Inheritance

QUuid
QBluetoothUuid

Public Types Index

enum ProtocolUuid

Sdp 0x0001, Udp 0x0002, Rfcomm 0x0003, Tcp 0x0004, TcsBin 0x0005, TcsAt 0x0006, Obex 0x0008, Ip 0x0009, Ftp 0x000A, Http 0x000C, Wsp 0x000E, Bnep 0x000F, Upnp 0x0010, Hidp 0x0011, HardcopyControlChannel 0x0012, HardcopyDataChannel 0x0014, HardcopyNotification 0x0016, Avctp 0x0017, Avdtp 0x0019, Cmtp 0x001B, UdiCPlain 0x001D, McapControlChannel 0x001E, McapDataChannel 0x001F, L2cap 0x0100

enum ServiceClassUuid

ServiceDiscoveryServer 0x1000, BrowseGroupDescriptor 0x1001, PublicBrowseGroup 0x1002, SerialPort 0x1101, LANAccessUsingPPP 0x1102, DialupNetworking 0x1103, IrMCSync 0x1104, ObexObjectPush 0x1105, OBEXFileTransfer 0x1106, IrMCSyncCommand 0x1107, Headset 0x1108, AudioSource 0x110a, AudioSink 0x110b, AV_RemoteControlTarget 0x110c, AdvancedAudioDistribution 0x110d, AV_RemoteControl 0x110e, AV_RemoteControlController 0x110f, HeadsetAG 0x1112, PANU 0x1115, NAP 0x1116, GN 0x1117, DirectPrinting 0x1118, ReferencePrinting 0x1119, ImagingResponder 0x111b, ImagingAutomaticArchive 0x111c, ImagingReferencedObjects 0x111d, Handsfree 0x111e, HandsfreeAudioGateway 0x111f, DirectPrintingReferenceObjectsService 0x1120, ReflectedUI 0x1121, BasicPrinting 0x1122, PrintingStatus 0x1123, HumanInterfaceDeviceService 0x1124, HardcopyCableReplacement 0x1125, HCRPrint 0x1126, HCRScan 0x1127, SIMAccess 0x112d, PhonebookAccessPCE 0x112e, PhonebookAccessPSE 0x112f, PhonebookAccess 0x1130, HeadsetHS 0x1131, MessageAccessServer 0x1132, MessageNotificationServer 0x1133, MessageAccessProfile 0x1134, PnPInformation 0x1135, GenericNetworking 0x1201, GenericFileTransfer 0x1202, GenericAudio 0x1203, GenericTelephony 0x1204, VideoSource 0x1303, VideoSink 0x1304, VideoDistribution 0x1305, HDP 0x1400, HDPSource 0x1401, HDPSink 0x1402

enum Variant

VarUnknown -1, NCS 0, DCE 2, Microsoft 6, Reserved 7

enum Version

VerUnknown -1, Time 1, EmbeddedPOSIX 2, Name 3, Random 4

Public Attributes Index

Only has inherited public attributes

uintdata1Inherited
ushortdata2Inherited
ushortdata3Inherited
uchardata4Inherited

Public Functions Index

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 ()
intminimumSize () const
booloperator== (const QBluetoothUuid &other) const
quint128toUInt128 () const
quint16toUInt16 (bool *ok=0) const
quint32toUInt32 (bool *ok=0) const
boolisNull () const Inherited
operator QString () const Inherited
booloperator!= (const QUuid &orig) const Inherited
booloperator< (const QUuid &other) const Inherited
booloperator== (const QUuid &orig) const Inherited
booloperator> (const QUuid &other) const Inherited
QUuid ()Inherited
QUuid (uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8)Inherited
QUuid (const QString &)Inherited
QUuid (const char *)Inherited
QUuid (const QByteArray &)Inherited
QByteArraytoByteArray () const Inherited
QByteArraytoRfc4122 () const Inherited
QStringtoString () const Inherited
QUuid::Variantvariant () const Inherited
QUuid::Versionversion () const Inherited

Static Public Functions Index

Only has inherited static public functions

QUuidcreateUuid ()Inherited
QUuidfromRfc4122 (const QByteArray &)Inherited

Public Types

ProtocolUuid

This enum is a convienience type for Bluetooth protocol UUIDs.

Values of this type will be implicitly converted into a QBluetoothUuid when necessary.

Sdp SDP protocol UUID. Udp UDP protocol UUID. Rfcomm RFCOMM protocol UUID. Tcp TCP protocol UUID. TcsBin Telephony Control Specification UUID. TcsAt Telephony Control Specification AT UUID. Obex OBEX protocol UUID. Ip IP protocol UUID. Ftp FTP protocol UUID. Http HTTP protocol UUID. Wsp WSP UUID Bnep Bluetooth Network Encapsulation Protocol UUID Upnp Extended Service Discovery Profile UUID Hidp Human Interface Device Profile UUID HardcopyControlChannel Hardcopy Cable Replacement Profile UUID HardcopyDataChannel Hardcopy Cable Replacement Profile UUID HardcopyNotification Hardcopy Cable Replacement Profile UUID Avctp Audio/Video Control Transport Protocol UUID Avdtp Audio/Video Distribution Transport Protocol UUID Cmtp Common ISDN Access Profile UdiCPlain UDI protocol UUID McapControlChannel Multi-Channel Adaptation Protocol UUID McapDataChannel Multi-Channel Adaptation Protocol UUID L2cap L2CAP protocol UUID.

Sdp 0x0001
Udp 0x0002
Rfcomm 0x0003
Tcp 0x0004
TcsBin 0x0005
TcsAt 0x0006
Obex 0x0008
Ip 0x0009
Ftp 0x000A
Http 0x000C
Wsp 0x000E
Bnep 0x000F
Upnp 0x0010
Hidp 0x0011
HardcopyControlChannel 0x0012
HardcopyDataChannel 0x0014
HardcopyNotification 0x0016
Avctp 0x0017
Avdtp 0x0019
Cmtp 0x001B
UdiCPlain 0x001D
McapControlChannel 0x001E
McapDataChannel 0x001F
L2cap 0x0100

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.

PublicBrowseGroup Public browse group service class. Services which have the public browse group in their {QBluetoothServiceInfo::BrowseGroupList}{browse group list} are discoverable by remote devices. ObexObjectPush OBEX object push service UUID. ServiceDiscoveryServer BrowseGroupDescriptor Browser group descriptor SerialPort Serial Port Profile UUID LANAccessUsingPPP LAN Access Profile UUID DialupNetworking Dial-up Networking Profile UUID IrMCSync Synchronization Profile UUID OBEXFileTransfer File Transfer Profile (FTP) UUID IrMCSyncCommand Synchronization Profile UUID Headset Headset Profile (HSP) UUID AudioSource Advanced Audio Distribution Profile (A2DP) UUID AudioSink Advanced Audio Distribution Profile (A2DP) UUID AV_RemoteControlTarget Audio/Video Remote Control Profile (AVRCP) UUID AdvancedAudioDistribution Advanced Audio Distribution Profile (A2DP) UUID AV_RemoteControl Audio/Video Remote Control Profile (AVRCP) UUID AV_RemoteControlController Audio/Video Remote Control Profile UUID HeadsetAG Headset Profile (HSP) UUID PANU Personal Area Networking Profile (PAN) UUID NAP Personal Area Networking Profile (PAN) UUID GN Personal Area Networking Profile (PAN) UUID DirectPrinting Basic Printing Profile (BPP) UUID ReferencePrinting Related to Basic Printing Profile (BPP) UUID ImagingResponder Basic Imaging Profile (BIP) UUID ImagingResponder Basic Imaging Profile (BIP) UUID ImagingAutomaticArchive Basic Imaging Profile (BIP) UUID Handsfree Hands-Free Profile (HFP) Service Class Identifier and Profile Identifier HandsfreeAudioGateway Hands-free Profile (HFP) UUID DirectPrintingReferenceObjectsService Basic Printing Profile (BPP) UUID ReflectedUI Basic Printing Profile (BPP) UUID BasicPrinting Basic Printing Profile (BPP) UUID PrintingStatus Basic Printing Profile (BPP) UUID HumanInterfaceDeviceService Human Interface Device (HID) UUID HardcopyCableReplacement Hardcopy Cable Replacement Profile (HCRP) HCRPrint Hardcopy Cable Replacement Profile (HCRP) HCRScan Hardcopy Cable Replacement Profile (HCRP) SIMAccess SIM Access Profile (SAP) UUID PhonebookAccessPCE Phonebook Access Profile (PBAP) UUID PhonebookAccessPSE Phonebook Access Profile (PBAP) UUID PhonebookAccess Phonebook Access Profile (PBAP) HeadsetHS Headset Profile (HSP) UUID MessageAccessServer Message Access Profile (MAP) UUID MessageNotificationServer Message Access Profile (MAP) UUID MessageAccessProfile Message Access Profile (MAP) UUID PnPInformation Device Identification (DID) UUID GenericNetworking Generic networking GenericFileTransfer Generic file transfer GenericAudio Generic audio GenericTelephony Generic telephone VideoSource Video Distribution Profile (VDP) VideoSink Video Distribution Profile (VDP) VideoDistribution Video Distribution Profile (VDP) HDP Health Device Profile HDPSource Health Device Profile HDPSink Health Device Profile

ServiceDiscoveryServer 0x1000
BrowseGroupDescriptor 0x1001
PublicBrowseGroup 0x1002
SerialPort 0x1101
LANAccessUsingPPP 0x1102
DialupNetworking 0x1103
IrMCSync 0x1104
ObexObjectPush 0x1105
OBEXFileTransfer 0x1106
IrMCSyncCommand 0x1107
Headset 0x1108
AudioSource 0x110a
AudioSink 0x110b
AV_RemoteControlTarget 0x110c
AdvancedAudioDistribution 0x110d
AV_RemoteControl 0x110e
AV_RemoteControlController 0x110f
HeadsetAG 0x1112
PANU 0x1115
NAP 0x1116
GN 0x1117
DirectPrinting 0x1118
ReferencePrinting 0x1119
ImagingResponder 0x111b
ImagingAutomaticArchive 0x111c
ImagingReferencedObjects 0x111d
Handsfree 0x111e
HandsfreeAudioGateway 0x111f
DirectPrintingReferenceObjectsService 0x1120
ReflectedUI 0x1121
BasicPrinting 0x1122
PrintingStatus 0x1123
HumanInterfaceDeviceService 0x1124
HardcopyCableReplacement 0x1125
HCRPrint 0x1126
HCRScan 0x1127
SIMAccess 0x112d
PhonebookAccessPCE 0x112e
PhonebookAccessPSE 0x112f
PhonebookAccess 0x1130
HeadsetHS 0x1131
MessageAccessServer 0x1132
MessageNotificationServer 0x1133
MessageAccessProfile 0x1134
PnPInformation 0x1135
GenericNetworking 0x1201
GenericFileTransfer 0x1202
GenericAudio 0x1203
GenericTelephony 0x1204
VideoSource 0x1303
VideoSink 0x1304
VideoDistribution 0x1305
HDP 0x1400
HDPSource 0x1401
HDPSink 0x1402

Variant Inherited

VarUnknown -1
NCS 0
DCE 2
Microsoft 6
Reserved 7

Version Inherited

VerUnknown -1
Time 1
EmbeddedPOSIX 2
Name 3
Random 4

Public Attributes

(Only has inherited public attributes)

uint data1 ()Inherited

ushort data2 ()Inherited

ushort data3 ()Inherited

uchar data4 ()Inherited

Public Functions

QBluetoothUuid ()

Constructs a new null Bluetooth UUID.

QBluetoothUuid (

Constructs a new Bluetooth UUID from the protocol UUID uuid.

QBluetoothUuid (

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

QBluetoothUuid (
  • quint16uuid)

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

QBluetoothUuid (
  • quint32uuid)

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

QBluetoothUuid (

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

QBluetoothUuid (

Constructs a new Bluetooth UUID from the string uuid.

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

QBluetoothUuid (

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

QBluetoothUuid (

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

~QBluetoothUuid ()

Destructor.

int minimumSize ()

Returns the minimum size in bytes that this UUID can be represented in.

See also:

isNull(), toUInt16(), toUInt32(), toUInt128()

bool operator== (

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

quint128 toUInt128 ()

Returns the 128 bit representation of this UUID.

quint16 toUInt16 (
  • bool *ok)

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 toUInt32 (
  • bool *ok)

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.

bool isNull ()Inherited

operator QString ()Inherited

bool operator!= (Inherited

bool operator< (Inherited

bool operator== (Inherited

bool operator> (Inherited

QUuid ()Inherited

QUuid (
  • uintl,
  • ushortw1,
  • ushortw2,
  • ucharb1,
  • ucharb2,
  • ucharb3,
  • ucharb4,
  • ucharb5,
  • ucharb6,
  • ucharb7,
  • ucharb8 )
Inherited

QUuid (Inherited

QUuid (
  • const char *)
Inherited

QUuid (Inherited

QByteArray toByteArray ()Inherited

QByteArray toRfc4122 ()Inherited

QString toString ()Inherited

QUuid::Variant variant ()Inherited

QUuid::Version version ()Inherited

Static Public Functions

(Only has inherited static public functions)

QUuid createUuid ()Inherited

QUuid fromRfc4122 (Inherited

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus