QBluetoothSdpUuid Class Reference
|
Constant | Value | Description |
---|---|---|
QBluetoothSdpUuid::UUID16 | 0 | 16 bit UUID. |
QBluetoothSdpUuid::UUID32 | 1 | 32 bit UUID. |
QBluetoothSdpUuid::UUID128 | 2 | 128 bit UUID. |
Constructs a new invalid UUID.
See also isValid().
Constructs a new 16 bit UUID with the value given by data. The type of the UUID will be UUID16
See also isValid().
Constructs a new 32 bit UUID with the value given by data. The type of the UUID will be UUID32
See also isValid().
Constructs a new 128 bit UUID with the value given by data. The type of the UUID will be UUID128
See also isValid().
Constructs a new UUID from a string representation str. The UUID type will be inferred from the size and format of the string. If the string is not in a valid format, an invalid UUID is created.
See also isValid().
Constructs a UUID from a UUID given by other.
Deconstructs a UUID.
This is a convenience method for creating 128 bit UUIDs. The id parameter specifies the 128 bit id to create.
See also create16Bit() and create32Bit().
This is a convenience method for creating 16 bit UUIDs. The id parameter specifies the 16 bit id to create.
See also create32Bit() and create128Bit().
This is a convenience method for creating 32 bit UUIDs. The id parameter specifies the 32 bit id to create.
See also create16Bit() and create128Bit().
This is a convenience method for creating a QBluetoothSdpUuid from profile. The profile enumeration is converted to a Bluetooth assigned number corresponding to the the profile UUID.
Returns whether the UUID is valid.
Converts a UUID into string form.
If the UUID is a 16 bit UUID, the string returned will be in this format: 0xXXXX, where X represents a hexadecimal number. The string will be 0-padded, e.g. 0x00FF.
If the UUID is a 32 bit UUID, the string returned will be in this format: 0xXXXXXXXX where X represents a hexadecimal number. The string will be 0-padded, e.g. 0x0000FFFFFF.
If the UUID is a 128 bit UUID, the string returned will be in the format of: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX where X is a hexadecimal number.
Converts a 16 or 32 bit UUID to a 128 bit UUID and returns the result. If the UUID is already a 128 bit UUID, a copy of the current object is returned.
See also type().
Returns the type of the UUID.
See also uuid().
Returns the uuid as a QVariant. The QVariant should be interpreted based on the QBluetoothSdpUuid type. E.g. quint16 if type is UUID16, quint32 if type is UUID32, and quint128 if type is UUID128.
See also type().
This function returns true if UUID in the current does not match the UUID given by other.
See also operator==().
Assigns the contents of UUID other to the current UUID object.
Compares the current UUID to uuid given by other. If the types do not match, the UUIDs are converted to 128 bit UUIDs and are bitwise compared. The method returns true if uuids match, false otherwise.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com