QtMobility Reference Documentation

QBluetoothUuid Class Reference

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

 #include <QBluetoothUuid>

Inherits: QUuid.

This class was introduced in Qt Mobility 1.2.

Public Types

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

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::TcsBin0x0005Telephony Control Specification UUID.
QBluetoothUuid::TcsAt0x0006Telephony Control Specification AT UUID.
QBluetoothUuid::Obex0x0008OBEX protocol UUID.
QBluetoothUuid::Ip0x0009IP protocol UUID.
QBluetoothUuid::Ftp0x000AFTP protocol UUID.
QBluetoothUuid::Http0x000CHTTP protocol UUID.
QBluetoothUuid::Wsp0x000EWSP UUID
QBluetoothUuid::Bnep0x000FBluetooth Network Encapsulation Protocol UUID
QBluetoothUuid::Upnp0x0010Extended Service Discovery Profile UUID
QBluetoothUuid::Hidp0x0011Human Interface Device Profile UUID
QBluetoothUuid::HardcopyControlChannel0x0012Hardcopy Cable Replacement Profile UUID
QBluetoothUuid::HardcopyDataChannel0x0014Hardcopy Cable Replacement Profile UUID
QBluetoothUuid::HardcopyNotification0x0016Hardcopy Cable Replacement Profile UUID
QBluetoothUuid::Avctp0x0017Audio/Video Control Transport Protocol UUID
QBluetoothUuid::Avdtp0x0019Audio/Video Distribution Transport Protocol UUID
QBluetoothUuid::Cmtp0x001BCommon ISDN Access Profile
QBluetoothUuid::UdiCPlain0x001DUDI protocol UUID
QBluetoothUuid::McapControlChannel0x001EMulti-Channel Adaptation Protocol UUID
QBluetoothUuid::McapDataChannel0x001FMulti-Channel Adaptation 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.
QBluetoothUuid::ServiceDiscoveryServer0x1000 
QBluetoothUuid::BrowseGroupDescriptor0x1001Browser group descriptor
QBluetoothUuid::SerialPort0x1101Serial Port Profile UUID
QBluetoothUuid::LANAccessUsingPPP0x1102LAN Access Profile UUID
QBluetoothUuid::DialupNetworking0x1103Dial-up Networking Profile UUID
QBluetoothUuid::IrMCSync0x1104Synchronization Profile UUID
QBluetoothUuid::OBEXFileTransfer0x1106File Transfer Profile (FTP) UUID
QBluetoothUuid::IrMCSyncCommand0x1107Synchronization Profile UUID
QBluetoothUuid::Headset0x1108Headset Profile (HSP) UUID
QBluetoothUuid::AudioSource0x110aAdvanced Audio Distribution Profile (A2DP) UUID
QBluetoothUuid::AudioSink0x110bAdvanced Audio Distribution Profile (A2DP) UUID
QBluetoothUuid::AV_RemoteControlTarget0x110cAudio/Video Remote Control Profile (AVRCP) UUID
QBluetoothUuid::AdvancedAudioDistribution0x110dAdvanced Audio Distribution Profile (A2DP) UUID
QBluetoothUuid::AV_RemoteControl0x110eAudio/Video Remote Control Profile (AVRCP) UUID
QBluetoothUuid::AV_RemoteControlController0x110fAudio/Video Remote Control Profile UUID
QBluetoothUuid::HeadsetAG0x1112Headset Profile (HSP) UUID
QBluetoothUuid::PANU0x1115Personal Area Networking Profile (PAN) UUID
QBluetoothUuid::NAP0x1116Personal Area Networking Profile (PAN) UUID
QBluetoothUuid::GN0x1117Personal Area Networking Profile (PAN) UUID
QBluetoothUuid::DirectPrinting0x1118Basic Printing Profile (BPP) UUID
QBluetoothUuid::ReferencePrinting0x1119Related to Basic Printing Profile (BPP) UUID
QBluetoothUuid::ImagingResponder0x111bBasic Imaging Profile (BIP) UUID
QBluetoothUuid::ImagingResponder0x111bBasic Imaging Profile (BIP) UUID
QBluetoothUuid::ImagingAutomaticArchive0x111cBasic Imaging Profile (BIP) UUID
QBluetoothUuid::Handsfree0x111eHands-Free Profile (HFP) Service Class Identifier and Profile Identifier
QBluetoothUuid::HandsfreeAudioGateway0x111fHands-free Profile (HFP) UUID
QBluetoothUuid::DirectPrintingReferenceObjectsService0x1120Basic Printing Profile (BPP) UUID
QBluetoothUuid::ReflectedUI0x1121Basic Printing Profile (BPP) UUID
QBluetoothUuid::BasicPrinting0x1122Basic Printing Profile (BPP) UUID
QBluetoothUuid::PrintingStatus0x1123Basic Printing Profile (BPP) UUID
QBluetoothUuid::HumanInterfaceDeviceService0x1124Human Interface Device (HID) UUID
QBluetoothUuid::HardcopyCableReplacement0x1125Hardcopy Cable Replacement Profile (HCRP)
QBluetoothUuid::HCRPrint0x1126Hardcopy Cable Replacement Profile (HCRP)
QBluetoothUuid::HCRScan0x1127Hardcopy Cable Replacement Profile (HCRP)
QBluetoothUuid::SIMAccess0x112dSIM Access Profile (SAP) UUID
QBluetoothUuid::PhonebookAccessPCE0x112ePhonebook Access Profile (PBAP) UUID
QBluetoothUuid::PhonebookAccessPSE0x112fPhonebook Access Profile (PBAP) UUID
QBluetoothUuid::PhonebookAccess0x1130Phonebook Access Profile (PBAP)
QBluetoothUuid::HeadsetHS0x1131Headset Profile (HSP) UUID
QBluetoothUuid::MessageAccessServer0x1132Message Access Profile (MAP) UUID
QBluetoothUuid::MessageNotificationServer0x1133Message Access Profile (MAP) UUID
QBluetoothUuid::MessageAccessProfile0x1134Message Access Profile (MAP) UUID
QBluetoothUuid::PnPInformation0x1135Device Identification (DID) UUID
QBluetoothUuid::GenericNetworking0x1201Generic networking
QBluetoothUuid::GenericFileTransfer0x1202Generic file transfer
QBluetoothUuid::GenericAudio0x1203Generic audio
QBluetoothUuid::GenericTelephony0x1204Generic telephone
QBluetoothUuid::VideoSource0x1303Video Distribution Profile (VDP)
QBluetoothUuid::VideoSink0x1304Video Distribution Profile (VDP)
QBluetoothUuid::VideoDistribution0x1305Video Distribution Profile (VDP)
QBluetoothUuid::HDP0x1400Health Device Profile
QBluetoothUuid::HDPSource0x1401Health Device Profile
QBluetoothUuid::HDPSink0x1402Health Device Profile

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.