BluezQt::Device

Search for usage in LXR

#include <BluezQt/Device>

Inheritance diagram for BluezQt::Device:

Public Types

enum  Type {
  Phone , Modem , Computer , Network ,
  Headset , Headphones , AudioVideo , Keyboard ,
  Mouse , Joypad , Tablet , Peripheral ,
  Camera , Printer , Imaging , Wearable ,
  Toy , Health , Uncategorized
}
 
- Public Types inherited from QObject
typedef  QObjectList
 

Properties

AdapterPtr adapter
 
QString address
 
quint16 appearance
 
BatteryPtr battery
 
bool blocked
 
bool connected
 
quint32 deviceClass
 
QString friendlyName
 
QList< GattServiceRemotePtrgattServices
 
QString icon
 
InputPtr input
 
bool legacyPairing
 
ManData manufacturerData
 
MediaPlayerPtr mediaPlayer
 
MediaTransportPtr mediaTransport
 
QString modalias
 
QString name
 
bool paired
 
QString remoteName
 
qint16 rssi
 
bool servicesResolved
 
bool trusted
 
Type type
 
QString ubi
 
QStringList uuids
 
- Properties inherited from QObject
 objectName
 

Signals

void addressChanged (const QString &address)
 
void appearanceChanged (quint16 appearance)
 
void batteryChanged (BatteryPtr battery)
 
void blockedChanged (bool blocked)
 
void connectedChanged (bool connected)
 
void deviceChanged (DevicePtr device)
 
void deviceClassChanged (quint32 deviceClass)
 
void deviceRemoved (DevicePtr device)
 
void friendlyNameChanged (const QString &friendlyName)
 
void gattServiceAdded (GattServiceRemotePtr service)
 
void gattServiceChanged (GattServiceRemotePtr service)
 
void gattServiceRemoved (GattServiceRemotePtr service)
 
void gattServicesChanged (QList< GattServiceRemotePtr > services)
 
void iconChanged (const QString &icon)
 
void inputChanged (InputPtr input)
 
void legacyPairingChanged (bool legacyPairing)
 
void manufacturerDataChanged (ManData man)
 
void mediaPlayerChanged (MediaPlayerPtr mediaPlayer)
 
void mediaTransportChanged (MediaTransportPtr mediaTransport)
 
void modaliasChanged (const QString &modalias)
 
void nameChanged (const QString &name)
 
void pairedChanged (bool paired)
 
void remoteNameChanged (const QString &remoteName)
 
void rssiChanged (qint16 rssi)
 
void serviceDataChanged (const QHash< QString, QByteArray > &serviceData)
 
void servicesResolvedChanged (bool servicesResolved)
 
void trustedChanged (bool trusted)
 
void typeChanged (Type type)
 
void uuidsChanged (const QStringList &uuids)
 

Public Slots

PendingCallcancelPairing ()
 
PendingCallconnectProfile (const QString &uuid)
 
PendingCallconnectToDevice ()
 
PendingCalldisconnectFromDevice ()
 
PendingCalldisconnectProfile (const QString &uuid)
 
PendingCallpair ()
 

Public Member Functions

 ~Device () override
 
AdapterPtr adapter () const
 
QString address () const
 
quint16 appearance () const
 
BatteryPtr battery () const
 
quint32 deviceClass () const
 
QString friendlyName () const
 
QList< GattServiceRemotePtrgattServices () const
 
bool hasLegacyPairing () const
 
QString icon () const
 
InputPtr input () const
 
bool isBlocked () const
 
bool isConnected () const
 
bool isPaired () const
 
bool isServicesResolved () const
 
bool isTrusted () const
 
ManData manufacturerData () const
 
MediaPlayerPtr mediaPlayer () const
 
MediaTransportPtr mediaTransport () const
 
QString modalias () const
 
QString name () const
 
QString remoteName () const
 
qint16 rssi () const
 
QHash< QString, QByteArrayserviceData () const
 
PendingCallsetBlocked (bool blocked)
 
PendingCallsetName (const QString &name)
 
PendingCallsetTrusted (bool trusted)
 
DevicePtr toSharedPtr () const
 
Device::Type type () const
 
QString ubi () const
 
QStringList uuids () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Static Public Member Functions

static Device::Type stringToType (const QString &typeString)
 
