YaST2 Developers Documentation: Configuration of scanner



functions
files
intro

Configuration of scanner

scanner_functions.ycp
Input and output functions.
Input and output routines.

Imports

  • Label
  • Service

Local Functions

local ScannerRead () -> map

------- UNUSED --------- Fill the map of all scanner settings from the SCR

Return value:
all scanner settings

local ScannerWrite (map<any, map> scanner_info) -> boolean

Write additional data/settings.

Parameters:
scanner_info
Return value:
success of operation

local ScannerFinish () -> boolean

Write the scanner data from SCR to the disk

Return value:
success of operation

local GetCurrentScannerValue (string key) -> string

Get the value to the given key of the scanner currently in work.

Parameters:
key
Return value:
value

local GetCurrentScanner () -> map

Get the scanner data of the scanner currently in work.

Return value:
scanner info

local SetCurrentScannerValue (string key, any value) -> boolean

Set the key/value pair in the scanner data of the scanner currently in work.

Parameters:
key
value

local DisplayScannerList (map<integer, map> scanners, string title) -> any

Display a popup with a list of several scanners. The first list entry is preselected.

Parameters:
scanners
title
Return value:
selected item

local CheckOfficeJet () -> boolean

Check whether the package hp-officeJet is installed

Return value:
package installed correctly or not

local CheckUSBScanner () -> boolean

Check whether an USB scanner is already installed.

Return value:
already USB scanner installed or not

local DecideDialog (symbol mode) -> symbol

Decide which dialog should be the next one.

Parameters:
mode
Return value:
return value for the start dialog, e.g. `notfound

local CreateScannerEntry (map new_entry) -> void

Create a new scanner entry in "scannerInfo" map and write the map to the user_settings..

Parameters:
new_entry

local DeleteScannerEntry (integer delete_id) -> void

- Delete scanner from "scannerInfo" map and lower the id's of all scanners after the deleted one - call ag_sane to remove driver from /etc/sane.d/dll.conf

Parameters:
delete_id

YaST2 Developers Documentation