Rabbit Remote Control 0.1.0-bate6
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
CParameterGlobal Class Reference

#include <ParameterGlobal.h>

Inheritance diagram for CParameterGlobal:
Inheritance graph
[legend]
Collaboration diagram for CParameterGlobal:
Collaboration graph
[legend]

Public Types

enum  SaveSettingsType { File , Database }
 

Public Member Functions

 CParameterGlobal (QObject *parent=nullptr, const QString &szPrefix=QString())
 
SaveSettingsType GetSaveSettingsType () const
 
void SetSaveSettingsType (const SaveSettingsType &type)
 
- 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.
 

Public Attributes

CParameterDatabasem_pDatabase
 

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

SaveSettingsType m_SaveSettingsType
 

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

See also
CManager::GetGlobalParameters CParameterGlobal

Definition at line 22 of file ParameterGlobal.h.

Member Enumeration Documentation

◆ SaveSettingsType

enum CParameterGlobal::SaveSettingsType

Definition at line 33 of file ParameterGlobal.h.

Constructor & Destructor Documentation

◆ CParameterGlobal()

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

Definition at line 4 of file ParameterGlobal.cpp.

◆ ~CParameterGlobal()

CParameterGlobal::~CParameterGlobal ( )

Definition at line 12 of file ParameterGlobal.cpp.

Member Function Documentation

◆ GetSaveSettingsType()

CParameterGlobal::SaveSettingsType CParameterGlobal::GetSaveSettingsType ( ) const

Definition at line 33 of file ParameterGlobal.cpp.

◆ OnLoad()

int CParameterGlobal::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 20 of file ParameterGlobal.cpp.

◆ OnSave()

int CParameterGlobal::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 26 of file ParameterGlobal.cpp.

◆ SetSaveSettingsType()

void CParameterGlobal::SetSaveSettingsType ( const SaveSettingsType &  type)

Definition at line 38 of file ParameterGlobal.cpp.

Member Data Documentation

◆ m_pDatabase

CParameterDatabase* CParameterGlobal::m_pDatabase

Definition at line 30 of file ParameterGlobal.h.

◆ m_SaveSettingsType

SaveSettingsType CParameterGlobal::m_SaveSettingsType
private

Definition at line 40 of file ParameterGlobal.h.


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