6#include <PhosphorServiceBluetooth/phosphorservicebluetooth_export.h>
11#include <QAbstractListModel>
45 [[nodiscard]]
int rowCount(const QModelIndex& parent = {})
const override;
46 [[nodiscard]] QVariant
data(
const QModelIndex& index,
int role)
const override;
47 [[nodiscard]] QHash<int, QByteArray>
roleNames()
const override;
68 QList<BluetoothAdapter*> m_rows;
Roles
Definition BluetoothAdapterModel.h:27
@ AddressRole
Definition BluetoothAdapterModel.h:29
@ PoweredRole
Definition BluetoothAdapterModel.h:32
@ DiscoveringRole
Definition BluetoothAdapterModel.h:35
@ AliasRole
Definition BluetoothAdapterModel.h:31
@ PairableRole
Definition BluetoothAdapterModel.h:34
@ NameRole
Definition BluetoothAdapterModel.h:30
@ AdapterRole
Definition BluetoothAdapterModel.h:28
@ DiscoverableRole
Definition BluetoothAdapterModel.h:33
QVariant data(const QModelIndex &index, int role) const override
int rowCount(const QModelIndex &parent={}) const override
QHash< int, QByteArray > roleNames() const override
BluetoothHost * host() const
BluetoothAdapterModel(QObject *parent=nullptr)
void setHost(BluetoothHost *host)
One BlueZ adapter (org.bluez.Adapter1), e.g.
Definition BluetoothAdapter.h:31
Facade over org.bluez: enumerates adapters and devices.
Definition BluetoothHost.h:36
Definition BluetoothAdapter.h:16