cups-pk-helper offer a set of PolicyKit authenticated methods to configure CUPS
server.
Homepage: http://www.vuntz.net/git/cups-pk-helper.git
Methods:
FileGet ()
Get a file from a CUPS server and stores it to a given file.
resource : file to get
filename : where to store the file
error : error string
------------------------------------------------------------------------------
FilePut ()
Put a file to a CUPS server.
resource : destination of the file
filename : source file
error : error string
------------------------------------------------------------------------------
PrinterAdd ()
Add a new printer.
name : name of the new printer
uri : URI of the new printer
ppd : a PPD file to use with the new printer
info : a textual description of the new printer
location : location of the new printer
error : error string
------------------------------------------------------------------------------
PrinterAddWithPpdFile ()
Add a new printer.
name : name of the new printer
uri : URI of the new printer
ppd : a PPD file to use with the new printer
info : a textual description of the new printer
location : location of the new printer
error : error string
------------------------------------------------------------------------------
PrinterSetDevice ()
Set the device URI for a printer.
name : printer's name
device : URI of the printer
error : error string
------------------------------------------------------------------------------
PrinterSetInfo ()
Set a textual description of a printer.
name : printer's name
info : a textual description of the printer
error : error string
------------------------------------------------------------------------------
PrinterSetLocation ()
Set the location of a printer.
name : printer's name
location : location of the printer
error : error string
------------------------------------------------------------------------------
PrinterSetShared ()
Set whether a printer is shared with other people.
name : printer's name
shared : if True, the printer will be shared
error : error string
------------------------------------------------------------------------------
PrinterSetJobSheets ()
Specifies job sheets.
name : printer's name
start : start sheet
end : end sheet
error : error string
------------------------------------------------------------------------------
PrinterSetErrorPolicy ()
Set the printer's error policy.
name : printer's name
policy : policy name
error : error string
------------------------------------------------------------------------------
PrinterSetOpPolicy ()
Set the printer's operation policy.
name : printer's name
policy : policy name
error : error string
------------------------------------------------------------------------------
PrinterSetUsersAllowed ()
Set the list of users allowed to use a printer.
name : printer's name
users : the list of users
error : error string
------------------------------------------------------------------------------
PrinterSetUsersDenied ()
Set the list of users denied the use of a printer.
name : printer's name
users : the list of users
error : error string
------------------------------------------------------------------------------
PrinterAddOptionDefault ()
Add a network default option. Jobs submitted to the named queue will have
the job option added
name : printer's name
option : the network option to add
values : a value of the added option
error : error string
------------------------------------------------------------------------------
PrinterDeleteOptionDefault ()
Remove a network default option.
name : printer's name
option : the network option to remove
error : error string
------------------------------------------------------------------------------
PrinterDelete ()
Delete a printer.
name : printer's name
error : error string
------------------------------------------------------------------------------
ClassAddPrinter ()
Add a printer to a class.
name : class' name
printer : printer to add
error : error string
------------------------------------------------------------------------------
ClassDeletePrinter ()
Delete a printer from a class.
name : class' name
printer : printer to delete
error : error string
------------------------------------------------------------------------------
ClassDelete ()
Delete a class.
name : class' name
error : error string
------------------------------------------------------------------------------
PrinterSetDefault ()
Set default printer.
name : printer's name
error : error string
------------------------------------------------------------------------------
PrinterSetEnabled ()
Enable/disable a printer.
name : printer's name
enabled : if True, the printer will be enabled
error : error string
------------------------------------------------------------------------------
PrinterSetAcceptJobs ()
Set whether a printer accepts jobs.
name : printer's name
enabled : if True, the printer will accept jobs
reason :
error : error string
------------------------------------------------------------------------------
ServerGetSettings ()
Get server settings.
error : error string
settings : server's settings
------------------------------------------------------------------------------
ServerSetSettings ()
Set server settings.
settings : new settings
error : error string
------------------------------------------------------------------------------
JobCancel ()
Cancel a job.
jobid : id of a job to cancel
error : error string
------------------------------------------------------------------------------
JobRestart ()
Restart a job.
jobid : id of job to restart
error : error string
------------------------------------------------------------------------------
JobSetHoldUntil ()
Set job-hold-until property of given job.
jobid : id of a job
job_hold_until : new value of job-hold-until property
error : error string