From f8b435e5fb2c533bac6249742777fd3296493ba8 Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Thu, 20 Jan 2005 07:00:08 +0000 Subject: [PATCH] sets the type of the container the in the container private structure. 2005-01-20 Parthasarathi Susarla * e-gw-container.[ch] (e_gw_container_set_from_soap_parameter): sets the type of the container the in the container private structure. --- servers/groupwise/e-gw-container.c | 7 +++++++ servers/groupwise/e-gw-container.h | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/servers/groupwise/e-gw-container.c b/servers/groupwise/e-gw-container.c index c0a3b19..274c24c 100644 --- a/servers/groupwise/e-gw-container.c +++ b/servers/groupwise/e-gw-container.c @@ -624,6 +624,13 @@ e_gw_container_is_root (EGwContainer *container) return container->priv->is_root ; } +EGwContainerType +e_gw_container_get_type (EGwContainer *container) +{ + g_return_val_if_fail (E_IS_GW_CONTAINER (container), FALSE) ; + return container->priv->type ; +} + /* flag specifies whether we are adding to acl or deleting one or more entries*/ /* flag = 1 :delete entry * flag = 2 :update entry diff --git a/servers/groupwise/e-gw-container.h b/servers/groupwise/e-gw-container.h index 50c6827..dce5e0b 100644 --- a/servers/groupwise/e-gw-container.h +++ b/servers/groupwise/e-gw-container.h @@ -54,6 +54,22 @@ struct _EShUsers { int rights; }; +typedef enum { + E_GW_CONTAINER_TYPE_ROOT, + E_GW_CONTAINER_TYPE_INBOX, + E_GW_CONTAINER_TYPE_OUTBOX, + E_GW_CONTAINER_TYPE_CALENDAR, + E_GW_CONTAINER_TYPE_CONTACTS, + E_GW_CONTAINER_TYPE_DOCUMENTS, + E_GW_CONTAINER_TYPE_QUERY, + E_GW_CONTAINER_TYPE_CHECKLIST, + E_GW_CONTAINER_TYPE_DRAFT, + E_GW_CONTAINER_TYPE_CABINET, + E_GW_CONTAINER_TYPE_TRASH, + E_GW_CONTAINER_TYPE_FOLDER + +} EGwContainerType ; + GType e_gw_container_get_type (void); EGwContainer *e_gw_container_new_from_soap_parameter (SoupSoapParameter *param); gboolean e_gw_container_set_from_soap_parameter (EGwContainer *container, -- 2.7.4