NetworkManager::BluetoothDevice Class
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
List of all members, including inherited members
Public Types
Properties
- [read-only] bluetoothCapabilities : uint
- [read-only] hardwareAddress : QString
- [read-only] name : QString
Public Functions
- BluetoothDevice(const QString &path, QObject *parent = nullptr)
- ~BluetoothDevice()
- NetworkManager::BluetoothDevice::Capabilities bluetoothCapabilities() const
- QString hardwareAddress() const
- QString name() const
- NetworkManager::Device::Type type() const
Signals
Detailed Description
Member Type Documentation
enum BluetoothDevice::Capability
flags BluetoothDevice::Capabilities
Capabilities of the Bluetooth device
| Constant | Value | Description |
|---|---|---|
NetworkManager::BluetoothDevice::NoCapability |
0x0 |
No special capability |
NetworkManager::BluetoothDevice::Dun |
0x1 |
Dial Up Networking profile |
NetworkManager::BluetoothDevice::Pan |
0x2 |
Personal 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 : uint
Access functions:
NetworkManager::BluetoothDevice::CapabilitiesbluetoothCapabilities() const
[read-only] hardwareAddress : QString
Access functions:
QStringhardwareAddress() const
[read-only] name : QString
Access functions:
QStringname() 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