178. OSRProgress

178.1. Summary of Module Globals

List of Global Functions

  • Create - Create a new Progress Widget

  • DeleteFile - Only for DownloadProgress !! Delete the progress file.

  • Fill - Fills the global-progress-bar with 100%.

  • Increase - This method is called after one detection function is successfully executed. It shows the continuous progress to the user with the global progress bar.

  • Reset - Reset module settings.

  • SetFile - Specifies a new filename for the DownloadProgress widget.

  • SetLabel - Set the label of a progress-bar to the specified one.

  • SetLength - Set the length of a progress bar.

  • SetSteps - Set the Steps of a normal ProgressBar Widget.

List of Global Variables

  • length - The length of a ProgressBar

178.2. Global Functions

178.2.1. Create

Create a new Progress Widget

Function parameters

  • symbol id

  • string label

  • integer steps

  • boolean downloadprogress

Return value

  • term

178.2.2. DeleteFile

Only for DownloadProgress !! Delete the progress file.

Function parameters

  • string file

Return value

  • boolean

178.2.3. Fill

Fills the global-progress-bar with 100%.

Function parameters

  • symbol id

Return value

  • boolean - True if the progress value was increased successfully.

178.2.4. Increase

This method is called after one detection function is successfully executed. It shows the continuous progress to the user with the global progress bar.

Function parameters

  • symbol id

Return value

  • boolean - True if the progress value was increased successfully.

178.2.5. Reset

Reset module settings.

Return value

  • void

178.2.6. SetFile

Specifies a new filename for the DownloadProgress widget.

Function parameters

  • symbol id

  • string new_file

Return value

  • boolean

Example 47. 

 OSRModuleProgress::SetFile("/tmp/YaST2-823/osr_lilo_progress");


178.2.7. SetLabel

Set the label of a progress-bar to the specified one.

Function parameters

  • symbol id

  • string new_label

Return value

  • boolean - boolen True if the label was set correctly.

178.2.8. SetLength

Set the length of a progress bar.

Function parameters

  • symbol id

  • integer new_length

Return value

  • boolean

178.2.9. SetSteps

Set the Steps of a normal ProgressBar Widget.

Function parameters

  • symbol id

  • integer steps

Return value

  • void

178.3. Global Variables

178.3.1. length

The length of a ProgressBar

178.4. Module Requirements

178.4.1. Module Imports

  • Mode

178.4.2. Module Includes