YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Mode

Global Functions

Info:

File: modules/Summary.ycp Module: yast2 Summary: Support for summaries of the configured devices Authors: Jan Holesovsky Stefan Hundhammer

$Id$

global NotConfigured () -> string

Function that creates a 'Not configured.' message.

Return value:
String with the message.
global DevicesList (list<string> devices) -> string

Function that creates the whole final product. "Not detected" will be returned if the list is empty.

Parameters:
devices A list of output of the summaryDevice() calls
Return value:
The resulting text.
global Device (string name, string description) -> string

Function that creates description of one device.

Parameters:
name The name of the device given by probing
description Additional description (how it was confgured or so)
Return value:
String with the item.
global AddHeader (string summary, string header) -> string

Add a RichText section header to an existing summary.

Parameters:
summary previous RichText (HTML) summary to add to
header header to add (plain text, no HTML)
Return value:
the new summary including the new header
global AddLine (string summary, string line) -> string

Add a line to an existing summary.

Parameters:
summary previous RichText (HTML) summary to add to
line line to add (plain text, no HTML)
Return value:
the new summary including the new line
global AddNewLine (string summary) -> string

Add a newline to an existing summary.

Parameters:
summary previous RichText (HTML) summary to add to
Return value:
the new summary
global OpenList (string summary) -> string

Start a list within a summary.

Parameters:
summary previous RichText (HTML) summary to add to
Return value:
the new summary
global CloseList (string summary) -> string

End a list within a summary.

Parameters:
summary previous RichText (HTML) summary to add to
Return value:
the new summary
global AddListItem (string summary, string item) -> string

Add a list item to an existing summary. Requires a previous call to 'summaryOpenList()'.

Parameters:
summary previous RichText (HTML) summary to add to
item item to add (plain text, no HTML)
Return value:
the new summary including the new line
global AddSimpleSection (string summary, string header, string item) -> string

Add a simple section to an existing summary, consisting of a header and one single item.

Parameters:
summary previous RichText (HTML) summary to add to
header section header (plain text, no HTML)
item section item (plain text, no HTML)
Return value:
the new summary including the new line