YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Arch
  • Confirm
  • Label
  • Popup
  • Scanner
  • Wizard
  • WizardHW

Includes

  • scanner/helps.ycp

Local Functions

Info:

File: include/scanner/dialogs.ycp Package: Configuration of scanner Summary: Dialogs definitions Authors: Johannes Meixner

local ReallyAbort () -> boolean

Ask for user confirmation if necessary before aborting. At present full transaction semantics (with roll-back) is not implemented. What is implemented is that it does not leave the system in an inconsistent state. It does one setup completely or not at all (i.e. all or nothing semantics regarding one setup.) "One setup" means the smallest amount of setup actions which lead from one consistent state to another consistent state. "Consistent state" is meant from the user's point of view (i.e. set up one SANE backend completely or set up the saned completely) and not from a low-level (e.g. filesystem or kernel) point of view. If the user does malicious stuff (e.g. killing YaST) or if the user ignores warning messages then it is possible (and it is accepted) that the user can force to set up even an inconsistent state (e.g. activate a backend but don't activate a required service). At present all what is needed for one setup is committed to the system instantly. For example: Install additional packages (like hp-officeJet), then set up and start special required services (like ptal), then activate the backend in /etc/sane/dll.conf finally determine which scanners have become actually active (see the ActivateBackend and DeactivateBackend functions). It is necessary to commit instantly to be able to test a scanner and to show a true feedback to the user which scanners are actually active.

Return value:
true if nothing was committed or if user confirms to abort
local ReadDialog () -> symbol

Read settings dialog

Return value:
`abort if aborted and `next otherwise
local WriteDialog () -> symbol

Write settings dialog

Return value:
`abort if aborted and `next otherwise
local OverviewDialog () -> any

Overview dialog does what the two dialogs SummaryDialog() and OverviewDialog() did before: A dialog showing the detected scanners and allowing to configure them.

Return value:
The value of the resulting UserInput.
local SelectModelDialog () -> any

Select model dialog

Return value:
dialog result
local ConfigureBackendDialog () -> any

Configure backend dialog

Return value:
dialog result
local ConfigureNetworkScanningDialog () -> any

Network scanning dialog

Return value:
dialog result