static QString typeToString (Device::Type type)
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 

Additional Inherited Members

- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

Bluetooth device.

This class represents a Bluetooth device.

Member Enumeration Documentation

◆ Type

Device types.

Enumerator
Phone 

The device is a phone.

Modem 

The device is a modem.

Computer 

The device is a computer.

Network 

The device is a network.

Headset 

The device is a headset.

Headphones 

The device is a headphones.

AudioVideo 

The device is an uncategorized audio video device.

Keyboard 

The device is a keyboard.

Mouse 

The device is a mouse.

Joypad 

The device is a joypad.

Tablet 

The device is a graphics tablet (input device).

Peripheral 

The device is an uncategorized peripheral device.

Camera 

The device is a camera.

Printer 

The device is a printer.

Imaging 

The device is an uncategorized imaging device.

Wearable 

The device is a wearable device.

Toy 

The device is a toy.

Health 

The device is a health device.

Uncategorized 

The device is not of any of the known types.

Definition at line 65 of file device.h.

Property Documentation

◆ adapter

AdapterPtr BluezQt::Device::adapter
read

Definition at line 58 of file device.h.

◆ address

QString BluezQt::Device::address
read

Definition at line 36 of file device.h.

◆ appearance

quint16 BluezQt::Device::appearance
read

Definition at line 42 of file device.h.

◆ battery

BatteryPtr BluezQt::Device::battery
read

Definition at line 54 of file device.h.

◆ blocked

bool BluezQt::Device::blocked
readwrite

Definition at line 46 of file device.h.

◆ connected

bool BluezQt::Device::connected
read

Definition at line 51 of file device.h.

◆ deviceClass

quint32 BluezQt::Device::deviceClass
read

Definition at line 40 of file device.h.

◆ friendlyName

QString BluezQt::Device::friendlyName
read

Definition at line 38 of file device.h.

◆ gattServices

QList<GattServiceRemotePtr> BluezQt::Device::gattServices
read

Definition at line 59 of file device.h.

◆ icon

QString BluezQt::Device::icon
read

Definition at line 43 of file device.h.

◆ input

InputPtr BluezQt::Device::input
read

Definition at line 55 of file device.h.

◆ legacyPairing

bool BluezQt::Device::legacyPairing
read

Definition at line 47 of file device.h.

◆ manufacturerData

ManData BluezQt::Device::manufacturerData
read

Definition at line 49 of file device.h.

◆ mediaPlayer

MediaPlayerPtr BluezQt::Device::mediaPlayer
read

Definition at line 56 of file device.h.

◆ mediaTransport

MediaTransportPtr BluezQt::Device::mediaTransport
read

Definition at line 57 of file device.h.

◆ modalias

QString BluezQt::Device::modalias
read

Definition at line 53 of file device.h.

◆ name

QString BluezQt::Device::name
readwrite

Definition at line 37 of file device.h.

◆ paired

bool BluezQt::Device::paired
read

Definition at line 44 of file device.h.

◆ remoteName

QString BluezQt::Device::remoteName
read

Definition at line 39 of file device.h.

◆ rssi

qint16 BluezQt::Device::rssi
read

Definition at line 48 of file device.h.

◆ servicesResolved

bool BluezQt::Device::servicesResolved
read

Definition at line 50 of file device.h.

◆ trusted

bool BluezQt::Device::trusted
readwrite

Definition at line 45 of file device.h.

◆ type

Type BluezQt::Device::type
read

Definition at line 41 of file device.h.

◆ ubi

QString BluezQt::Device::ubi
read

Definition at line 35 of file device.h.

◆ uuids

QStringList BluezQt::Device::uuids
read

Definition at line 52 of file device.h.

Constructor & Destructor Documentation

◆ ~Device()

BluezQt::Device::~Device ( )
overridedefault

Destroys a Device object.

Member Function Documentation

◆ adapter()

AdapterPtr BluezQt::Device::adapter ( ) const

Returns an adapter that discovered this device.

Returns
adapter of device

Definition at line 181 of file device.cpp.

◆ address()

QString BluezQt::Device::address ( ) const

Returns an address of the device.

Example address: "40:79:6A:0C:39:75"

Returns
address of device

Definition at line 34 of file device.cpp.

◆ addressChanged

