Virgil IoT KIT
|
INFO Client interface. More...
#include <VSQSnapINFOClientQml.h>
Public Types | |
enum | DeviceInfoRoles { MacAddress = Qt::UserRole + 1, DeviceRoles, ManufactureId, DeviceType, FwVer, TlVer, Sent, Received, LastTimestamp, IsActive, HasGeneralInfo, HasStatistics } |
Data roles. More... | |
Public Member Functions | |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
Rows count. More... | |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
Obtain data. More... | |
QHash< int, QByteArray > | roleNames () const override |
Role names. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from VSQSingleton< VSQSnapInfoClientQml > | |
static VSQSnapInfoClientQml & | instance () |
Get static instance. More... | |
INFO Client interface.
Data roles.
Enumerator | |
---|---|
MacAddress | MAC address. VSQDeviceInfo::m_mac field. Use it as "macAddress" QML |
DeviceRoles | Device roles. VSQDeviceInfo::m_deviceRoles field. Use it as "deviceRoles" QML |
ManufactureId | Manufacture ID. VSQDeviceInfo::m_manufactureId field. Use it as "manufactureId" QML |
DeviceType | Device type. VSQDeviceInfo::m_deviceType field. Use it as "deviceType" QML |
FwVer | File version. VSQDeviceInfo::m_fwVer field. Use it as "fwVer" QML |
TlVer | Trust List version. VSQDeviceInfo::m_tlVer field. Use it as "tlVer" QML |
Sent | Sent packets. VSQDeviceInfo::m_sent field. Use it as "sent" QML |
Received | Received packets. VSQDeviceInfo::m_received field. Use it as "received" QML |
LastTimestamp | Last information timestamp. VSQDeviceInfo::m_lastTimestamp field. Use it as "lastTimestamp" QML |
IsActive | Device is active. VSQDeviceInfo::m_isActive field. Use it as "isActive" QML |
HasGeneralInfo | Device has general informatio. VSQDeviceInfo::m_hasGeneralInfo field. Use it as "hasGeneralInfo" QML |
HasStatistics | Device has statistics. VSQDeviceInfo::m_hasStatistics field. Use it as "hasStatistics" QML |
|
override |
Obtain data.
Returns the data stored under the given role for the item referred to by the index.
index | Data index |
role | DeviceInfoRoles data role |
|
override |
|
override |
Rows count.
Returns the number of rows under the given parent. When the parent is valid it means that rowCount is returning the number of children of parent.
parent | Parent |