BluezQt
devicesmodel.h
135 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
@ LegacyPairingRole
Indicates whether the device has legacy pairing (bool)
Definition devicesmodel.h:77
@ AdapterDiscoveringRole
Indicates whether the associated adapter is discovering (bool)
Definition devicesmodel.h:97
@ AdapterPairableRole
Indicates whether the associated adapter is pairable (bool)
Definition devicesmodel.h:95
@ AdapterDiscoverableRole
Indicates whether the associated adapter is discoverable (bool)
Definition devicesmodel.h:93
@ AdapterUuidsRole
UUIDs of supported services by the associated adapter (QStringList)
Definition devicesmodel.h:99
@ AdapterPoweredRole
Indicates whether the associated adapter is powered (bool)
Definition devicesmodel.h:91
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Reimplemented from QAbstractListModel::index()
Definition devicesmodel.cpp:197
QVariant data(const QModelIndex &index, int role) const override
Reimplemented from QAbstractListModel::data()
Definition devicesmodel.cpp:134
DevicesModel(Manager *manager, QObject *parent=nullptr)
Creates a new DevicesModel object.
Definition devicesmodel.cpp:84
QHash< int, QByteArray > roleNames() const override
Reimplemented from QAbstractListModel::roleNames()
Definition devicesmodel.cpp:94
DevicePtr device(const QModelIndex &index) const
Returns a device for specified index.
Definition devicesmodel.cpp:205
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Reimplemented from QAbstractListModel::rowCount()
Definition devicesmodel.cpp:126
virtual QModelIndex parent(const QModelIndex &index) const const=0
QAbstractListModel(QObject *parent)
Q_OBJECTQ_OBJECT
UserRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:59:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:59:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.