4#ifndef QBLUETOOTHSERVICEINFO_H
5#define QBLUETOOTHSERVICEINFO_H
7#include <QtBluetooth/qtbluetoothglobal.h>
9#include <QtBluetooth/QBluetoothUuid>
10#include <QtBluetooth/QBluetoothAddress>
12#include <QtCore/QMetaType>
13#include <QtCore/QList>
14#include <QtCore/QSharedPointer>
15#include <QtCore/QVariant>
17#include <QtCore/QDebug>
28 ServiceRecordHandle = 0x0000,
29 ServiceClassIds = 0x0001,
30 ServiceRecordState = 0x0002,
32 ProtocolDescriptorList = 0x0004,
33 BrowseGroupList = 0x0005,
34 LanguageBaseAttributeIdList = 0x0006,
35 ServiceInfoTimeToLive = 0x0007,
36 ServiceAvailability = 0x0008,
37 BluetoothProfileDescriptorList = 0x0009,
38 DocumentationUrl = 0x000A,
39 ClientExecutableUrl = 0x000B,
41 AdditionalProtocolDescriptorList = 0x000D,
42 PrimaryLanguageBase = 0x0100,
43 ServiceName = PrimaryLanguageBase + 0x0000,
44 ServiceDescription = PrimaryLanguageBase + 0x0001,
45 ServiceProvider = PrimaryLanguageBase + 0x0002
73 bool isComplete()
const;
85 void removeAttribute(
quint16 attributeId);
88 inline QString serviceName()
const;
89 inline void setServiceDescription(
const QString &description);
90 inline QString serviceDescription()
const;
91 inline void setServiceProvider(
const QString &provider);
92 inline QString serviceProvider()
const;
95 int protocolServiceMultiplexer()
const;
96 int serverChannel()
const;
100 inline void setServiceAvailability(
quint8 availability);
101 inline quint8 serviceAvailability()
const;
112 bool unregisterService();
115#ifndef QT_NO_DEBUG_STREAM
118 return streamingOperator(
d,
i);
132 QBluetoothServiceInfo__Alternative,
IOBluetoothDevice * device
Alternative()
Constructs a new empty alternative.
Alternative(const QList< QVariant > &list)
Constructs a new alternative that is a copy of list.
Sequence()
Constructs a new empty sequence.
Sequence(const QList< QVariant > &list)
Constructs a new sequence that is a copy of list.
void setServiceUuid(const QBluetoothUuid &uuid)
This is a convenience function.
QBluetoothUuid serviceUuid() const
This is a convenience function.
friend QDebug operator<<(QDebug d, const QBluetoothServiceInfo &i)
void setAttribute(quint16 attributeId, const QVariant &value)
Sets the attribute identified by attributeId to value.
QSharedPointer< QBluetoothServiceInfoPrivate > d_ptr
void setServiceProvider(const QString &provider)
This is a convenience function.
void setServiceAvailability(quint8 availability)
This is a convenience function.
Protocol
This enum describes the socket protocol used by the service.
void setServiceDescription(const QString &description)
This is a convenience function.
bool isRegistered() const
Returns true if the service information is registered with the platform's Service Discovery Protocol ...
QString serviceDescription() const
This is a convenience function.
AttributeId
Bluetooth service attributes.
QString serviceProvider() const
This is a convenience function.
bool registerService(const QBluetoothAddress &localAdapter=QBluetoothAddress())
void setServiceName(const QString &name)
This is a convenience function.
void setAttribute(quint16 attributeId, const QBluetoothUuid &value)
This is a convenience function.
QString serviceName() const
This is a convenience function.
quint8 serviceAvailability() const
This is a convenience function.
ProtocolUuid
This enum is a convienience type for Bluetooth protocol UUIDs.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
static bool contains(const QJsonArray &haystack, unsigned needle)
QFileInfo info(fileName)
[8]
app setAttribute(Qt::AA_DontShowIconsInMenus)