void BluezQt::Device::addressChanged ( const QString & address)
signal

Indicates that device's address have changed.

◆ appearance()

quint16 BluezQt::Device::appearance ( ) const

Returns an appearance of the device.

Returns
appearance of device

Definition at line 79 of file device.cpp.

◆ appearanceChanged

void BluezQt::Device::appearanceChanged ( quint16 appearance)
signal

Indicates that device's appearance have changed.

◆ battery()

BatteryPtr BluezQt::Device::battery ( ) const

Returns the battery interface for the device.

Returns
null if device has no battery
Since
5.66

Definition at line 161 of file device.cpp.

◆ batteryChanged

void BluezQt::Device::batteryChanged ( BatteryPtr battery)
signal

Indicates that device's battery has changed.

◆ blockedChanged

void BluezQt::Device::blockedChanged ( bool blocked)
signal

Indicates that device's blocked state have changed.

◆ cancelPairing

PendingCall * BluezQt::Device::cancelPairing ( )
slot

Cancels a pairing with the device.

This method can be used to cancel pairing operation initiated with pair().

Possible errors: PendingCall::DoesNotExist, PendingCall::Failed

Returns
void pending call

Definition at line 302 of file device.cpp.

◆ connectedChanged

void BluezQt::Device::connectedChanged ( bool connected)
signal

Indicates that device's connected state have changed.

◆ connectProfile

PendingCall * BluezQt::Device::connectProfile ( const QString & uuid)
slot

Connects a specific profile of the device.

Possible errors: PendingCall::DoesNotExist, PendingCall::AlreadyConnected, PendingCall::ConnectFailed

Parameters
uuidservice UUID
Returns
void pending call

Definition at line 287 of file device.cpp.

◆ connectToDevice

PendingCall * BluezQt::Device::connectToDevice ( )
slot

Connects all auto-connectable profiles of the device.

This method indicates success if at least one profile was connected.

Possible errors: PendingCall::NotReady, PendingCall::Failed, PendingCall::InProgress, PendingCall::AlreadyConnected

Returns
void pending call

Definition at line 277 of file device.cpp.

◆ deviceChanged

void BluezQt::Device::deviceChanged ( DevicePtr device)
signal

Indicates that at least one of the device's properties have changed.

◆ deviceClass()

quint32 BluezQt::Device::deviceClass ( ) const

Returns a class of the device.

In case of Bluetooth Low Energy only devices, device class is invalid (0).

See also
type() const
Returns
class of device

Definition at line 65 of file device.cpp.

◆ deviceClassChanged

void BluezQt::Device::deviceClassChanged ( quint32 deviceClass)
signal

Indicates that device's class have changed.

◆ deviceRemoved

void BluezQt::Device::deviceRemoved ( DevicePtr device)
signal

Indicates that the device was removed.

◆ disconnectFromDevice

PendingCall * BluezQt::Device::disconnectFromDevice ( )
slot

Disconnects all connected profiles of the device.

This method can be used to cancel not-yet finished connectDevice() call.

Possible errors: PendingCall::NotConnected

Returns
void pending call

Definition at line 282 of file device.cpp.

◆ disconnectProfile

PendingCall * BluezQt::Device::disconnectProfile ( const QString & uuid)
slot

Disconnects a specific profile of the device.

Possible errors: PendingCall::DoesNotExist, PendingCall::Failed, PendingCall::NotConnected, PendingCall::NotSupported

Parameters
uuidservice UUID
Returns
void pending call

Definition at line 292 of file device.cpp.

◆ friendlyName()

QString BluezQt::Device::friendlyName ( ) const

Returns a friendly name of the device.

Friendly name is a string "name (remoteName)". If the remoteName is same as name, it returns just name.

Returns
friendly name of device

Definition at line 49 of file device.cpp.

◆ friendlyNameChanged

void BluezQt::Device::friendlyNameChanged ( const QString & friendlyName)
signal

Indicates that device's friendly name have changed.

◆ gattServiceAdded

void BluezQt::Device::gattServiceAdded ( GattServiceRemotePtr service)
signal

Indicates that a new service was added (eg.

found by connection).

◆ gattServiceChanged

void BluezQt::Device::gattServiceChanged ( GattServiceRemotePtr service)
signal

Indicates that at least one of the device's services have changed.

◆ gattServiceRemoved

