|
virtual int | OnLoad (QSettings &set) override |
|
virtual int | OnSave (QSettings &set) override |
|
QByteArray | PasswordSum (const std::string &password, const std::string &key) |
|
int | LoadPassword (const QString &szTitle, const QString &szKey, QString &password, QSettings &set) |
|
int | SavePassword (const QString &szKey, const QString &password, QSettings &set, bool bSave=false) |
|
virtual bool | OnCheckValidity () |
| Check validity.
|
|
int | SetModified (bool bModified=true) |
| When setting parameters, if there is a modification, it is called.
|
|
bool | GetModified () |
| Whether the parameters have been modified.
|
|
Definition at line 10 of file Stats.h.
◆ CStats()
CStats::CStats |
( |
CParameterOperate * |
parent = nullptr , |
|
|
const QString & |
szPrefix = QString() |
|
) |
| |
|
explicit |
◆ AddReceives()
void CStats::AddReceives |
( |
quint64 |
size | ) |
|
|
virtual |
◆ AddSends()
void CStats::AddSends |
( |
quint64 |
size | ) |
|
|
virtual |
◆ Convertbytes()
QString CStats::Convertbytes |
( |
quint64 |
bytes | ) |
|
|
static |
◆ GetInterval()
int CStats::GetInterval |
( |
| ) |
|
Get interval.
Unit: seconds
Definition at line 78 of file Stats.cpp.
◆ GetReceiveRate()
double CStats::GetReceiveRate |
( |
| ) |
|
|
virtual |
◆ GetSendRate()
double CStats::GetSendRate |
( |
| ) |
|
|
virtual |
Send rate.
The average rate over the interval period. Unit: Byte/Seconds
- Returns
Definition at line 68 of file Stats.cpp.
◆ GetTotalReceives()
quint64 CStats::GetTotalReceives |
( |
| ) |
|
◆ GetTotalSends()
quint64 CStats::GetTotalSends |
( |
| ) |
|
◆ OnLoad()
int CStats::OnLoad |
( |
QSettings & |
set | ) |
|
|
overrideprotectedvirtual |
◆ OnSave()
int CStats::OnSave |
( |
QSettings & |
set | ) |
|
|
overrideprotectedvirtual |
◆ ReceiveRate()
QString CStats::ReceiveRate |
( |
| ) |
|
◆ SendRate()
QString CStats::SendRate |
( |
| ) |
|
◆ SetInterval()
int CStats::SetInterval |
( |
int |
interval = 5 | ) |
|
Set interval.
Unit: seconds
Definition at line 83 of file Stats.cpp.
◆ slotCalculating
void CStats::slotCalculating |
( |
| ) |
|
|
virtualslot |
◆ TotalReceives()
QString CStats::TotalReceives |
( |
| ) |
|
◆ TotalSends()
QString CStats::TotalSends |
( |
| ) |
|
◆ m_dbReceiveRate
double CStats::m_dbReceiveRate |
|
private |
◆ m_dbSendRate
double CStats::m_dbSendRate |
|
private |
◆ m_lastReceives
QAtomicInteger<quint64> CStats::m_lastReceives |
|
private |
◆ m_lastSends
QAtomicInteger<quint64> CStats::m_lastSends |
|
private |
◆ m_lastTime
QDateTime CStats::m_lastTime |
|
private |
◆ m_tmInterval
◆ m_TotalReceives
QAtomicInteger<quint64> CStats::m_TotalReceives |
|
private |
◆ m_TotalSends
QAtomicInteger<quint64> CStats::m_TotalSends |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/Stats.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Src/ParameterCompone/Stats.cpp