YaST2 Developers Documentation: Printer configuration



functions
files
intro

Printer configuration

modules/CUPS.ycp
Data and functions related only to CUPS
Printer library exported functions. What else?!?

Imports

  • Label

Global Variables

Global Functions

global cups_servers -> list<string>

List of detected CUPS servers

global usb_dev_names -> symbol

Use CUPS-like USB devices names `always, `never, `serial

global cups_installation -> symbol

Type of cups installation. nil: unknown `server: server `client: client

global server_hostname -> string

If this is only cups client station, server host name is here.

global cups_server_settings -> map<string,list<string> >

Settings of CUPS server

global cups_server_permissions -> map<string,map<string, list<string> > >

Settings of CUPS server

global server_default -> boolean

When configuring client, using server's default queue?

global loadClientHostName () -> void

Read client.conf host name to server_hostname

global InstallationType () -> symbol

If only client is installed or remote server to use is set, returns 1, if this is real server installation, returns 0 Also sets server_hostname and cups_installation

Return value:
`client or `server

global saveClientHostName () -> boolean

Save client.conf host name host name

Return value:
true on success

global saveCupsClient (string default) -> boolean

Save CUPS client-only configuration

Parameters:
default string default queue name
Return value:
true on success

global StartDaemon () -> void

start CUPS server and don't wait until initialization finishes

global readCupsSettings () -> boolean

Reads CUPS server settings from /etc/cups/cupsd.conf file

Return value:
true on success

global writeCupsSettings () -> boolean

Writes CUPS server settings to /etc/cups/cupsd.conf file

Return value:
true on success

global WaitForCupsListeiningFinish () -> void

Wait until listening to CUPS IPP broadcasts finishes

global listenCupsServers () -> list

Get hosts available on local network via listening to IPP broadcasts

Return value:
Sorted list of hosts

global stopListenCupsServers () -> void

Immediatelly stop listenning to IPP broadcasts via the script

global ProposeClientOnly () -> void

Propose Client only with a CUPS server listen_remote_ipp must have neen started befor this function is called

global GetAvailableQueues () -> list<string>

List all available queues (local and remote)

Return value:
a list of strings all available queues

global getBannerList () -> list<string>

Get list of possible banners for CUPS server

Return value:
a list banners names

YaST2 Developers Documentation