YaST2 Developers Documentation: Printer configurator

Printer configurator

printer_auto.ycp
Autoconfiguration preparation.

This module has an unstable interface.

Client for preparation of autoinstalation data.

Imports

  • PackageSystem
  • Popup
  • Printer
  • Printerdb
  • Progress
  • Spooler
  • Wizard

Includes

  • printer/wizards.ycp

Local Functions

local OldQueue2NewQueue (map<string,any> p) -> map<string,any>

Try to convert the model information from the old database to the new one

Parameters:
p map queue description map with old SuSE database info
Return value:
a map queue description map with updated info to Foomatic database
local FilterQueueMap (map<string,any> p) -> map<string,any>

Filter queue description map so that it contains only keys that are valid for both export map and autoinstallation map

Parameters:
p map export or autoinstallation map
Return value:
a map the map with filtered some keys
local OptMap2OptList (map<string,any> options) -> list<map>

Translate map to list of 2-entry maps with keys key and value

Parameters:
options map of options option_name -> option_value
Return value:
a list of maps with keys "key" and "value"
local OptList2OptMap (list<map> options) -> map<string,any>

Translate list of 2-entry maps with keys key and value to a map

Parameters:
options a list of maps with keys "key" and "value"
Return value:
a map of options option_name -> option_value
local Export2AI (map exp) -> map

Translate the Export map to the autoinstallation map

Parameters:
exp map the export map
Return value:
the autoinstallation map
local AI2Export (map ai) -> map<string, any>

Translate the autoinstallation map to the Export map

Parameters:
ai map the autoinstallation map
Return value:
a map the export map
Info:

Create a summary return string

Info:

did configuration changed return boolean

Info:

set configuration as changed return boolean

Info:

Reset configuration return map or list

Info:

Change configuration return symbol (i.e. `finish || `accept || `next || `cancel || `abort)

Info:

Return configuration data return map or list

Info:

Write configuration data return boolean