6#include <PhosphorServiceBluetooth/phosphorservicebluetooth_export.h>
12#include <QAbstractListModel>
57 [[nodiscard]]
int rowCount(const QModelIndex& parent = {})
const override;
58 [[nodiscard]] QVariant
data(
const QModelIndex& index,
int role)
const override;
59 [[nodiscard]] QHash<int, QByteArray>
roleNames()
const override;
82 QList<BluetoothDevice*> m_rows;
One BlueZ adapter (org.bluez.Adapter1), e.g.
Definition BluetoothAdapter.h:31
void setHost(BluetoothHost *host)
BluetoothHost * host() const
void setAdapter(BluetoothAdapter *adapter)
BluetoothDeviceModel(QObject *parent=nullptr)
Roles
Definition BluetoothDeviceModel.h:30
@ PairedRole
Definition BluetoothDeviceModel.h:36
@ NameRole
Definition BluetoothDeviceModel.h:33
@ AddressRole
Definition BluetoothDeviceModel.h:32
@ ConnectedRole
Definition BluetoothDeviceModel.h:39
@ TrustedRole
Definition BluetoothDeviceModel.h:37
@ UuidsRole
Definition BluetoothDeviceModel.h:42
@ RssiRole
Definition BluetoothDeviceModel.h:40
@ AliasRole
Definition BluetoothDeviceModel.h:34
@ AdapterRole
Definition BluetoothDeviceModel.h:41
@ IconRole
Definition BluetoothDeviceModel.h:35
@ BlockedRole
Definition BluetoothDeviceModel.h:38
@ DeviceRole
Definition BluetoothDeviceModel.h:31
BluetoothAdapter * adapter() const
Adapter filter.
QHash< int, QByteArray > roleNames() const override
int rowCount(const QModelIndex &parent={}) const override
QVariant data(const QModelIndex &index, int role) const override
One BlueZ device (org.bluez.Device1), e.g.
Definition BluetoothDevice.h:35
Facade over org.bluez: enumerates adapters and devices.
Definition BluetoothHost.h:36
Definition BluetoothAdapter.h:16