YaST2 Developers Documentation: yast2

yast2

modules/GPGWidgets.ycp
UI widgets and functions related to GPG
  • Ladislav Slezák

This module has an unstable interface.

This module provides UI related functions to GPG.

Imports

  • CWM
  • CommandLine
  • GPG
  • Label
  • Mode

Global Functions

Local Variables

Local Functions

global SetSelectedPrivateKey (string keyid) -> void

Set selected private key in the private key table widget.

Parameters:
keyid ID of the selected key
global SetSelectedPublicKey (string keyid) -> void

Set selected public key in the public key table widget.

Parameters:
keyid ID of the selected key
local GPGItems (boolean private_keys) -> list<term>

Get list of table items for CWM widget.

Parameters:
private_keys if true use private keys, otherwise use public keys
Return value:
list of items
local GpgInitPrivate (string key) -> void

Init function of a widget - initialize the private table widget

Parameters:
key string widget key
local GpgInitPublic (string key) -> void

Init function of a widget - initialize the public table widget

Parameters:
key string widget key
local GpgStorePrivate (string key, map event) -> void

Store the selected private key

Parameters:
key widget ID
event event
local GpgStorePublic (string key, map event) -> void

Store the selected public key

Parameters:
key widget ID
event event
global SelectedPrivateKey () -> string

Return the selected private key in the private table widget

Return value:
key ID
local PrivateKeySelection () -> map<string,any>

Get widget description map

Return value:
widget description map
local PublicKeySelection () -> map<string,any>

Get widget description map

Return value:
widget description map
local GpgNewKey (string key, map event) -> symbol

Refresh the widgets after creating a new gpg key

Parameters:
key widget ID
event event
local CreateNewKey () -> map<string,any>

Get widget description map

Return value:
widget description map
local passphrase -> string

Passphrase entered in the passphrase widget

local PassphraseStore (string key, map event) -> void

Store the passphrase from the widget

Parameters:
key widget ID
event event
global Passphrase () -> string

Get the enterd passphrase.

Return value:
passphrase
global AskPassphraseWidget (string key) -> map<string, map<string,any> >

Return definition of the passphrase CWM widget.

Parameters:
key key ID displayed in the label
Return value:
widget definition
local AskPassphraseTerm () -> term

Create a popup window term with the passphrase widget.

Return value:
definition of the popup
global AskPassphrasePopup (string key) -> string

Ask user to enter the passphrase for the selected gpg key. A a popup window is displayed.

Parameters:
key key ID of the gpg key
Return value:
the entered passphrase or nil if the popup has been closed by [Cancel] button
global Widgets () -> map<string,map<string,any> >

Return a map with CWM widgets definition. The map contains definitions of all static CWM widgets.

Return value:
CWM widgets