Rabbit Remote Control 0.1.0-de
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CStats Class Reference
Inheritance diagram for CStats:
Inheritance graph
[legend]
Collaboration diagram for CStats:
Collaboration graph
[legend]

Public Member Functions

 CStats (CParameterOperate *parent=nullptr, const QString &szPrefix=QString())
 
void AddSends (quint64 size)
 
void AddReceives (quint64 size)
 
- Public Member Functions inherited from CParameterOperate
 CParameterOperate (QObject *parent=nullptr, const QString &szPrefix=QString())
 
CParameterPluginGetGlobalParameters ()
 Get CParameterPlugin.
 
int SetGlobalParameters (CParameterPlugin *p)
 
const QString GetName () const
 
void SetName (const QString &szName)
 
- Public Member Functions inherited from CParameter
 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.
 

Static Public Member Functions

static QString Convertbytes (quint64 bytes)
 

Protected Member Functions

virtual int OnLoad (QSettings &set) override
 
virtual int OnSave (QSettings &set) override
 
- Protected Member Functions inherited from CParameterOperate
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)
 
- Protected Member Functions inherited from CParameter
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.
 

Private Attributes

QAtomicInteger< quint64 > m_TotalSends
 
QAtomicInteger< quint64 > m_TotalReceives
 

Additional Inherited Members

- Signals inherited from CParameterOperate
void sigSetGlobalParameters ()
 Only used by this class.
 
void sigNameChanged (const QString &name=QString())
 
- Signals inherited from CParameter
void sigChanged ()
 emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
 
- Protected Slots inherited from CParameterOperate
virtual void slotSetGlobalParameters ()
 Call after set CParameterPlugin.
 
- Properties inherited from CParameter
bool Modified
 

Detailed Description

Definition at line 9 of file Stats.h.

Constructor & Destructor Documentation

◆ CStats()

CStats::CStats ( CParameterOperate parent = nullptr,
const QString &  szPrefix = QString() 
)
explicit

Definition at line 4 of file Stats.cpp.

Member Function Documentation

◆ AddReceives()

void CStats::AddReceives ( quint64  size)

Definition at line 27 of file Stats.cpp.

◆ AddSends()

void CStats::AddSends ( quint64  size)

Definition at line 22 of file Stats.cpp.

◆ Convertbytes()

QString CStats::Convertbytes ( quint64  bytes)
static

Definition at line 8 of file Stats.cpp.

◆ OnLoad()

int CStats::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterOperate.

Definition at line 32 of file Stats.cpp.

◆ OnSave()

int CStats::OnSave ( QSettings &  set)
overrideprotectedvirtual

Reimplemented from CParameterOperate.

Definition at line 37 of file Stats.cpp.

Member Data Documentation

◆ m_TotalReceives

QAtomicInteger<quint64> CStats::m_TotalReceives
private

Definition at line 24 of file Stats.h.

◆ m_TotalSends

QAtomicInteger<quint64> CStats::m_TotalSends
private

Definition at line 23 of file Stats.h.


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