YaST2 Developers Documentation: Configuration of samba-client



functions
files
intro

Configuration of samba-client

include/samba-client/routines.ycp
Miscelanous functions for configuration of samba-client.

Imports

  • Label
  • Mode
  • Popup
  • Progress
  • Samba

Local Functions

local PollAbort () -> boolean

Check for pending Abort press

Return value:
true if pending abort

local ProgressNextStage (string title) -> void

Progress::NextStage and Progress::Title combined into one function

Parameters:
title progressbar title

local passwordPopup (string text) -> string

Allow user to type in a password in a popup.

Parameters:
text a text to be displayed above the password text entry
Return value:
entered password or nil on cancel

local passwordUserPopup (string message, string defaultuser) -> map<string, string>

Allow user to type in a user/password pair in a popup.

Parameters:
message a text to be displayed above the password text entry
defaultuser a pre-filled user name
Return value:
$["user": string, "password": string] with information provided by the user or nil on cancel

local ReallyAbort () -> boolean

If modified, ask for confirmation

Return value:
true if abort is confirmed

local WorkgroupWidget () -> term

Return a complex widget for setting a workgroup or domain. Contains Browse button.

Return value:
the widget term

local CheckWorkgroup (string workgroup) -> symbol

Check, if the workgroup is a domain or a workgroup. Uses caching to avoid long checks of a workgroup members.

Parameters:
workgroup the workgroup to be checked
Return value:
type of the workgroup: `joined_domain, `not_joined_domain, `workgroup or `domain if it is a domain, but the status is not known

local AskJoinDomain (string workgroup, symbol status) -> boolean

Allow to join a domain. Uses result of CheckWorkgroup to inform the user about the status.

Parameters:
workgroup the workgroup to be joined
status domain status returned by CheckWorkgroup
Return value:
true on successful join (workgroup is always successful), false on error or user cancel

local BrowseWorkgroups () -> string

Show a selection popup to select a workgroup from the ones existing on LAN.

Return value:
chosen workgroup or nil if cancelled

YaST2 Developers Documentation