Unknown YCP Module |
This module has an unstable interface. |
Imports
StructuresGlobal Functions
Local VariablesLocal Functions |
File: modules/DontShowAgain.ycp
Authors: Lukas Ocilka
Module for that stores and returns the information for "Don't Show This Dialog/Question Again"
Current configuration map
Structure $[
// question type "inst-source" : $[ // question identification (MD5sum of the question in the future?) "-question-ident-" : $[ // url of the file or directory "ftp://abc.xyz/rtf" : $[ // show the dialog again "show_again" : false, // additional question return "return" : true, ] ] ] ]
Function that reads the current configuration if it hasn't been read already. It must be called before every Get or Set command.
Saves the current configuration into the configuration file
Returns whether the question should be shown again
- Parameters:
-
params
- Return value:
-
it should be shown
Sets and stores whether the question should be shown again. If it should be, the result is not stored since the 'show again' is the default value.
- Parameters:
-
params new_value
- Return value:
-
if success
Return the default return value for question that should not be shown again
- Parameters:
-
params
- Return value:
-
default return value
Sets the default return value for the question that should not be shown
- Parameters:
-
params default_return
- Return value:
-
if success
Returns the current configuration map
- Return value:
-
with the current configuration
Removes one entry defined with map params
- Parameters:
-
params
- Return value:
-
if success