Virgil IoT KIT
Public Types | Public Member Functions
VSQSnapInfoClientQml Class Referencefinal

INFO Client interface. More...

#include <VSQSnapINFOClientQml.h>

Inheritance diagram for VSQSnapInfoClientQml:
Inheritance graph
[legend]
Collaboration diagram for VSQSnapInfoClientQml:
Collaboration graph
[legend]

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 VSQSnapInfoClientQmlinstance ()
 Get static instance. More...
 

Detailed Description

INFO Client interface.

Member Enumeration Documentation

◆ DeviceInfoRoles

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

Member Function Documentation

◆ data()

QVariant VSQSnapInfoClientQml::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

Obtain data.

Returns the data stored under the given role for the item referred to by the index.

Parameters
indexData index
roleDeviceInfoRoles data role
Returns

◆ roleNames()

QHash<int, QByteArray> VSQSnapInfoClientQml::roleNames ( ) const
override

Role names.

Returns the model's role names.

Returns
DeviceInfoRoles to string conversions as QHash

◆ rowCount()

int VSQSnapInfoClientQml::rowCount ( const QModelIndex &  parent = QModelIndex()) const
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.

Parameters
parentParent
Returns
Number of rows

The documentation for this class was generated from the following file: