Fcitx
Public Member Functions | Protected Member Functions | Friends | List of all members
fcitx::Configuration Class Referenceabstract

Public Member Functions

void load (const RawConfig &config, bool partial=false)
 Load configuration from RawConfig. More...
 
void save (RawConfig &config) const
 
void dumpDescription (RawConfig &config) const
 
virtual const char * typeName () const =0
 
void syncDefaultValueToCurrent ()
 Set default value to current value. More...
 

Protected Member Functions

bool compareHelper (const Configuration &other) const
 
void copyHelper (const Configuration &other)
 

Friends

class OptionBase
 

Detailed Description

Definition at line 49 of file configuration.h.

Member Function Documentation

◆ load()

void fcitx::Configuration::load ( const RawConfig config,
bool  partial = false 
)

Load configuration from RawConfig.

If partial is true, non-exist option will be reset to default value, otherwise it will be untouched.

Definition at line 104 of file configuration.cpp.

◆ syncDefaultValueToCurrent()

void fcitx::Configuration::syncDefaultValueToCurrent ( )

Set default value to current value.

Sometimes, we need to customize the default value for the same type. This function will set the default value to current value.

Definition at line 145 of file configuration.cpp.


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