|
| | CStatsSever (CParameterOperate *parent=nullptr, const QString &szPrefix=QString()) |
| |
| QString | ToString () const |
| |
| quint64 | GetTotalConnects () const |
| |
| quint64 | GetConnects () const |
| |
| quint64 | GetDisconnects () const |
| |
| void | AddConnects (quint64 c=1) |
| |
| void | Disconnects (quint64 c=1) |
| |
| | CStats (CParameterOperate *parent=nullptr, const QString &szPrefix=QString()) |
| |
| QString | TotalSends () |
| |
| QString | TotalReceives () |
| |
| quint64 | GetTotalSends () |
| |
| quint64 | GetTotalReceives () |
| |
| QString | SendRate () |
| |
| QString | ReceiveRate () |
| |
| virtual double | GetSendRate () |
| | Send rate.
|
| |
| virtual double | GetReceiveRate () |
| |
| int | GetInterval () |
| | Get interval.
|
| |
| int | SetInterval (int interval=1) |
| | Set interval.
|
| |
| | CParameterOperate (QObject *parent, const QString &szPrefix=QString()) |
| |
| CParameterPlugin * | GetPluginParameters () |
| | Get CParameterPlugin.
|
| |
| int | SetPluginParameters (CParameterPlugin *p) |
| |
| const QString | GetName () const |
| |
| void | SetName (const QString &szName) |
| |
| int | LoadPassword (const QString &szTitle, const QString &szKey, QString &password, QSettings &set) |
| | Restore password.
|
| |
| int | SavePassword (const QString &szKey, const QString &password, QSettings &set, bool bSave=false) |
| |
| | CParameter (QObject *parent, 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 void | slotCalculating () |
| | Calculating.
|
| |
| virtual void | AddSends (quint64 size) |
| |
| virtual void | AddReceives (quint64 size) |
| |
|
void | sigDataChanged () |
| | Triggered when data changes, used to notify users to call slotCalculating(true) in real time for calculation.
|
| |
| void | sigSetPluginParameters () |
| | Only used by this class.
|
| |
|
void | sigNameChanged (const QString &name=QString()) |
| |
|
void | sigChanged () |
| | emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
|
| |
| static QString | Convertbytes (quint64 bytes) |
| |
| virtual void | slotSetPluginParameters () |
| | Call after set CParameterPlugin.
|
| |
| 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.
|
| |
| bool | Modified |
| |
Definition at line 75 of file Stats.h.
◆ CStatsSever()
| CStatsSever::CStatsSever |
( |
CParameterOperate * |
parent = nullptr, |
|
|
const QString & |
szPrefix = QString() |
|
) |
| |
|
explicit |
◆ AddConnects()
| void CStatsSever::AddConnects |
( |
quint64 |
c = 1 | ) |
|
◆ Disconnects()
| void CStatsSever::Disconnects |
( |
quint64 |
c = 1 | ) |
|
◆ GetConnects()
| quint64 CStatsSever::GetConnects |
( |
| ) |
const |
◆ GetDisconnects()
| quint64 CStatsSever::GetDisconnects |
( |
| ) |
const |
◆ GetTotalConnects()
| quint64 CStatsSever::GetTotalConnects |
( |
| ) |
const |
◆ ToString()
| QString CStatsSever::ToString |
( |
| ) |
const |
◆ m_Disconnects
| QAtomicInteger<quint64> CStatsSever::m_Disconnects |
|
private |
◆ m_TotalConnects
| QAtomicInteger<quint64> CStatsSever::m_TotalConnects |
|
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