Unknown YCP Module |
|
This module has an unstable interface. |
Imports
Includes
Local VariablesLocal Functions
|
File: include/network/services/dns.ycp
Package: Network configuration
Summary: Hostname and DNS setup dialog
Authors: Michal Svec
If we know that there are no interfaces with DHCP, we can disable the check boxes. Each dialog must set this variable. HostnameDialog does not know yet whether we will have DHCP so it assumes yes. DNSMainDialog can query Lan::.
If there's a process modifying resolv.conf, we warn the user before letting him change things that will be overwritten anyway. See also #61000.
original setup, used to determine whether data have been modified
CWM buffer for both dialogs. Note that NAMESERVERS and SEARCHLIST are lists and their widgets are suffixed.
- Parameters:
-
l list of strings
- Return value:
-
only non-empty items
- Return value:
-
initial settings for this dialog in one map, from DNS::
- Parameters:
-
settings map of settings to be stored to DNS::
Stores actual hostname settings.
Initialize internal state according current system configuration.
Function for updating actual hostname settings.
- Parameters:
-
key for known keys see hn_settings value value for particular hn_settings key
Function for updating actual hostname.
- Parameters:
-
value
Function for updating ip address of first nameserver.
- Parameters:
-
value
Function for updating ip address of second nameserver.
- Parameters:
-
value
Function for updating ip address of third nameserver.
- Parameters:
-
value
Default function to init the value of a widget. Used for push buttons.
- Parameters:
-
key id of the widget
Default function to store the value of a widget.
- Parameters:
-
key id of the widget event the event being handled
Init handler for DHCP_HOSTNAME. enable or disable: is DHCP available?
- Parameters:
-
key the widget receiving the event
- Return value:
-
nil so that the dialog loops on
Event handler for resolver data (nameservers, searchlist) enable or disable: is DHCP available?
- Parameters:
-
key the widget receiving the event event the event being handled
- Return value:
-
nil so that the dialog loops on
Validator for hostname, no_popup
- Parameters:
-
key the widget being validated event the event being handled
- Return value:
-
whether valid
Validator for domain name, no_popup
- Parameters:
-
key the widget being validated event the event being handled
- Return value:
-
whether valid
Validator for the search list
- Parameters:
-
key the widget being validated event the event being handled
- Return value:
-
whether valid
Used in GUI mode - initializes widgets according hn_settings
- Parameters:
-
key ignored
Used in GUI mode - updates and stores actuall hostname settings according dialog widgets content. It calls store handler for every widget from hn_settings with event as an option.
- Parameters:
-
key ignored event user generated event
Standalone dialog only - embedded one is handled separately via CWMTab
- Parameters:
-
standalone