YaST2 Developers Documentation: Printer configurator

Printer configurator

include/printer/dialogs-connection.ycp
Connection related dialogs.

This module has an unstable interface.

Imports

  • Arch
  • CUPS
  • Label
  • Message
  • Mode
  • Package
  • Popup
  • Printer
  • Printerlib
  • Report
  • Spooler
  • Wizard

Includes

  • printer/helps-connection.ycp
  • printer/misc.ycp

Local Functions

local getDeviceName (string pre_filled) -> string

Popup wanting device name.

Parameters:
pre_filled TextEntry is pre-set by this value.
Return value:
new device or ""
local checkConnectionType (symbol selected) -> symbol

Check whether connection configuration is possible additionally store last selected config type

Parameters:
selected symbol selected radio button
Return value:
the same as selected radio button if proceed, nil otherwise
local checkConnectionLocal (symbol selected) -> symbol

Check whether connection configuration is possible additionally store last selected config type

Parameters:
selected symbol selected radio button
Return value:
the same as selected radio button if proceed, nil otherwise
local checkConnectionCups (symbol selected) -> symbol

Check whether connection configuration is possible additionally store last selected config type

Parameters:
selected symbol selected radio button
Return value:
the same as selected radio button if proceed, nil otherwise
local checkConnectionDirect (symbol selected) -> symbol

Check whether connection configuration is possible additionally store last selected config type

Parameters:
selected symbol selected radio button
Return value:
the same as selected radio button if proceed, nil otherwise
local checkConnectionOther (symbol selected) -> symbol

Check whether connection configuration is possible additionally store last selected config type

Parameters:
selected symbol selected radio button
Return value:
the same as selected radio button if proceed, nil otherwise
local checkConnectionSubType (symbol what, symbol selected) -> symbol

Check whether connection configuration is possible additionally store last selected config type

Parameters:
what symbol
selected symbol selected radio button
Return value:
the same as selected radio button if proceed, nil otherwise
local runGenericConnectionTypeDialog (term items, string caption, string frame, string help, symbol what) -> symbol

Runs generic dialog with set of radio buttons

Parameters:
items term specifying the VBox of RadioButtonGroup
caption string dialog caption
frame strign caption of the frame with selection
help string help to show to user
what symbol containing `connection_type, `connection_local, `connection_cups, `connection_direct, `connection_other to handle dialog-specific situations
Return value:
wizard sequencer symbol
local runPrinterTypeDialog () -> symbol

Dialog for select type of printer

Return value:
wizard sequencer symbol
local runNewQueueDialog () -> symbol

Dialog for create queue for existing printer

Return value:
wizard sequencer symbol
local runConnectionTypeDialog (boolean local) -> symbol

Main connection type dialog

Parameters:
local boolean printer is local or remote
Return value:
wizard sequencer symbol
local runLocalConnectionDialog () -> symbol

Dialog asking about connection type for connection to local printers

Return value:
wizard sequencer symbol
local runCupsConnectionDialog () -> symbol

Dialog asking about connection type for connection to remote CUPS server

Return value:
wizard sequencer symbol
local runDirectConnectionDialog () -> symbol

Dialog asking about connection type for small print servers Possible are direct TCP port, IPP and LPD

Return value:
wizard sequencer symbol
local runOtherConnectionDialog () -> symbol

Run dialog asking about connection type Possible are CUPS class, Pipe printing and other printing (set URI)

Return value:
wizard sequencer symbol
local runDeviceDialog (string type) -> symbol

Asks user about settings of selected device (port number, other settings for serial ports). Lets user do test of device. Uses global variable printer.

Parameters:
type "parallel", "serial", "usb", "irda", "bluetooth"
Return value:
`back, `next, `abort
local runRemoteDialog (string type) -> symbol

Asks user about settings of selected type of remote pritner. E.g. hostname, username+password for samba, ncp, ...

Parameters:
type one of "samba", "novell", "lpd", "ipp", "socket"
Return value:
`next, `back, `abort
local runPipeDialog () -> symbol

Program to print to through pipe specification

Return value:
wizard sequencer symbol
local runUriDialog () -> symbol

direct Uri definition

Return value:
`next or `back
local editParallelPort () -> symbol

Change parallel port settings. This function must be called when wizard dialog has been set up. Hence it suppose Wizard library to be imported.

Return value:
for wizard sequencer
local editSerialPort () -> symbol

Change serial port settings. This function must be called when wizard dialog has been set up. Hence it suppose Wizard library to be imported.

Return value:
for wizard sequencer