summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-02-28Remove tracking of the reconnecting state: it's not used.Vincent Untz1-6/+0
2009-02-28Code style fixes.Vincent Untz2-16/+32
2009-02-28Add job related functions + reconnect abilityMarek Kasik6-5/+406
Add _cph_mechanism_get_callers_user_name() function. This function returns caller's user name. Add handling of "file:" backend in cph_cups_is_printer_uri_local(). Signed-off-by: Vincent Untz <vuntz@novell.com>
2009-01-27Only use send_destination.Vincent Untz1-2/+1
The send_interface part is redundant, and as it was, it also matched other services with the same interface name.
2008-11-21Update NEWS/configure.ac for 0.0.3.cups-pk-helper-0.0.3Vincent Untz2-1/+13
2008-11-21Implement FileGet/FilePut methods.Vincent Untz5-2/+130
Took me long hours to make it work, with a workaround. See https://bugzilla.novell.com/show_bug.cgi?id=447422 for details.
2008-11-21Use class-edit check when classes are involved.Vincent Untz1-12/+30
2008-11-21Add cph_cups_is_class().Vincent Untz2-0/+41
2008-11-21Also take into account printer-X-edit for set-default/printer-enable.Vincent Untz2-5/+33
This is actually important if we don't want to ask for password too many different times. That's why we even prefer printer-X-edit over set-default/printer-enable when requesting authentication.
2008-11-21Add _check_polkit_for_printer().Vincent Untz1-15/+43
It looks it the printer is local or remote, and does the right thing. And use it to check right actions for most remaining methods.
2008-11-21Fix check for remote hplip.Vincent Untz1-0/+1
2008-11-21Add cph_cups_is_printer_local(), to make life easier.Vincent Untz2-0/+32
2008-11-21Check right actions for class methods.Vincent Untz1-3/+9
2008-11-21Rename policies with dashes, and add class-edit.Vincent Untz2-10/+19
2008-11-21Add cph_cups_printer_get_uri() to get the URI of a printer based on itsVincent Untz2-0/+61
name. Also, a printer with an empty URI is local.
2008-11-20Make it possible to check for more than one authorization for a givenVincent Untz1-21/+85
method. And use this for enable/set default.
2008-11-20Fix a bug where most of the changes to a printer didn't work.Vincent Untz1-2/+8
A lot of changes are done by sending a new PPD file. And it didn't work because we were sending it with an empty URI (instead of no URI).
2008-11-20Add some commented out code useful for debugging.Vincent Untz1-0/+4
2008-11-20Add new policies for PK, and start using them.Vincent Untz2-4/+50
Step 1: serversettings.
2008-11-20s/_cps/_cph/ (typo in namespace)Vincent Untz2-2/+2
2008-11-20Implement ClassAddPrinter/ClassDeletePrinter/ClassDelete methods.Vincent Untz5-3/+353
2008-11-20Mark adminGetServerSettings/adminSetServerSettings as done.Vincent Untz1-2/+2
2008-11-20Add cps_cups_is_printer_uri_local() function.Vincent Untz2-0/+64
It will be used to implement different policies, depending on the local vs remote printer.
2008-11-20s/_cps/_cph/ (typo in namespace)Vincent Untz1-3/+3
2008-11-20Add ServerGetSettings/ServerSetSettingsVincent Untz5-0/+169
2008-11-20Fix stupid crash in _cps_cups_printer_class_set_users().Vincent Untz2-7/+4
And remove debug output committed by accident.
2008-11-20Skip empty user names when setting Allowed/Denied.Vincent Untz2-9/+36
2008-11-20Accept an empty string array for deleting an option.Vincent Untz1-1/+1
(instead of just accepting NULL)
2008-11-20Add (untested) PrinterSetUsersAllowed/PrinterSetUsersDenied.Vincent Untz5-4/+187
2008-11-20Change the signature of PrinterAddOptionDefault to take as.Vincent Untz5-68/+42
Some options need an array of string, instead of just a string (setPrinterUsersAllowed, eg). And it actually simplifies code :-)
2008-11-17Fill NEWS for the past releases.Vincent Untz1-0/+12
2008-11-17Release 0.0.2cups-pk-helper-0.0.2Vincent Untz1-1/+1
2008-11-13Fix a crash in validity checks.Vincent Untz1-2/+2
When a string was NULL and we accepted NULL strings, we were calling strlen() on it...
2008-11-13Add some code in the python test for accepting jobs.Vincent Untz1-0/+13
2008-11-13Add some code in the python test for changing an option.Vincent Untz1-0/+13
2008-11-13Add remaining safety checks.Vincent Untz1-12/+44
2008-11-13Add lots of checks.Vincent Untz1-15/+45
2008-11-13Create a macro to easily add some checks.Vincent Untz1-15/+19
2008-11-13Validity check for printer URI.Vincent Untz1-1/+40
2008-11-13Add small comment.Vincent Untz1-0/+1
2008-11-13Add checks for the printer name.Vincent Untz1-4/+43
2008-11-13Add infrastructure to have a non-cups internal status.Vincent Untz1-1/+26
2008-11-13Implement _cph_cups_is_printer_name_valid()Vincent Untz1-1/+12
Based on the checks done in s-c-p.
2008-10-27The patch for system-config-printer is now in a git branch of s-c-p.Vincent Untz1-534/+0
2008-10-27Make it possible to specify the resource to use for cups requests.Vincent Untz1-26/+65
This brings us closer to what pycups is doing.
2008-10-27Make AcceptJobs actually work.Vincent Untz1-0/+3
reason has to be NULL when calling cph_cups_printer_set_accept_jobs().
2008-09-23Update s-c-p patch.Vincent Untz1-0/+12
2008-09-22Improve s-c-p patch (UI not blocking, no repeating password dialogs)cups-pk-helper-0.0.1Vincent Untz6-39/+146
And pass distcheck.
2008-09-22Add quite some stuff, and the current patch to s-c-p.Vincent Untz10-52/+1127
2008-09-21First pass at this.Vincent Untz16-23/+1212
There are two smalls test program to show this works :-)