Data and functions related only to CUPS
List of Global Functions
ClientRead - Read settings of CUPS client-only
DetectCupsUsbDevicesInfo - Detect information about USB devices using the CUPS USB backend Also store this information to Printerlib module
GetAvailableQueues - List all available queues (local and remote)
GetCupsUsbDevices - Get all CUPS-like USB device names
GetProblematicCupsUsbDevices - Get problematic CUPS USB devices names
GetSupportedUriTypes - Get URI Types supported by CUPS
GetSystemForbiddenNames - Get the list of queue names that are forbidden by the spooler
InstallationType - 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
ListenCupsServers - Get hosts available on local network via listening to IPP broadcasts
LoadServerHostName - Read client.conf host name to server_hostname
ProposeClientOnly - Propose Client only with a CUPS server listen_remote_ipp must have neen started befor this function is called
ProposeServerSettings - Propose the CUPS server settings
ReadCupsSettings - Reads CUPS server settings from /etc/cups/cupsd.conf file
SaveCupsClient - Save CUPS client-only configuration
SaveServerHostName - Save client.conf host name host name
StartDaemon - start CUPS server and don't wait until initialization finishes
StopListenCupsServers - Immediatelly stop listenning to IPP broadcasts via the script
WaitForCupsListeiningFinish - Wait until listening to CUPS IPP broadcasts finishes
WriteCupsSettings - Writes CUPS server settings to /etc/cups/cupsd.conf file
WriteQueue - Write configuration to CUPS
getBannerList - Get list of possible banners for CUPS server
List of Global Variables
cups_installation - Type of cups installation. nil: unknown `server: server `client: client
cups_server_permissions - Settings of CUPS server
cups_server_settings - Settings of CUPS server
cups_servers - List of detected CUPS servers
server_default - When configuring client, using server's default queue?
server_hostname - If this is only cups client station, server host name is here.
usb_dev_names - Use CUPS-like USB devices names `always, `never, `serial
Read settings of CUPS client-only
Return value
string - default queue name (empty if server-default is used, nil on fail) TODO error handling
Detect information about USB devices using the CUPS USB backend Also store this information to Printerlib module
Return value
list<list<string> > - a list of detected devices
List all available queues (local and remote)
Return value
list<string> - a list of strings all available queues
Get all CUPS-like USB device names
Return value
list<string> - a list of CUPS USB device names
Get problematic CUPS USB devices names
Return value
list<string> - a list of strings with problematic device names
Get URI Types supported by CUPS
Return value
list<string> - a list of supported URI types
Get the list of queue names that are forbidden by the spooler
Return value
list<string> - a list of forbidden queue names
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
symbol - `client or `server
Get hosts available on local network via listening to IPP broadcasts
Return value
list - Sorted list of hosts
Propose Client only with a CUPS server listen_remote_ipp must have neen started befor this function is called
Return value
void
Reads CUPS server settings from /etc/cups/cupsd.conf file
Return value
boolean - true on success
Save CUPS client-only configuration
Function parameters
string default_queue
Return value
boolean - true on success
Save client.conf host name host name
Return value
boolean - true on success
Immediatelly stop listenning to IPP broadcasts via the script
Return value
void
Wait until listening to CUPS IPP broadcasts finishes
Return value
void
Writes CUPS server settings to /etc/cups/cupsd.conf file
Return value
boolean - true on success
Write configuration to CUPS
Function parameters
map entry
Return value
boolean - true if successfull