YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

SourceDialogsLite.ycp

This module has an unstable interface.

Imports

  • CWM
  • Label
  • Popup
  • SourceManager
  • URL

Global Functions

Local Variables

Local Functions

local _url -> string

URL to work with

local _allow_https -> boolean

Allow HTTPS for next source dialog?

local multi_cd_help -> string

Help text suffix for some types of the medias

global SetURL (string url) -> void

Set the URL to work with

Parameters:
url string URL to run the dialogs with
global GetURL () -> string

Return URL after the run of the dialog

Return value:
the URL
local PosprocessISOURL (string url) -> string

Postprocess URL of an ISO image

Parameters:
url string URL in the original form
Return value:
postprocessed URL
local IsISOURL (string url) -> boolean

Check if URL is an ISO URL

Parameters:
url string URL to check
Return value:
true if URL is an ISO URL, false otherwise
local PreprocessISOURL (string url) -> string

Preprocess the ISO URL to be used in the dialogs

Parameters:
url string URL to preprocess
Return value:
preprocessed URL
local PathIsISO (string url) -> boolean

check if given path points to ISO file

Parameters:
url string URL to check
Return value:
true if URL is ISO image
local Slashed (string urlpart) -> string

Add a slash to the part of url, if it is not already present

Parameters:
urlpart string a part of the URL
Return value:
urlpart with leading slash
local NormalizeHost (string host) -> string

Remove leading and trailing (and inner) spaces from the host name

Parameters:
host string original host name
Return value:
host without leading and trailing spaces
local PopupButtons () -> term

Return an HBox with ok and cancel buttons for use by other dialogs.

Return value:
An HBox term for use in a CreateDialog call.
local URLScheme (string url) -> string

Get scheme of a URL, also for ISO URL get scheme of the access protocol

Parameters:
url string URL to get scheme for
Return value:
URL scheme
local PlainURLInit (string key) -> void

Init function of a widget

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

Store function of a widget

Parameters:
key string widget key
event map which caused settings being stored
local PlainURLWidget () -> map<string,any>

Get widget description map

Return value:
widget description map
local NFSInit (string key) -> void

Init function of a widget

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

Store function of a widget

Parameters:
key string widget key
event map which caused settings being stored
local NFSWidget () -> map<string,any>

Get widget description map

Return value:
widget description map
local CDInit (string key) -> void

Init function of a widget

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

Store function of a widget

Parameters:
key string widget key
event map which caused settings being stored
local CDWidget () -> map<string,any>

Get widget description map

Return value:
widget description map
local DirInit (string key) -> void

Init function of a widget

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

Store function of a widget

Parameters:
key string widget key
event map which caused settings being stored
local DirHandle (string key, map event) -> symbol

Handle function of a widget

Parameters:
key string widget key
event map which caused settings being stored
Return value:
always nil
local DirWidget () -> map<string,any>

Get widget description map

Return value:
widget description map
local PlainDirStore (string key, map event) -> void

Store function of a widget

Parameters:
key string widget key
event map which caused settings being stored
local PlainDirWidget () -> map<string,any>

Get widget description map

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

Handle function of a widget

Parameters:
key string widget key
event map which caused settings being stored
Return value:
always nil
local ServerInit (string key) -> void

Init function of a widget

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

Store function of a widget

Parameters:
key string widget key
event map which caused settings being stored
local ServerWidget () -> map<string,any>

Get widget description map

Return value:
widget description map
local IsAnyNetworkAvailable () -> boolean

Checks whether some network is available in the current moment, see the bug #170147 for more information.

local _widgets -> map<string,map<string,any> >

Individual widgets

local Widgets () -> map<string,map<string,any> >

Get individual widgets

Return value:
individual widgets
local _caption -> map<string,string>

Captions for individual protocols

local PopupContents (string proto) -> term

Get contents of a popup for specified protocol

Parameters:
proto string protocol to display popup for
Return value:
popup contents
global EditPopup (string url) -> string

URL editation popup with the HTTPS option

Parameters:
url string url URL to edit
Return value:
modified URL or empty string if canceled
global EditPopupNoHTTPS (string url) -> string

URL editation popup without the HTTPS option

Parameters:
url string url URL to edit
Return value:
modified URL or empty string if canceled
global EditDialog () -> symbol

Sample implementation of URL selection dialog

Return value:
for wizard sequencer
global TypePopup () -> string

URL editation popup with the HTTPS option

Return value:
modified URL or empty string if canceled
global TypeDialog () -> symbol

Sample implementation of URL type selection dialog

Return value:
for wizard sequencer