Printer configurator |
misc.ycp |
Miscelaneous defines. | |
|
|
This module has an unstable interface. |
Get description of the PPD file
- Parameters:
-
nick string the nick name of the PPD file language string langauge of the PPD file filename string file name of the PPD file
- Return value:
-
description of the PPD file
Get auto queues for printer when using foomatic database
- Parameters:
-
vendor string vendor db key model string model db key ppdfile_orig string choosen ppd file, nil = auto
- Return value:
-
a list of PPD files
Sort items according to locale
- Parameters:
-
items map items (item key -> item label)
- Return value:
-
a list of items to be used for selectionbox
Check if paper size is set and if not, then set the defaul Don't change if already set
- Parameters:
-
p map of printer to adjust paper size
- Return value:
-
a map of printer with adjusted paper size
Get printers (physical devices), which are configured
- Return value:
-
a list of printers maps (one queue of each printer)
Has a printer (physical) been already configured (contains at least one queue?
- Parameters:
-
manuf string manufacturer of the printer model string model of the printer uri string URI of the printer unique_key string unique_key of the printer
- Return value:
-
true if already configured
Clean and unmount agents
Reinstall all printing related packages using package-manager
- Return value:
-
true if success
Get hosts available on local network. Reads from .net.hostnames. Shows popup window: Wait please.
- Parameters:
-
type "ipp", "samba", "lpd" or ""
- Return value:
-
a list Sorted list of hosts.
Return list without item.
- Parameters:
-
source source list item item to delete
- Return value:
-
List without item. If item was not present in list, list is unchanged.
Displays message when baud rate is 0.
- Parameters:
-
brate Baud rate.
- Return value:
-
Is baud rate ok?
Is the hostname correct? Check it for allowed characters. Display message if bad hostname.
- Parameters:
-
name Hostname to check
- Return value:
-
true if hostname is correct.
Is the username correct? Check it for allowed characters. Display message if bad username.
- Parameters:
-
name Username to check
- Return value:
-
true if username is correct.
Is the password correct? Check it for allowed characters. Display message if bad password.
- Parameters:
-
name password to check
- Return value:
-
true if hostname is correct.
Ask if really abort. Uses boolean Printer::dirty. Sets boolean do_abort_now.
- Return value:
-
true if user really wants to abort
Ask if really exit. Uses boolean Printer::dirty. Sets boolean do_abort_now.
- Return value:
-
true if user really wants to abort
Get list of available devices in nice-names.
- Parameters:
-
devices list of devices to show device device that should be selected. If "" then first device will be selected.
- Return value:
-
Items for selection box. One of the items is selected.
Create the content of table of all entries in the printcap.
- Return value:
-
List of items. Item id is index of printer in printcap.
Is the name of local queue correct? If not, display message.
- Parameters:
-
name string queue name forbidden_names list of forbidden names
- Return value:
-
true if correct
Is the name of the remote printer correct? If not, display message.
- Parameters:
-
name Hostname to check
- Return value:
-
true if hostname is correct.
Check IPP queue name Uses CheckQueueName, just remove leading printers/ or classes/ from the queue name before
- Parameters:
-
name string
- Return value:
-
correct name of remote printer
Creates UI widgets from values.
- Parameters:
-
option_type string type of the option (pick_one, pick_many, boolean) values list values
- Return value:
-
UI representation of vals