QtPdCom  1.3.3
Public Types | Public Member Functions | Properties | Private Attributes | List of all members
QtPdCom::ClientStatisticsModel Class Reference

#include <ClientStatisticsModel.h>

Inheritance diagram for QtPdCom::ClientStatisticsModel:
Inheritance graph
[legend]
Collaboration diagram for QtPdCom::ClientStatisticsModel:
Collaboration graph
[legend]

Public Types

enum  Roles {
  NameRole = Qt::UserRole + 1, ApplicationNameRole, RxByteRole, TxByteRole,
  ConnectedTimeRole
}
 

Public Member Functions

 ClientStatisticsModel (QObject *parent=nullptr)
 
virtual ~ClientStatisticsModel ()
 
int rowCount (const QModelIndex &) const override
 
int columnCount (const QModelIndex &) const override
 
QVariant data (const QModelIndex &, int) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
Q_INVOKABLE void poll ()
 Update statistics from server. More...
 
Q_INVOKABLE void clear ()
 Clear stored statistics. More...
 
void setProcess (QtPdCom::Process *)
 
QtPdCom::ProcessgetProcess () const
 
QHash< int, QByteArray > roleNames () const override
 

Properties

QtPdCom::Process process
 

Private Attributes

QScopedPointer< ClientStatisticsModelPrivated_ptr
 

Member Enumeration Documentation

◆ Roles

Enumerator
NameRole 
ApplicationNameRole 
RxByteRole 
TxByteRole 
ConnectedTimeRole 

Constructor & Destructor Documentation

◆ ClientStatisticsModel()

ClientStatisticsModel::ClientStatisticsModel ( QObject *  parent = nullptr)
explicit

◆ ~ClientStatisticsModel()

ClientStatisticsModel::~ClientStatisticsModel ( )
virtualdefault

Member Function Documentation

◆ clear()

void QtPdCom::ClientStatisticsModel::clear ( )

Clear stored statistics.

◆ columnCount()

int ClientStatisticsModel::columnCount ( const QModelIndex &  ) const
override

◆ data()

QVariant ClientStatisticsModel::data ( const QModelIndex &  index,
int  role 
) const
override

◆ getProcess()

QtPdCom::Process * ClientStatisticsModel::getProcess ( ) const

◆ headerData()

QVariant ClientStatisticsModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

◆ poll()

void ClientStatisticsModel::poll ( )

Update statistics from server.

References QtPdCom::ClientStatisticsModelPrivate::statistics.

◆ roleNames()

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

◆ rowCount()

int ClientStatisticsModel::rowCount ( const QModelIndex &  ) const
override

◆ setProcess()

void ClientStatisticsModel::setProcess ( QtPdCom::Process process)

Member Data Documentation

◆ d_ptr

QScopedPointer<ClientStatisticsModelPrivate> QtPdCom::ClientStatisticsModel::d_ptr
private

Property Documentation

◆ process

QtPdCom::Process QtPdCom::ClientStatisticsModel::process
readwrite

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