10#ifdef QT_WINRT_BLUETOOTH
269 d->minorDeviceClass =
static_cast<quint8>((classOfDevice >> 2) & 0x3f);
270 d->majorDeviceClass =
static_cast<MajorDeviceClass>((classOfDevice >> 8) & 0x1f);
271 d->serviceClasses =
static_cast<ServiceClasses
>((classOfDevice >> 13) & 0x7ff);
296 d->deviceUuid = uuid;
298 d->minorDeviceClass =
static_cast<quint8>((classOfDevice >> 2) & 0x3f);
299 d->majorDeviceClass =
static_cast<MajorDeviceClass>((classOfDevice >> 8) & 0x1f);
300 d->serviceClasses =
static_cast<ServiceClasses
>((classOfDevice >> 13) & 0x7ff);
360 d->address =
other.d_func()->address;
361 d->name =
other.d_func()->name;
362 d->minorDeviceClass =
other.d_func()->minorDeviceClass;
363 d->majorDeviceClass =
other.d_func()->majorDeviceClass;
364 d->serviceClasses =
other.d_func()->serviceClasses;
365 d->valid =
other.d_func()->valid;
366 d->cached =
other.d_func()->cached;
367 d->serviceUuids =
other.d_func()->serviceUuids;
368 d->manufacturerData =
other.d_func()->manufacturerData;
369 d->serviceData =
other.d_func()->serviceData;
370 d->rssi =
other.d_func()->rssi;
371 d->deviceCoreConfiguration =
other.d_func()->deviceCoreConfiguration;
372 d->deviceUuid =
other.d_func()->deviceUuid;
395 if (
a.d_func()->cached !=
b.d_func()->cached)
397 if (
a.d_func()->valid !=
b.d_func()->valid)
399 if (
a.d_func()->majorDeviceClass !=
b.d_func()->majorDeviceClass)
401 if (
a.d_func()->minorDeviceClass !=
b.d_func()->minorDeviceClass)
403 if (
a.d_func()->serviceClasses !=
b.d_func()->serviceClasses)
405 if (
a.d_func()->name !=
b.d_func()->name)
407 if (
a.d_func()->address !=
b.d_func()->address)
409 if (
a.d_func()->serviceUuids.size() !=
b.d_func()->serviceUuids.size())
411 if (
a.d_func()->serviceUuids !=
b.d_func()->serviceUuids)
413 if (
a.d_func()->manufacturerData !=
b.d_func()->manufacturerData)
415 if (
a.d_func()->serviceData !=
b.d_func()->serviceData)
417 if (
a.d_func()->deviceCoreConfiguration !=
b.d_func()->deviceCoreConfiguration)
419 if (
a.d_func()->deviceUuid !=
b.d_func()->deviceUuid)
470 return d->serviceClasses;
480 return d->majorDeviceClass;
495 return d->minorDeviceClass;
505 d->serviceUuids = uuids;
519 return d->serviceUuids;
532 return d->manufacturerData.keys().toList();
561 return d->manufacturerData.value(manufacturerId);
577 auto it =
d->manufacturerData.constFind(manufacturerId);
578 while (
it !=
d->manufacturerData.cend() &&
it.key() == manufacturerId) {
584 d->manufacturerData.insert(manufacturerId,
data);
602 return d->manufacturerData;
614 return d->serviceData.keys().toList();
638 return d->serviceData.value(serviceId);
651 auto it =
d->serviceData.constFind(serviceId);
652 while (
it !=
d->serviceData.cend() &&
it.key() == serviceId) {
658 d->serviceData.insert(serviceId,
data);
676 return d->serviceData;
690 d->deviceCoreConfiguration = coreConfigs;
705 return d->deviceCoreConfiguration;
743 d->deviceUuid = uuid;
761 return d->deviceUuid;
QBluetoothDeviceInfoPrivate()
~QBluetoothDeviceInfo()
Destroys the QBluetoothDeviceInfo.
QBluetoothDeviceInfoPrivate * d_ptr
QBluetoothDeviceInfo & operator=(const QBluetoothDeviceInfo &other)
Makes a copy of the other and assigns it to this QBluetoothDeviceInfo object.
QMultiHash< QBluetoothUuid, QByteArray > serviceData() const
Returns the complete set of all service data from advertisement packets.
QList< QBluetoothUuid > serviceIds() const
Returns all service data IDs from advertisement packets attached to this device information.
void setDeviceUuid(const QBluetoothUuid &uuid)
Sets the unique identifier uuid for Bluetooth devices, that do not have addresses.
QBluetoothAddress address() const
Returns the address of the device.
MajorDeviceClass
This enum describes a Bluetooth device's major device class.
QMultiHash< quint16, QByteArray > manufacturerData() const
Returns the complete set of all manufacturer data from advertisement packets.
quint8 minorDeviceClass() const
Returns the minor device class of the device.
bool isValid() const
Returns true if the QBluetoothDeviceInfo object is valid, otherwise returns false.
void setServiceUuids(const QList< QBluetoothUuid > &uuids)
Sets the list of service UUIDs to uuids.
void setRssi(qint16 signal)
Set the signal strength value, used internally.
void setCached(bool cached)
Used by the system to set the cached flag if the QBluetoothDeviceInfo is created from cached data.
QBluetoothDeviceInfo::CoreConfigurations coreConfigurations() const
Returns the configuration of the device.
ServiceClasses serviceClasses() const
Returns the service class of the device.
QList< quint16 > manufacturerIds() const
Returns all manufacturer IDs from advertisement packets attached to this device information.
QBluetoothUuid deviceUuid() const
Returns a unique identifier for a Bluetooth device without an address.
bool isCached() const
Returns true if the QBluetoothDeviceInfo object is created from cached data.
QList< QBluetoothUuid > serviceUuids() const
Returns the list of service UUIDs supported by the device.
bool setServiceData(const QBluetoothUuid &serviceId, const QByteArray &data)
Sets the advertised service data for the given serviceId.
MajorDeviceClass majorDeviceClass() const
Returns the major device class of the device.
QString name() const
Returns the name assigned to the device.
QBluetoothDeviceInfo()
Constructs an invalid QBluetoothDeviceInfo object.
void setName(const QString &name)
Sets the name of the device.
qint16 rssi() const
Returns the signal strength when the device was last scanned.
bool setManufacturerData(quint16 manufacturerId, const QByteArray &data)
Sets the advertised manufacturer data for the given manufacturerId.
void setCoreConfigurations(QBluetoothDeviceInfo::CoreConfigurations coreConfigs)
Sets the CoreConfigurations of the device to coreConfigs.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QSet< QString >::iterator it
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint GLuint64EXT address