NetworkManager::BluetoothDevice Class

class NetworkManager::BluetoothDevice

A bluetooth device interface. More...

Header: #include <NetworkManagerQt/BluetoothDevice>
CMake: find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt)
target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt)
Inherits: NetworkManager::ModemDevice

Public Types

flags Capabilities
enum Capability { NoCapability, Dun, Pan }
List
Ptr

Properties

Public Functions

BluetoothDevice(const QString &path, QObject *parent = nullptr)
virtual ~BluetoothDevice() override
NetworkManager::BluetoothDevice::Capabilities bluetoothCapabilities() const
QString hardwareAddress() const
QString name() const

Reimplemented Public Functions

virtual NetworkManager::Device::Type type() const override

Signals

void nameChanged(const QString &name)

Detailed Description

Member Type Documentation

enum BluetoothDevice::Capability
flags BluetoothDevice::Capabilities

Capabilities of the Bluetooth device

ConstantValueDescription
NetworkManager::BluetoothDevice::NoCapability0x0No special capability
NetworkManager::BluetoothDevice::Dun0x1Dial Up Networking profile
NetworkManager::BluetoothDevice::Pan0x2Personal Area Network profile

The Capabilities type is a typedef for QFlags<Capability>. It stores an OR combination of Capability values.

BluetoothDevice::List

BluetoothDevice::Ptr

Property Documentation

[read-only] bluetoothCapabilities : const uint

Access functions:

NetworkManager::BluetoothDevice::Capabilities bluetoothCapabilities() const

[read-only] hardwareAddress : const QString

Access functions:

QString hardwareAddress() const

[read-only] name : const QString

Access functions:

QString name() const

Member Function Documentation

[explicit] BluetoothDevice::BluetoothDevice(const QString &path, QObject *parent = nullptr)

Creates a new BluetoothDevice object.

[override virtual noexcept] BluetoothDevice::~BluetoothDevice()

Destroys a BluetoothDevice object.

NetworkManager::BluetoothDevice::Capabilities BluetoothDevice::bluetoothCapabilities() const

Retrieves the capabilities supported by this device.

Note: Getter function for property bluetoothCapabilities.

See also NetworkManager::BluetoothDevice::Capability.

QString BluetoothDevice::hardwareAddress() const

The hardware address assigned to the bluetooth interface

Note: Getter function for property hardwareAddress.

QString BluetoothDevice::name() const

Name of the bluetooth interface

Note: Getter function for property name.

[signal] void BluetoothDevice::nameChanged(const QString &name)

Emitted when the BT device name changes

[override virtual] NetworkManager::Device::Type BluetoothDevice::type() const

Reimplements: ModemDevice::type() const.

The NetworkInterface type.

Returns the NetworkManager::Device::Type. This always returns NetworkManager::Device::Bluetooth