aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/idl/addressbook.idl
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-05-17 01:50:28 +0800
committerChris Toshok <toshok@src.gnome.org>2000-05-17 01:50:28 +0800
commitd6db70c32dafe0acde40893893d37eb05564967c (patch)
treefa4f7e1bb16ff35f4a8ec231a6157aa30a763c09 /addressbook/backend/idl/addressbook.idl
parentf8cb586400f551b3ade8594890a6ffdd991ae673 (diff)
downloadgsoc2013-evolution-d6db70c32dafe0acde40893893d37eb05564967c.tar
gsoc2013-evolution-d6db70c32dafe0acde40893893d37eb05564967c.tar.gz
gsoc2013-evolution-d6db70c32dafe0acde40893893d37eb05564967c.tar.bz2
gsoc2013-evolution-d6db70c32dafe0acde40893893d37eb05564967c.tar.lz
gsoc2013-evolution-d6db70c32dafe0acde40893893d37eb05564967c.tar.xz
gsoc2013-evolution-d6db70c32dafe0acde40893893d37eb05564967c.tar.zst
gsoc2013-evolution-d6db70c32dafe0acde40893893d37eb05564967c.zip
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
Diffstat (limited to 'addressbook/backend/idl/addressbook.idl')
-rw-r--r--addressbook/backend/idl/addressbook.idl12
1 files changed, 12 insertions, 0 deletions
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
@@ -44,6 +44,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.
*/
void create_card (in VCard vcard);