[evolution-kolab] EPlugin: add query/store stubs for ACL
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] EPlugin: add query/store stubs for ACL
- Date: Fri, 14 Sep 2012 17:14:04 +0000 (UTC)
commit 5ef9cda83fcec426f793687f00a52a7eb10ce66b
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Fri Sep 14 18:59:57 2012 +0200
EPlugin: add query/store stubs for ACL
* prototyped API to query current permissions for a folder
src/eplugin/e-kolab-folder-permissions.c | 22 +++++++++++++++++++---
src/eplugin/e-kolab-folder-permissions.h | 11 ++++++++---
2 files changed, 27 insertions(+), 6 deletions(-)
---
diff --git a/src/eplugin/e-kolab-folder-permissions.c b/src/eplugin/e-kolab-folder-permissions.c
index 4d8e557..231ed9b 100644
--- a/src/eplugin/e-kolab-folder-permissions.c
+++ b/src/eplugin/e-kolab-folder-permissions.c
@@ -430,9 +430,9 @@ e_kolab_folder_permissions_ui_update_from_uidata (KolabFolderPermUIData *uidata)
}
gboolean
-e_kolab_folder_permissions_ui_query_acl (KolabFolderPermUIData *uidata,
- GCancellable *cancellable,
- GError **err)
+e_kolab_folder_permissions_ui_query_store (KolabFolderPermUIData *uidata,
+ GCancellable *cancellable,
+ GError **err)
{
g_return_val_if_fail (uidata != NULL, FALSE);
/* cancellable may be NULL */
@@ -442,4 +442,20 @@ e_kolab_folder_permissions_ui_query_acl (KolabFolderPermUIData *uidata,
return TRUE;
}
+gboolean
+e_kolab_folder_permissions_ui_write_store (KolabFolderPermUIData *uidata,
+ GCancellable *cancellable,
+ GError **err)
+{
+ g_return_val_if_fail (uidata != NULL, FALSE);
+ /* cancellable may be NULL */
+ g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
+
+ g_return_val_if_fail (E_IS_SHELL_VIEW (uidata->shell_view), FALSE);
+ g_return_val_if_fail (uidata->permissions != NULL, FALSE);
+
+ g_warning ("%s: FIXME implement me", __func__);
+ return TRUE;
+}
+
/*----------------------------------------------------------------------------*/
diff --git a/src/eplugin/e-kolab-folder-permissions.h b/src/eplugin/e-kolab-folder-permissions.h
index 19bafec..f6f1512 100644
--- a/src/eplugin/e-kolab-folder-permissions.h
+++ b/src/eplugin/e-kolab-folder-permissions.h
@@ -100,9 +100,14 @@ void
e_kolab_folder_permissions_ui_update_from_uidata (KolabFolderPermUIData *uidata);
gboolean
-e_kolab_folder_permissions_ui_query_acl (KolabFolderPermUIData *uidata,
- GCancellable *cancellable,
- GError **err);
+e_kolab_folder_permissions_ui_query_store (KolabFolderPermUIData *uidata,
+ GCancellable *cancellable,
+ GError **err);
+
+gboolean
+e_kolab_folder_permissions_ui_write_store (KolabFolderPermUIData *uidata,
+ GCancellable *cancellable,
+ GError **err);
/*----------------------------------------------------------------------------*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]