YaST2 Developers Documentation: yast2

yast2

modules/Confirm.ycp
Confirmation routines
  • Michal Svec

This module has an unstable interface.

Imports

  • Arch
  • Icon
  • Label
  • Linuxrc
  • Mode
  • Popup
  • Stage

Global Functions

global Detection (string class, string icon_name) -> boolean

Confirm hardware detection (only in manual installation)

Parameters:
class hardware class (network cards)
icon_name name of the icon. If nil, generic hardware icon will be used
Return value:
true on continue
global MustBeRoot () -> boolean

If we are running as root, return true. Otherwise ask the user whether we should continue even though things might not work

Return value:
true if running as root
global DeleteSelected () -> boolean

Opens a popup yes/no confirmation.

If users confirms deleting, return true, else return false

Return value:
delete selected entry
global Delete (string delete) -> boolean

Opens a popup yes/no confirmation.

If users confirms deleting of named entry/file/etc., return true, else return false

Parameters:
delete
Return value:
delete selected entry