6#include <PhosphorServiceBluetooth/phosphorservicebluetooth_export.h>
48 BluetoothHost(QDBusConnection connection, QString service, QObject* parent =
nullptr);
53 [[nodiscard]] QList<BluetoothAdapter*>
adapters()
const;
54 [[nodiscard]] QList<BluetoothDevice*>
devices()
const;
81 std::unique_ptr<Private> d;
One BlueZ adapter (org.bluez.Adapter1), e.g.
Definition BluetoothAdapter.h:31
Implements org.bluez.Agent1, the pairing agent BlueZ calls back into during a Pair() handshake.
Definition BluetoothAgent.h:39
One BlueZ device (org.bluez.Device1), e.g.
Definition BluetoothDevice.h:35
BluetoothHost(QObject *parent=nullptr)
Observes the system bus's org.bluez (the production wiring).
void adapterAdded(PhosphorServiceBluetooth::BluetoothAdapter *adapter)
PhosphorServiceBluetooth::BluetoothAdapter * adapterAt(int index) const
Adapter / device at index, or nullptr when out of range.
BluetoothHost(QDBusConnection connection, QString service, QObject *parent=nullptr)
Observes service on connection.
~BluetoothHost() override
void deviceRemoved(PhosphorServiceBluetooth::BluetoothDevice *device)
QList< BluetoothAdapter * > adapters() const
void deviceCountChanged()
BluetoothAgent * agent() const
The pairing agent registered with BlueZ (KeyboardDisplay capability).
void adapterCountChanged()
void deviceAdded(PhosphorServiceBluetooth::BluetoothDevice *device)
QList< BluetoothDevice * > devices() const
void adapterRemoved(PhosphorServiceBluetooth::BluetoothAdapter *adapter)
PhosphorServiceBluetooth::BluetoothDevice * deviceAt(int index) const
Definition BluetoothAdapter.h:16