void BluezQt::Device::gattServiceRemoved ( GattServiceRemotePtr service)
signal

Indicates that a service was removed.

◆ gattServices()

QList< GattServiceRemotePtr > BluezQt::Device::gattServices ( ) const

Returns list of services known by the device.

Returns
list of services

Definition at line 186 of file device.cpp.

◆ gattServicesChanged

void BluezQt::Device::gattServicesChanged ( QList< GattServiceRemotePtr > services)
signal

Indicates that device GATT services list has changed.

◆ hasLegacyPairing()

bool BluezQt::Device::hasLegacyPairing ( ) const

Returns whether the device has legacy pairing.

Returns
true if device has legacy pairing

Definition at line 121 of file device.cpp.

◆ icon()

QString BluezQt::Device::icon ( ) const

Returns an icon name of the device.

In case the icon is empty, "preferences-system-bluetooth" is returned.

Returns
icon name of device

Definition at line 84 of file device.cpp.

◆ iconChanged

void BluezQt::Device::iconChanged ( const QString & icon)
signal

Indicates that device's icon have changed.

◆ input()

InputPtr BluezQt::Device::input ( ) const

Returns the input interface for the device.

Only input devices will have valid input interface.

Returns
null if device have no input

Definition at line 166 of file device.cpp.

◆ inputChanged

void BluezQt::Device::inputChanged ( InputPtr input)
signal

Indicates that device's input have changed.

◆ isBlocked()

bool BluezQt::Device::isBlocked ( ) const

Returns whether the device is blocked.

Returns
true if device is blocked

Definition at line 111 of file device.cpp.

◆ isConnected()

bool BluezQt::Device::isConnected ( ) const

Returns whether the device is connected.

Returns
true if connected

Definition at line 141 of file device.cpp.

◆ isPaired()

bool BluezQt::Device::isPaired ( ) const

Returns whether the device is paired.

Returns
true if device is paired

Definition at line 96 of file device.cpp.

◆ isServicesResolved()

bool BluezQt::Device::isServicesResolved ( ) const

Returns whether or not service discovery has been resolved.

Returns
true if servicesResolved

Definition at line 136 of file device.cpp.

◆ isTrusted()

bool BluezQt::Device::isTrusted ( ) const

Returns whether the device is trusted.

Returns
true if device is trusted

Definition at line 101 of file device.cpp.

◆ legacyPairingChanged

void BluezQt::Device::legacyPairingChanged ( bool legacyPairing)
signal

Indicates that device's legacy pairing state have changed.

◆ manufacturerData()

ManData BluezQt::Device::manufacturerData ( ) const

Returns manufacturer specific advertisement data.

Note
Keys are 16 bits Manufacturer ID followed by its byte array value.
Returns
manufacturerData of device.

Definition at line 131 of file device.cpp.

◆ manufacturerDataChanged

void BluezQt::Device::manufacturerDataChanged ( ManData man)
signal

Indicates that device's manufacturer data have changed.

◆ mediaPlayer()

MediaPlayerPtr BluezQt::Device::mediaPlayer ( ) const

Returns the media player interface for the device.

Only devices with connected appropriate profile will have valid media player interface.

Returns
null if device have no media player

Definition at line 171 of file device.cpp.

◆ mediaPlayerChanged

void BluezQt::Device::mediaPlayerChanged ( MediaPlayerPtr mediaPlayer)
signal

Indicates that device's media player have changed.

◆ mediaTransport()

MediaTransportPtr BluezQt::Device::mediaTransport ( ) const

Returns the media transport interface for the device.

Only devices with connected appropriate profile will have valid media transport interface.

Returns
null if device have no media transport

Definition at line 176 of file device.cpp.

◆ mediaTransportChanged

void BluezQt::Device::mediaTransportChanged ( MediaTransportPtr mediaTransport)
signal

Indicates that device's media transport have changed.

◆ modalias()

QString BluezQt::Device::modalias ( ) const

Returns remote device ID in modalias format.

Returns
device modalias

Definition at line 151 of file device.cpp.

◆ modaliasChanged

void BluezQt::Device::modaliasChanged ( const QString & modalias)
signal

Indicates that device's modalias have changed.

◆ name()

QString BluezQt::Device::name ( ) const

Returns a name of the device.

