268. Summary

Support for summaries of the configured devices

268.1. Authors

  • Jan Holesovsky <kendy@suse.cz>

  • Stefan Hundhammer <sh@suse.de>

268.2. Summary of Module Globals

List of Global Functions

  • AddHeader - Add a RichText section header to an existing summary.

  • AddLine - Add a line to an existing summary.

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

  • AddNewLine - Add a newline to an existing summary.

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

  • CloseList - End a list within a summary.

  • Device - Function that creates description of one device.

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

  • NotConfigured - Function that creates a 'Not configured.' message.

  • OpenList - Start a list within a summary.

List of Global Variables

    268.3. Global Functions

    268.3.1. AddHeader

    Add a RichText section header to an existing summary.

    Function parameters

    • string summary

    • string header

    Return value

    • string - the new summary including the new header

    268.3.2. AddLine

    Add a line to an existing summary.

    Function parameters

    • string summary

    • string line

    Return value

    • string - the new summary including the new line

    268.3.3. AddListItem

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

    Function parameters

    • string summary

    • string item

    Return value

    • string - the new summary including the new line

    268.3.4. AddNewLine

    Add a newline to an existing summary.

    Function parameters

    • string summary

    Return value

    • string - the new summary

    268.3.5. AddSimpleSection

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

    Function parameters

    • string summary

    • string header

    • string item

    Return value

    • string - the new summary including the new line

    268.3.6. CloseList

    End a list within a summary.

    Function parameters

    • string summary

    Return value

    • string - the new summary

    268.3.7. Device

    Function that creates description of one device.

    Function parameters

    • string name

    • string description

    Return value

    • string - String with the item.

    268.3.8. DevicesList

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

    Function parameters

    • list<string> devices

    Return value

    • string - The resulting text.

    268.3.9. NotConfigured

    Function that creates a 'Not configured.' message.

    Return value

    • string - String with the message.

    268.3.10. OpenList

    Start a list within a summary.

    Function parameters

    • string summary

    Return value

    • string - the new summary

    268.4. Global Variables

    268.5. Module Requirements

    268.5.1. Module Imports

    • Mode

    268.5.2. Module Includes