QBluetoothServiceInfo Class ReferenceThe QBluetoothServiceInfo class provides information about services. More... #include <QBluetoothServiceInfo>
Public Types
Public Functions
Detailed DescriptionThe QBluetoothServiceInfo class provides information about services. QBluetoothServiceInfo provides information about a service offered by a Bluetooth device. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QBluetoothServiceInfo::ServiceClassIds | 0x0001 | UUIDs of service classes that the service conforms to. |
QBluetoothServiceInfo::ServiceId | 0x0003 | UUID that uniquely identifies the service. |
QBluetoothServiceInfo::ProtocolDescriptorList | 0x0004 | List of protocols used by the service. |
QBluetoothServiceInfo::BrowseGroupList | 0x0005 | List of browse groups the service is in. |
QBluetoothServiceInfo::ServiceAvailability | 0x0008 | Value indicating the availability of the service. |
QBluetoothServiceInfo::PrimaryLanguageBase | 0x0100 | Base index for primary language text descriptors. |
QBluetoothServiceInfo::ServiceRecordHandle | 0x0000 | Specifies a service record from which attributes can be retrieved |
QBluetoothServiceInfo::ServiceName | PrimaryLanguageBase + 0x0000 | Name of the Bluetooth service in the primary language. |
QBluetoothServiceInfo::ServiceDescription | PrimaryLanguageBase + 0x0001 | Description of the Bluetooth service in the primary language. |
QBluetoothServiceInfo::ServiceProvider | PrimaryLanguageBase + 0x0002 | Name of the company / entity that provides the Bluetooth service primary language. |
This enum describes the socket protocol used by the service.
Constant | Value | Description |
---|---|---|
QBluetoothServiceInfo::UnknownProtocol | 0 | The service uses an unknown socket protocol. |
QBluetoothServiceInfo::L2capProtocol | 1 | The service uses the L2CAP socket protocol. |
QBluetoothServiceInfo::RfcommProtocol | 2 | The service uses the RFCOMM socket protocol. |
Construct a new invalid QBluetoothServiceInfo;
Construct a new QBluetoothServiceInfo that is a copy of other.
Destroys the QBluetoothServiceInfo object.
Returns the value of the attribute attributeId.
See also setAttribute().
Returns a list of all attribute ids that this service info has.
Returns true if the service info contains the attribute attributeId; otherwise returns false.
Returns the address of the Bluetooth device that provides this service.
See also setDevice().
Returns true if the Bluetooth service info object is considered complete; otherwise returns false.
A complete service info contains a ProtocolDescriptorList attribute.
Returns true if the service info is registered with the platforms service discovery protocol (SDP) implementation; otherwise returns false.
Returns true if the Bluetooth service info object is valid; otherwise returns false.
An invalid Bluetooth service info has no attributes.
Returns the protocol parameters as a QBluetoothServiceInfo::Sequence for protocol protocol.
An empty QBluetoothServiceInfo::Sequence is returned if protocol is not supported.
This is a convenience function. Returns the protocol/service multiplexer for services which support the L2CAP protocol. Otherwise returns -1.
This function is equivalent to extracting the information from the QBluetoothServiceInfo::Sequence returned from QBluetoothServiceInfo::attribute(QBluetoothServiceInfo::ProtocolDescriptorList).
Registers this service with the platforms service discovery protocol (SDP) implementation, making it findable by other devices when they perform service discovery. Returns true if the service is successfully registered, otherwise returns false. Once registered changes to the record cannot be made. The service must be unregistered and registered.
Removes the attribute attributeId from this service info.
This is a convenience function. Returns the server channel for services which support the RFCOMM protocol. Otherwise returns -1.
This function is equivalent to extracting the information from the QBluetoothServiceInfo::Sequence returned from QBluetoothServiceInfo::attribute(QBluetootherServiceInfo::ProtocolDescriptorList).
This is a convenience function. It is equivalent to calling attribute(QBluetoothServiceInfo::ServiceAvailability).toUInt().
Returns the availability of the service.
See also setServiceAvailability() and attribute().
This is a convenience function. It is equivalent to calling attribute(QBluetoothServiceInfo::ServiceClassIds).value<QList<QBluetoothUuid> >().
Returns a list of UUIDs describing the service classes that this service conforms to.
See also attribute().
This is a convenience function. It is equivalent to calling attribute(QBluetoothServiceInfo::ServiceDescription).toString().
Returns the service description in the primary language.
See also setServiceDescription() and attribute().
This is a convenience function. It is equivalent to calling attribute(QBluetoothServiceInfo::ServiceName).toString().
Returns the service name in the primary language.
See also setServiceName() and attribute().
This is a convenience function. It is equivalent to calling attribute(QBluetoothServiceInfo::ServiceProvider).toString().
Returns the service provider in the primary language.
See also setServiceProvider() and attribute().
This is a convenience function. It is equivalent to calling attribute(QBluetoothServiceInfo::ServiceId).value<QBluetoothUuid>().
Returns the UUID of the service.
See also setServiceUuid() and attribute().
Sets the attribute identified by attributeId to value.
IF the service info is registered with the platforms SDP database the database entry is also updated.
See also attribute(), isRegistered(), and registerService().
This is a convenience function.
Sets the attribute identified by attributeId to value.
This is a convenience function.
Sets the attribute identified by attributeId to value.
This is a convenience function.
Sets the attribute identified by attributeId to value.
Sets the Bluetooth device that provides this service to device.
See also device().
This is a convenience function. It is equivalent to calling setAttribute(QBluetoothServiceInfo::ServiceAvailability, availability).
Sets the availabiltiy of the service to availability.
See also serviceAvailability() and setAttribute().
This is a convenience function. It is equivalent to calling setAttribute(QBluetoothServiceInfo::ServiceDescription, description).
Sets the service description in the primary language to description.
See also serviceDescription() and setAttribute().
This is a convenience function. It is equivalent to calling setAttribute(QBluetoothServiceInfo::ServiceName, name).
Sets the service name in the primary language to name.
See also serviceName() and setAttribute().
This is a convenience function. It is equivalent to calling setAttribute(QBluetoothServiceInfo::ServiceProvider, provider).
Sets the service provider in the primary language to provider.
See also serviceProvider() and setAttribute().
This is a convenience function. It is equivalent to calling setAttribute(QBluetoothServiceInfo::ServiceId, uuid).
Sets the service UUID to uuid.
See also serviceUuid() and setAttribute().
Returns the protocol that this service uses.
Unregisters this service with the platforms service discovery protocol (SDP) implementation.
This service will not longer be findable by other devices via service discovery.
Returns true if the service is successfully unregistered, otherwise returns false.
Makes a copy of the other and assigns it to this QBluetoothServiceInfo object.
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 qtmobility-1.2 | |
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