If the name of the device wasn't previously changed, remoteName is returned.

Returns
name of device

Definition at line 39 of file device.cpp.

◆ nameChanged

void BluezQt::Device::nameChanged ( const QString & name)
signal

Indicates that device's name have changed.

◆ pair

◆ pairedChanged

void BluezQt::Device::pairedChanged ( bool paired)
signal

Indicates that device's paired state have changed.

◆ remoteName()

QString BluezQt::Device::remoteName ( ) const

Returns a remote name of the device.

Returns
remote name of device

Definition at line 60 of file device.cpp.

◆ remoteNameChanged

void BluezQt::Device::remoteNameChanged ( const QString & remoteName)
signal

Indicates that device's remote name have changed.

◆ rssi()

qint16 BluezQt::Device::rssi ( ) const

Returns Received Signal Strength Indicator of the device.

The bigger value indicates better signal strength.

Note
RSSI is only updated during discovery.
Returns
RSSI of device

Definition at line 126 of file device.cpp.

◆ rssiChanged

void BluezQt::Device::rssiChanged ( qint16 rssi)
signal

Indicates that device's RSSI have changed.

◆ serviceData()

QHash< QString, QByteArray > BluezQt::Device::serviceData ( ) const

Returns the service advertisement data.

Returns
A hash with keys being the UUIDs in and values being the raw service data value.
Since
5.72

Definition at line 156 of file device.cpp.

◆ serviceDataChanged

void BluezQt::Device::serviceDataChanged ( const QHash< QString, QByteArray > & serviceData)
signal

Indicates that the device's service data has changed.

Since
5.72

◆ servicesResolvedChanged

void BluezQt::Device::servicesResolvedChanged ( bool servicesResolved)
signal

Indicates that device's servicesResolved state have changed.

◆ setBlocked()

PendingCall * BluezQt::Device::setBlocked ( bool blocked)

Sets the blocked state of the device.

Parameters
blockedblocked state
Returns
void pending call

Definition at line 116 of file device.cpp.

◆ setName()

PendingCall * BluezQt::Device::setName ( const QString & name)

Sets the name of the device.

Parameters
namename for device
Returns
void pending call

Definition at line 44 of file device.cpp.

◆ setTrusted()

PendingCall * BluezQt::Device::setTrusted ( bool trusted)

Sets the trusted state of the device.

Parameters
trustedtrusted state
Returns
void pending call

Definition at line 106 of file device.cpp.

◆ stringToType()

Device::Type BluezQt::Device::stringToType ( const QString & typeString)
static

Returns a device type for string.

Parameters
typeStringtype string
Returns
device type

Definition at line 235 of file device.cpp.

◆ toSharedPtr()

DevicePtr BluezQt::Device::toSharedPtr ( ) const

Returns a shared pointer from this.

Returns
DevicePtr

Definition at line 24 of file device.cpp.

◆ trustedChanged

void BluezQt::Device::trustedChanged ( bool trusted)
signal

Indicates that device's trusted state have changed.

◆ type()

Device::Type BluezQt::Device::type ( ) const

Returns a type of the device.

Type of device is deduced from its class (for Bluetooth Classic devices) or its appearance (for Bluetooth Low Energy devices).

See also
deviceClass() const
appearance() const
Returns
type of device

Definition at line 70 of file device.cpp.

◆ typeChanged

void BluezQt::Device::typeChanged ( Type type)
signal

Indicates that device's type have changed.

◆ typeToString()

QString BluezQt::Device::typeToString ( Device::Type type)
static

Returns a string for device type.

Parameters
typedevice type
Returns
device type string

Definition at line 191 of file device.cpp.

◆ ubi()

QString BluezQt::Device::ubi ( ) const

Returns an UBI of the device.

Example UBI: "/org/bluez/hci0/dev_40_79_6A_0C_39_75"

Returns
UBI of device

Definition at line 29 of file device.cpp.

◆ uuids()

QStringList BluezQt::Device::uuids ( ) const

Returns UUIDs of supported services by the device.

UUIDs will always be returned in uppercase.

Returns
UUIDs of supported services

Definition at line 146 of file device.cpp.

◆ uuidsChanged

void BluezQt::Device::uuidsChanged ( const QStringList & uuids)
signal

Indicates that device's UUIDs have changed.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.