|
| | CStats (CParameterOperate *parent=nullptr, const QString &szPrefix=QString()) |
| |
| QString | TotalSends () |
| |
| QString | TotalReceives () |
| |
| quint64 | GetTotalSends () |
| |
| quint64 | GetTotalReceives () |
| |
| virtual void | AddSends (quint64 size) |
| |
| virtual void | AddReceives (quint64 size) |
| |
| QString | SendRate () |
| |
| QString | ReceiveRate () |
| |
| virtual double | GetSendRate () |
| | Send rate.
|
| |
| virtual double | GetReceiveRate () |
| |
| int | GetInterval () |
| | Get interval.
|
| |
| int | SetInterval (int interval=5) |
| | Set interval.
|
| |
|
| CParameterOperate (QObject *parent=nullptr, const QString &szPrefix=QString()) |
| |
| CParameterPlugin * | GetGlobalParameters () |
| | Get CParameterPlugin.
|
| |
| int | SetGlobalParameters (CParameterPlugin *p) |
| |
| const QString | GetName () const |
| |
| void | SetName (const QString &szName) |
| |
| 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) |
| |
| | CParameter (QObject *parent=nullptr, const QString &szPrefix=QString()) |
| |
| virtual int | Load (QString szFile=QString()) |
| | Load from file.
|
| |
| virtual int | Save (QString szFile=QString(), bool bForce=true) |
| | Save to file.
|
| |
| virtual int | Load (QSettings &set) |
| | Load from QSettings.
|
| |
| virtual int | Save (QSettings &set, bool bForce=true) |
| | Save to QSettings.
|
| |
| virtual bool | CheckValidity () |
| | Check whether the parameter is valid to decide whether to use or save the parameter.
|
| |
|
| virtual int | OnLoad (QSettings &set) override |
| |
| virtual int | OnSave (QSettings &set) override |
| |
| QByteArray | PasswordSum (const std::string &password, const std::string &key) |
| |
| 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