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

Public Member Functions

 CParameterFilter (QObject *parent=nullptr, const QString &szPrefix=QString())
 
virtual bool contains (const QString &szKey)
 
int AddKey (const QString &szKey)
 
int RemoveKey (const QString &szKey)
 
int Clear ()
 
virtual bool isEmpty ()
 
int OnProcess (std::function< int(const QString &key)> cb, bool bErrExit=false)
 
- 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.
 

Protected Member Functions

virtual int OnLoad (QSettings &set) override
 
virtual int OnSave (QSettings &set) override
 
- 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

QSet< QString > m_Key
 

Additional Inherited Members

- Signals inherited from CParameter
void sigChanged ()
 emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
 
- Properties inherited from CParameter
bool Modified
 

Detailed Description

Definition at line 7 of file ParameterFilter.h.

Constructor & Destructor Documentation

◆ CParameterFilter()

CParameterFilter::CParameterFilter ( QObject *  parent = nullptr,
const QString &  szPrefix = QString() 
)
explicit

Definition at line 3 of file ParameterFilter.cpp.

Member Function Documentation

◆ AddKey()

int CParameterFilter::AddKey ( const QString &  szKey)

Definition at line 14 of file ParameterFilter.cpp.

◆ Clear()

int CParameterFilter::Clear ( )

Definition at line 29 of file ParameterFilter.cpp.

◆ contains()

bool CParameterFilter::contains ( const QString &  szKey)
virtual

Definition at line 7 of file ParameterFilter.cpp.

◆ isEmpty()

bool CParameterFilter::isEmpty ( )
virtual

Definition at line 35 of file ParameterFilter.cpp.

◆ OnLoad()

int CParameterFilter::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 51 of file ParameterFilter.cpp.

◆ OnProcess()

int CParameterFilter::OnProcess ( std::function< int(const QString &key)>  cb,
bool  bErrExit = false 
)

Definition at line 40 of file ParameterFilter.cpp.

◆ OnSave()

int CParameterFilter::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 60 of file ParameterFilter.cpp.

◆ RemoveKey()

int CParameterFilter::RemoveKey ( const QString &  szKey)

Definition at line 23 of file ParameterFilter.cpp.

Member Data Documentation

◆ m_Key

QSet<QString> CParameterFilter::m_Key
private

Definition at line 24 of file ParameterFilter.h.


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