YaST2 Developers Documentation: Slides.ycp Purpose: Module to access slides from installation repository

Slides.ycp Purpose: Module to access slides from installation repository

  • Stefan Hundhammer
  • Stanislav Visnovsky

This module has an unstable interface.

Imports

  • FileUtils
  • Installation

Global Functions

Local Functions

local GetSlideList (string lang) -> list<string>

Get a list of available slides (images) for the slide show.

Parameters:
lang language of slides to load
Return value:
slides
global HaveSlideSupport () -> boolean

Check if showing slides is supported.

Return value:
if the current UI is capable of showing slides
global HaveSlides () -> boolean

Check if slides are available.

Return value:
if the loaded list of slides contains any slides
global LoadSlideFile (string slide_name) -> string

Load one slide from files complete with image and textual description. Also adapt img links

Parameters:
slide_name name of the slide
Return value:
true if OK, false if error
global SetSlideDir (string dir) -> void

Set the slide show directory

Parameters:
dir
global LoadSlides (string language) -> void

Load slides for the given language and store them in the internal variables.

Parameters:
language requested language of the slides
global CheckBasePath () -> boolean

Check, if the base path set up for slides is valid (it exists and contains slides)

Return value:
true, if it is possible to load the slides