+2007-08-30 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes #298095 (bnc)
+ * e-gw-container.[ch]: (e_gw_container_set_from_soap_parameter),
+ (e_gw_container_get_is_system_folder),
+ (e_gw_container_set_is_system_folder): Added a function to fetch
+ the system folder flag.
+
2007-08-17 Johnny Jacob <jjohnny@novell.com>
** Fix for bug #458715.
gboolean is_frequent_contacts; /*indicates whether this folder is frequent contacts or not */
gboolean is_shared_by_me;
gboolean is_shared_to_me;
-
+ gboolean is_system_folder;
};
static GObjectClass *parent_class = NULL;
g_free (value) ;
}
+ subparam = soup_soap_parameter_get_first_child_by_name (param, "isSystemFolder");
+ if (subparam) {
+ value = soup_soap_parameter_get_string_value (subparam);
+ if (!strcmp (value, "1"))
+ container->priv->is_system_folder = TRUE;
+ g_free (value);
+ }
+
+
/* retrive the unread and total count */
subparam = soup_soap_parameter_get_first_child_by_name (param, "hasUnread") ;
if (!subparam) {
container->priv->is_shared_to_me = is_shared_to_me;
}
+gboolean
+e_gw_container_get_is_system_folder (EGwContainer *container)
+{
+ g_return_val_if_fail (E_IS_GW_CONTAINER (container), FALSE);
+
+ return container->priv->is_system_folder;
+}
+
+void
+e_gw_container_set_is_system_folder (EGwContainer *container, gboolean is_system_folder)
+{
+ g_return_if_fail (E_IS_GW_CONTAINER (container));
+
+ container->priv->is_system_folder = is_system_folder;
+}
+
const char *
e_gw_container_get_name (EGwContainer *container)
{
EGwContainerType e_gw_container_get_container_type (EGwContainer *container) ;
void e_gw_container_get_user_list(EGwContainer *container, GList **user_list);
void e_gw_container_form_message (SoupSoapMessage *msg, gchar *id, GList *new_list, const char *sub, const char *mesg, int flag);
+gboolean e_gw_container_get_is_system_folder (EGwContainer *container);
+void e_gw_container_set_is_system_folder (EGwContainer *container, gboolean is_system_folder);
G_END_DECLS