YaST2 Developers Documentation: Configuration of ntp-client

Configuration of ntp-client

include/ntp-client/widgets.ycp
Widgets definitions
  • Jiri Srain

This module has an unstable interface.

Imports

  • CWMFirewallInterfaces
  • Confirm
  • Hostname
  • IP
  • Label
  • LogView
  • NetworkInterfaces
  • NetworkService
  • NtpClient
  • Popup
  • Progress
  • Report
  • SLPAPI

Includes

  • ntp-client/dialogs.ycp
  • ntp-client/helps.ycp

Local Functions

local SilentWrite () -> boolean

Save the configuration and restart NTP deamon

local showLogPopup () -> void

Show popup with NTP daemon's log

local ntpEnabledOrDisabled (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
local startInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
local startStore (string id, map event) -> void

Store settings of the widget

Parameters:
id any widget id
event map event that caused storing process
local startHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
local CheckCurrentSimpleConfiguration (boolean check_the_server) -> boolean

Checks the current simple configuration filled in UI. Selected option RandomPoolServers returns true; Selected valid server address also returns true;

Parameters:
check_the_server
Return value:
whether the configuration is correct
local ServerAddressIsInConfiguration () -> boolean

Check the current confifuration and returns whether some server address is defined

local complexButtonHandle (string key, map event) -> symbol

Handle function of the widget

Parameters:
key any widget id
event map event that caused storing process
Return value:
always `complex
local fudgeButtonHandle (string key, map event) -> symbol

Handle function of the widget

Parameters:
key string widget id
event map event that caused storing process
Return value:
always `complex
local chrootInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
local chrootStore (string id, map event) -> void

Store settings of the widget

Parameters:
id any widget id
event map event that caused storing process
local PolicyInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
local PolicyStore (string id, map event) -> void

Store settings of the widget

Parameters:
id any widget id
event map event that caused storing process
local RandomServersHandle (string id, map event) -> symbol

Function handles the "use_random_servers" checkbox

Parameters:
id
event
local overviewRedraw () -> void

Redraw the overview table

local overviewHandle (string id, map event) -> symbol

Handle events on the widget

Parameters:
id any widget id
event map event that caused storing process
Return value:
event to pass to WS or nil
local overviewInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
local addressInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
local addressStore (string id, map event) -> void

Store settings of the widget

Parameters:
id any widget id
event map event that caused storing process
local serverAddressValidate (string id, map event) -> boolean

Handle events on the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
is successful
local serverAddressHandle (string id, map event) -> symbol

Handle events on the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
event to pass to WS or nil
local optionsInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
local optionsStore (string id, map event) -> void

Store settings of the widget

Parameters:
id any widget id
event map event that caused storing process
local peerTypesInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
local peerTypesHandle (string id, map event) -> symbol

Handle events on the widget

Parameters:
id any widget id
event map event that caused storing process
Return value:
event to pass to WS or nil
local createSymlinkInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
local createSymlinkHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
local createSymlinkStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
local clockTypeHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
local clockTypeInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
local clockTypeStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
local unitNumberInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
local unitNumberStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
local browseButtonHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
local deviceInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
local deviceStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
local ServerListHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
local ServerListInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
local ServerListStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
local ServerListValidate (string id, map event) -> boolean

Validation function of a widget

Parameters:
id string widget id
event map event that caused validation
Return value:
true if validation succeeded
local ServersSourceInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
local FoundServersInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
local FoundServersStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
local InitWidgets () -> map<string,map<string,any> >

Initialize all widgets

Return value:
a map of widgets