From d6db70c32dafe0acde40893893d37eb05564967c Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 16 May 2000 17:50:28 +0000 Subject: add typedefs for the can_write functions, and add parameters to * backend/pas/pas-book.h: add typedefs for the can_write functions, and add parameters to pas_book_new. * backend/pas/pas-book.c (pas_book_construct): add can_write/can_write_card params. (pas_book_new): same. (impl_Evolution_Book_can_write): new function. (impl_Evolution_Book_can_write_card): same. (pas_book_get_epv): assign the can_write/can_write_card slots in the epv. * backend/pas/pas-backend-ldap.c (pas_backend_ldap_can_write): new function. (pas_backend_ldap_can_write_card): same. (pas_backend_ldap_add_client): add can_write/can_write_card to pas_book_new call. * backend/pas/pas-backend-file.c (pas_backend_file_can_write_card): new function, calls can_write. (pas_backend_file_can_write): same. (can_write): return TRUE if we can write to the addressbook file. (pas_backend_file_add_client): add can_write/can_write_card to pas_book_new call. * backend/idl/addressbook.idl (Evolution): add can_write and can_write_card permission requests. svn path=/trunk/; revision=3093 --- addressbook/backend/idl/addressbook.idl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'addressbook/backend/idl/addressbook.idl') diff --git a/addressbook/backend/idl/addressbook.idl b/addressbook/backend/idl/addressbook.idl index b3bcb5ea87..9a7743f974 100644 --- a/addressbook/backend/idl/addressbook.idl +++ b/addressbook/backend/idl/addressbook.idl @@ -43,6 +43,18 @@ module Evolution { */ VCard get_vcard (in CardId id); + /* + * Permissions. the first form is general write + * permission (whether or not the user can add or + * remove or modify any entry in the addressbook.) + * + * if can_write returns TRUE, can_write_card can still + * return FALSE if the user doesn't have permission to + * modify/remove that specific card. + */ + boolean can_write (); + boolean can_write_card (in CardId Id); + /* * Adding and deleting cards in the book. */ -- cgit v1.2.3