yast2 |
modules/Report.ycp |
Messages handling | |
|
|
This module has an unstable interface. |
Function sets internal variable, which indicates, that any settings were modified, to "true"
Functions which returns if the settings were modified
- Return value:
-
settings were modified
Summary of current settings
- Return value:
-
Html formatted configuration summary
Get all the Report configuration from a map.
the map may be empty.
- Parameters:
-
settings Map with settings (keys: "messages", "errors", "warnings"; values: map
- Return value:
-
success
Dump the Report settings to a map, for autoinstallation use.
- Return value:
-
Map with settings
Clear stored yes/no messages
Clear stored messages
Clear stored errors
Clear stored warnings
Clear all stored messages (errors, messages and warnings)
Return number of stored yes/no messages
- Return value:
-
number of messages
Return number of stored messages
- Return value:
-
number of messages
Return number of stored warnings
- Return value:
-
number of warnings
Return number of stored errors
- Return value:
-
number of errors
Question with headline and Yes/No Buttons
- Parameters:
-
headline Popup Headline message Popup Message yes_button_message Yes Button Message no_button_message No Button Message focus Which Button has the focus
- Return value:
-
True if Yes is pressed, otherwise false
Store new message text
- Parameters:
-
message_string message text, it can contain new line characters ("\n")
Store new message text, the text is displayed in a richtext widget - long lines are automatically wrapped
- Parameters:
-
message_string message text (it can contain rich text tags)
Store new message text
- Parameters:
-
headline_string Headline String message_string message text, it can contain new line characters ("\n")
Store new warning text
- Parameters:
-
warning_string warning text, it can contain new line characters ("\n")
Store new warning text, the text is displayed in a richtext widget - long lines are automatically wrapped
- Parameters:
-
warning_string warning text (it can contain rich text tags)
Store new error text
- Parameters:
-
error_string error text, it can contain new line characters ("\n")
Store new error text, the text is displayed in a richtext widget - long lines are automatically wrapped
- Parameters:
-
error_string error text (it can contain rich text tags)
Error popup dialog can displayed immediately when new error is stored.
This function enables or diables popuping of dialogs.
- Parameters:
-
display if true then display error popups immediately timeout dialog is automatically closed after timeout seconds. Value 0 means no time out, dialog will be closed only by user.
Warning popup dialog can displayed immediately when new warningr is stored.
This function enables or diables popuping of dialogs.
- Parameters:
-
display if true then display warning popups immediately timeout dialog is automatically closed after timeout seconds. Value 0 means no time out, dialog will be closed only by user.
Message popup dialog can be displayed immediately when a new message is stored.
This function enables or diables popuping of dialogs.
- Parameters:
-
display if true then display message popups immediately timeout dialog is automatically closed after timeout seconds. Value 0 means no time out, dialog will be closed only by user.
Yes/No Message popup dialog can be displayed immediately when a new message is stored.
This function enables or diables popuping of dialogs.
- Parameters:
-
display if true then display message popups immediately timeout dialog is automatically closed after timeout seconds. Value 0 means no time out, dialog will be closed only by user.
Set warnings logging to .y2log file
- Parameters:
-
log if log is true then warning messages will be logged
Set yes/no messages logging to .y2log file
- Parameters:
-
log if log is true then messages will be logged
Set messages logging to .y2log file
- Parameters:
-
log if log is true then messages will be logged
Set warnings logging to .y2log file
- Parameters:
-
log if log is true then warning messages will be logged
Create rich text string from stored warning, message or error messages.
Every new line character "\n" is replaced by string "[BR]".
- Parameters:
-
w include warnings in returned string e include errors in returned string m include messages in returned string ynm include Yes/No messages in returned string
- Return value:
-
rich text string