|
OpenHantek
|
#include <rawdeviceslistmodel.h>
Public Types | |
| enum | Roles { ProductIDRole = Qt::UserRole+0, VendorIDRole = Qt::UserRole+1, AccessRole = Qt::UserRole+2, DeviceNameRole = Qt::UserRole+3, EntryPointerRole = Qt::UserRole+4 } |
Public Member Functions | |
| RawDevicesListModel (libusb_context *context, QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent) const override |
| int | columnCount (const QModelIndex &parent) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| void | updateDeviceList () |
Private Attributes | |
| std::vector< RawDeviceListEntry > | entries |
| libusb_context * | context |
Provides a Model for the Qt Model/View concept. The {
| RawDevicesListModel::RawDevicesListModel | ( | libusb_context * | context, |
| QObject * | parent = nullptr |
||
| ) |
|
override |
|
override |
|
override |
| void RawDevicesListModel::updateDeviceList | ( | ) |
|
private |
|
private |