Printer configuration |
modules/CUPS.ycp |
Data and functions related only to CUPS | |
|
|
This module has an unstable interface. |
Printer library exported functions. What else?!?
Imports
Global Variables
Global Functions
Local Variables |
List of supported URI schemess
List of detected CUPS servers
Use CUPS-like USB devices names `always, `never, `serial
Type of cups installation. nil: unknown `server: server `client: client
If this is only cups client station, server host name is here.
Settings of CUPS server
Settings of CUPS server
When configuring client, using server's default queue?
Read client.conf host name to server_hostname
Save client.conf host name host name
- Return value:
-
true on success
Read settings of CUPS client-only
- Return value:
-
default queue name (empty if server-default is used, nil on fail) TODO error handling
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
Save CUPS client-only configuration
- Parameters:
-
default_queue string default queue name
- Return value:
-
true on success
Reads CUPS server settings from /etc/cups/cupsd.conf file
- Return value:
-
true on success
Writes CUPS server settings to /etc/cups/cupsd.conf file
- Return value:
-
true on success
Write configuration to CUPS
- Parameters:
-
entry map of printer entry
- Return value:
-
true if successfull
List all available queues (local and remote)
- Return value:
-
a list of strings all available queues
Get list of possible banners for CUPS server
- Return value:
-
a list banners names
Detect information about USB devices using the CUPS USB backend Also store this information to Printerlib module
- Return value:
-
a list of detected devices
Get all CUPS-like USB device names
- Return value:
-
a list of CUPS USB device names
Get problematic CUPS USB devices names
- Return value:
-
a list of strings with problematic device names
Wait until listening to CUPS IPP broadcasts finishes
Get hosts available on local network via listening to IPP broadcasts
- Return value:
-
Sorted list of hosts
Immediatelly stop listenning to IPP broadcasts via the script
Propose Client only with a CUPS server listen_remote_ipp must have neen started befor this function is called
Propose the CUPS server settings
Get the list of queue names that are forbidden by the spooler
- Return value:
-
a list of forbidden queue names
Get URI Types supported by CUPS
- Return value:
-
a list of supported URI types
start CUPS server and don't wait until initialization finishes