installation |
modules/ProductFetures.ycp |
| Product features | |
|
|
|
This module has an unstable interface. |
local
features
->
map<string,map<string,any> >
Map of all features See defaults map below for sample contents
local
defaults
->
map<string,map<string,any> >
Default values for features two-level map, section_name -> [ feature -> value ]
local
InitFeatures (boolean force)
->
void
Initialize default values of features
- Parameters:
-
force boolean drop all settings which were set before
global
SetSection (string section_name, map<string,any> section_map)
->
void
Set a feature section Default values will be used where value not defined
- Parameters:
-
section_name section_map a map containing data of the section
global
GetSection (string section_name)
->
map<string,any>
Get a complete section for evaluation
- Parameters:
-
section_name string name of the section
- Return value:
-
a map key->value, options in the section
global
Save ()
->
void
Save product features
global
Restore ()
->
void
Restore product features in running system
global
InitIfNeeded ()
->
void
Initialize the features structure if needed Either read from /etc/YaST2/ProductFeatures or set default values
global
GetFeature (string section, string feature)
->
any
Get value of a feature
- Parameters:
-
section string section of the feature feature
- Return value:
-
the feature value
global
GetStringFeature (string section, string feature)
->
string
Get value of a feature
- Parameters:
-
section string section of the feature feature
- Return value:
-
the feature value
global
GetBooleanFeature (string section, string feature)
->
boolean
Get value of a feature
- Parameters:
-
section string section of the feature feature
- Return value:
-
the feature value
global
SetFeature (string section, string feature, any value)
->
void
Set value of a feature
- Parameters:
-
section string section of the feature feature value any the feature value
global
SetStringFeature (string section, string feature, string value)
->
void
Set value of a feature
- Parameters:
-
section string section of the feature feature value string the feature value
global
SetBooleanFeature (string section, string feature, boolean value)
->
void
Set value of a feature
- Parameters:
-
section string section of the feature feature value boolean the feature value
global
Export ()
->
map <string, map <string, any> >
Exports the current set of ProductFeatures
- Return value:
-
features
global
Import (map <string, map <string, any> > import_settings)
->
void
Imports product features
- Parameters:
-
import_settings