14 QBluetoothServiceInfo__Alternative)
152#ifdef QT_OSX_BLUETOOTH
327 qRegisterMetaType<QBluetoothServiceInfo>();
466 else if (parameters.
size() == 1)
533 case QMetaType::Void:
536 case QMetaType::UChar:
539 case QMetaType::UShort:
542 case QMetaType::UInt:
545 case QMetaType::Char:
548 case QMetaType::Short:
554 case QMetaType::QString:
558 case QMetaType::QByteArray:
562 case QMetaType::Bool:
565 case QMetaType::QUrl:
570 if (
var.
typeId() == qMetaTypeId<QBluetoothUuid>()) {
592 }
else if (
var.
typeId() == qMetaTypeId<QBluetoothServiceInfo::Sequence>()) {
597 }
else if (
var.
typeId() == qMetaTypeId<QBluetoothServiceInfo::Alternative>()) {
608#ifndef QT_NO_DEBUG_STREAM
612 dbg.noquote() <<
"\n";
630 if (parameters.
empty())
632 if (parameters.
at(0).
userType() == qMetaTypeId<QBluetoothUuid>()) {
647 else if (parameters.
size() == 1)
IOBluetoothDevice * device
QBluetoothServiceInfo::Sequence protocolDescriptor(QBluetoothUuid::ProtocolUuid protocol) const
QMap< quint16, QVariant > attributes
bool registerService(const QBluetoothAddress &localAdapter=QBluetoothAddress())
int serverChannel() const
bool isRegistered() const
QBluetoothDeviceInfo deviceInfo
QBluetoothServiceInfo()
Construct a new invalid QBluetoothServiceInfo;.
int protocolServiceMultiplexer() const
This is a convenience function.
QBluetoothServiceInfo::Protocol socketProtocol() const
Returns the protocol that the QBluetoothServiceInfo object uses.
void setDevice(const QBluetoothDeviceInfo &info)
Sets the Bluetooth device that provides this service to device.
QList< quint16 > attributes() const
Returns a list of all attribute ids that the QBluetoothServiceInfo object has.
void setAttribute(quint16 attributeId, const QVariant &value)
Sets the attribute identified by attributeId to value.
QSharedPointer< QBluetoothServiceInfoPrivate > d_ptr
~QBluetoothServiceInfo()
Destroys the QBluetoothServiceInfo object.
Protocol
This enum describes the socket protocol used by the service.
bool isComplete() const
Returns true if the QBluetoothServiceInfo object is considered complete, otherwise returns false.
bool isValid() const
Returns true if the QBluetoothServiceInfo object is valid, otherwise returns false.
bool isRegistered() const
Returns true if the service information is registered with the platform's Service Discovery Protocol ...
QVariant attribute(quint16 attributeId) const
Returns the value of the attribute attributeId.
QBluetoothServiceInfo::Sequence protocolDescriptor(QBluetoothUuid::ProtocolUuid protocol) const
Returns the protocol parameters as a QBluetoothServiceInfo::Sequence for protocol protocol.
int serverChannel() const
This is a convenience function.
bool registerService(const QBluetoothAddress &localAdapter=QBluetoothAddress())
void removeAttribute(quint16 attributeId)
Removes the attribute attributeId from the QBluetoothServiceInfo object.
QList< QBluetoothUuid > serviceClassUuids() const
Returns a list of UUIDs describing the service classes that this service conforms to.
bool contains(quint16 attributeId) const
Returns true if the QBluetoothServiceInfo object contains the attribute attributeId,...
bool unregisterService()
Unregisters this service with the platform's Service Discovery Protocol (SDP) implementation.
QBluetoothServiceInfo & operator=(const QBluetoothServiceInfo &other)
Makes a copy of the other and assigns it to this QBluetoothServiceInfo object.
QBluetoothDeviceInfo device() const
Returns the address of the Bluetooth device that provides this service.
quint16 toUInt16(bool *ok=nullptr) const
Returns the 16 bit representation of this UUID.
int minimumSize() const
Returns the minimum size in bytes that this UUID can be represented in.
quint32 toUInt32(bool *ok=nullptr) const
Returns the 32 bit representation of this UUID.
ProtocolUuid
This enum is a convienience type for Bluetooth protocol UUIDs.
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
QByteArray toHex(char separator='\0') const
Returns a hex encoded copy of the byte array.
qsizetype size() const noexcept
bool isEmpty() const noexcept
bool empty() const noexcept
const_reference at(qsizetype i) const noexcept
T value(qsizetype i) const
void append(parameter_type t)
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
size_type remove(const Key &key)
QList< Key > keys() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toUtf8() const &
static QString static QString asprintf(const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
QByteArray toByteArray(StringFormat mode=WithBraces) const
void * data()
Returns a pointer to the contained object as a generic void* that can be written to.
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
int toInt(bool *ok=nullptr) const
Returns the variant as an int if the variant has userType() \l QMetaType::Int, \l QMetaType::Bool,...
uint toUInt(bool *ok=nullptr) const
Returns the variant as an unsigned int if the variant has userType() \l QMetaType::UInt,...
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
bool toBool() const
Returns the variant as a bool if the variant has userType() Bool.
int typeId() const
Returns the storage type of the value stored in the variant.
QByteArray toByteArray() const
Returns the variant as a QByteArray if the variant has userType() \l QMetaType::QByteArray or \l QMet...
QUrl toUrl() const
Returns the variant as a QUrl if the variant has userType() \l QMetaType::QUrl; otherwise returns an ...
Combined button and popup list for selecting options.
static void dumpAttributeVariant(QDebug dbg, const QVariant &var, const QString &indent)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
GLsizei const GLfloat * v
[13]
#define QStringLiteral(str)
QFileInfo info(fileName)
[8]
\inmodule QtCore \reentrant