Configuration of ntp-client |
include/ntp-client/misc.ycp |
Miscelanous functions for configuration of ntp-client. |
|
|
Imports
- IP
- Popup
- Progress
- Service
Includes
- ntp-client/clocktypes.ycp
Local Functions
|
|
|
local reallyExit () -> boolean
|
|
Ask user if exit without saving
- Return value:
local string2opts (string options_string, list<string> with_param) -> map
|
|
Parse string to map of options
- Parameters:
options_string |
string of options |
with_param |
|
- Return value:
local opts2string (map<string,any> options, string other) -> string
|
|
Create options string from a map
- Parameters:
options |
map options represented as a map |
other |
|
- Return value:
|
options represented as a string |
local ReallyAbort () -> boolean
|
|
If modified, ask for confirmation
- Return value:
|
true if abort is confirmed |
local Abort () -> boolean
|
|
Abort function
- Return value:
local PollAbort () -> boolean
|
|
Check for pending Abort press
- Return value:
local getClockType (string address) -> integer
|
|
Get the type of the clock from the address
- Parameters:
address |
string the clock identification in the IP address form |
- Return value:
local getClockUnitNumber (string address) -> integer
|
|
Get the unit number of the clock from the address
- Parameters:
address |
string the clock identification in the IP address form |
- Return value:
local getClockTypesCombo () -> list
|
|
Get entries for the clock type combo box
- Return value:
|
of items for the combo box |
|