Printing spooler library. |
modules/Spooler.ycp |
Some utility functions for spooler settings | |
|
|
This module has an unstable interface. |
Printer library exported functions. What else?!?
Imports
Global Functions
Local VariablesLocal Functions |
Currently used spooler, cups or unknown (means none installed)
Printer's name mustn't be the same as a name of one of the files in the /etc/lpdfilter directory. These are the files. If it is nil, the list hasn't been initialized yet. Use function getSystemForbiddenNames for accessing this list.
display CUPS initialization popup
Get the currently used spooler FIXME TODO if not known, detect
- Return value:
-
currently used spooler
Set the spooler that is used FIXME high-level functions should be used instead of this one, this should get local
- Parameters:
-
spooler_type string spooler that is used
get RadioButtonGroup for spooler selection
- Parameters:
-
spooler string currently used spooler (cups, cups-client, or current) none boolean show leaving current status
- Return value:
-
RadioButtonGroup widget
Shows a question to a user what spooler he wants.
- Parameters:
-
msg string to be displayed abort_msg label of abort button
- Return value:
-
specifying users selecion (cups, cups_client, exit)
Get list of names that are forbidden by the currently used spooler
- Return value:
-
a list of strings -- these strings are not allowed as queue names.
stop currently running printer spooler service
Test which spooling system is most probably used.
- Return value:
-
with some bits set:
1 if lpd is installed
2 if cups is installed
(therefore 0 if none is installed)
(therefore 3 if both are installed)
256 is added if the instalation doesn't seem to be complete
Uninstalls print spoolers and installs selected one. Stops all spoolers before installation.
- Parameters:
-
to Spooler to install. Should be one of "cups" "cups_client"
check whether spooler (if needed to be running) runns, if not start it
- Parameters:
-
showPopup boolean true if shall show a popup if needed
Adjust services for runlevel, set them to state needed for writing
- Parameters:
-
have_some_queue true if at least one queue was configured
- Return value:
-
true on success
Check what spool system is installed. Don't ask user.
- Return value:
-
spooler
Check what spool system is installed. Ask user if needed and install spooler if wanted.
- Return value:
-
spooler
Test whether spooler supports queue type
- Parameters:
-
queue string queue type (eg. parallel) spooler string spooler name ("cups")
- Return value:
-
true if supports
Test whether currently used spooler supports queue type
- Parameters:
-
queue string queue type (eg. parallel)
- Return value:
-
true if supports
Restart printer daemon
- Parameters:
-
have_some_queue true if at least one queue was configured
- Return value:
-
true on success
List all available queues (local and remote)
- Return value:
-
a list of strings all available queues
Initialize current spooler
- Return value:
-
true on success