Fcitx
|
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 FCITX_NODISCARD 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 |
Definition at line 49 of file configuration.h.
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 105 of file configuration.cpp.
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 146 of file configuration.cpp.