|
QtPdCom
1.5.2
|
#include <ClientStatisticsModel.h>


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. | |
| Q_INVOKABLE void | clear () |
| Clear stored statistics. | |
| void | setProcess (QtPdCom::Process *) |
| QtPdCom::Process * | getProcess () const |
| QHash< int, QByteArray > | roleNames () const override |
Properties | |
| QtPdCom::Process * | process |
Private Attributes | |
| QScopedPointer< ClientStatisticsModelPrivate > | d_ptr |
|
explicit |
References ClientStatisticsModel(), and d_ptr.
Referenced by clear(), ClientStatisticsModel(), data(), getProcess(), poll(), rowCount(), and setProcess().
|
virtualdefault |
References clear(), columnCount(), data(), getProcess(), headerData(), poll(), roleNames(), rowCount(), and setProcess().
| void QtPdCom::ClientStatisticsModel::clear | ( | ) |
Clear stored statistics.
References ClientStatisticsModel().
Referenced by ~ClientStatisticsModel().
|
override |
Referenced by ~ClientStatisticsModel().
|
override |
References ClientStatisticsModel(), ConnectedTimeRole, and NameRole.
Referenced by ~ClientStatisticsModel().
| QtPdCom::Process * ClientStatisticsModel::getProcess | ( | ) | const |
References ClientStatisticsModel().
Referenced by ~ClientStatisticsModel().
|
override |
Referenced by ~ClientStatisticsModel().
| void ClientStatisticsModel::poll | ( | ) |
Update statistics from server.
References ClientStatisticsModel(), and QtPdCom::ClientStatisticsModelPrivate::statistics.
Referenced by setProcess(), and ~ClientStatisticsModel().
|
override |
References ApplicationNameRole, ConnectedTimeRole, NameRole, RxByteRole, and TxByteRole.
Referenced by ~ClientStatisticsModel().
|
override |
References ClientStatisticsModel().
Referenced by ~ClientStatisticsModel().
| void ClientStatisticsModel::setProcess | ( | QtPdCom::Process * | process | ) |
References ClientStatisticsModel(), poll(), and process.
Referenced by ~ClientStatisticsModel().
|
private |
Referenced by ClientStatisticsModel().
|
readwrite |
Referenced by setProcess().