YaST2 Developers Documentation: OnlineUpdateCallbacks.ycp

OnlineUpdateCallbacks.ycp

  • Cornelius Schumacher <cschum@suse.de>
  • Purpose: provides the Callbacks for the online update

This module has an unstable interface.

Imports

  • OnlineUpdateDialogs
  • PackageCallbacks
  • Popup

Global Functions

global PatchProgressCallback (integer num) -> boolean

Callback for patch (resp. delta rpm) progress widget.

Parameters:
num position of progress widget (0 to 100)
global ProgressLog (string text) -> void

add a text to the installation progress log

Parameters:
text
global ExecuteYcpScriptCallback (string script) -> boolean

Callback for executing YCP scripts in YOU.

Parameters:
script
global ScriptProgressCallback (integer percent) -> boolean

Callback for showing script execution progress in YOU.

Parameters:
percent
global StartProvide (string name, integer archivesize, boolean remote) -> boolean

Callback for starting download of a package.

Parameters:
name
archivesize
remote
global StartPackage (string name, string summary, integer installsize, boolean is_delete) -> boolean

Callback for starting installation of a package.

Parameters:
name
summary
installsize
is_delete
global FinishLine (boolean line) -> boolean

Callback for finishing an action in the log

Parameters:
line true if we are adding to the end of line
global DonePackage (integer error, string reason) -> string

callback for 'package installed' action

Parameters:
error
reason
global DoneProvide (integer error, string reason, string name) -> string

callback for 'package provided' action

Parameters:
error
reason
name
global StartDeltaDownload (string name, integer download_size) -> void

callback for start of delta download

Parameters:
name
download_size
global ProgressDeltaDownload (integer num) -> boolean

callback for delta download progress

Parameters:
num
Return value:
abort the download?
global ProblemDeltaDownload (string description) -> void

callback for problem during downloading delta

Parameters:
description
global ProgressDeltaApply (integer num) -> void

progress of applying delta (cannot be aborted)

Parameters:
num
global ProblemDeltaApply (string description) -> void

callback for problem during aplying delta

Parameters:
description
global StartPatchDownload (string name, integer download_size) -> void

callback for start of downloading patch

Parameters:
name
download_size
global ProgressPatchDownload (integer num) -> boolean

callback for path download progress

Parameters:
num
Return value:
abort the download?
global ProblemPatchDownload (string description) -> void

callback for problem during aplying delta

Parameters:
description
global RegisterOnlineUpdateCallbacks () -> void

Constructor

global RefreshSources (list<map> sources) -> void

Refresh sources given by argument

Parameters:
sources