[evolution-data-server/meego-eds: 7/47] Add preview to the main code.



commit a2ccccc1ee34ca90ccbf79f424963a01093f61bf
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Fri Apr 8 13:20:24 2011 +0530

    Add preview to the main code.

 mail/daemon/e-mail-data-folder.c |    4 ++++
 mail/daemon/test-email-client.c  |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/mail/daemon/e-mail-data-folder.c b/mail/daemon/e-mail-data-folder.c
index 21c2515..fe82922 100644
--- a/mail/daemon/e-mail-data-folder.c
+++ b/mail/daemon/e-mail-data-folder.c
@@ -837,6 +837,9 @@ info_from_variant (CamelFolder *folder, GVariant *vinfo)
 	item = g_variant_iter_next_value (&iter);
 	info->mlist = camel_pstring_strdup (g_variant_get_string(item, NULL));
 
+	item = g_variant_iter_next_value (&iter);
+	info->preview = g_strdup (g_variant_get_string(item, NULL));
+	
 	/* Flags & size */
 	item = g_variant_iter_next_value (&iter);
 	info->flags = g_variant_get_uint32 (item);
@@ -1225,6 +1228,7 @@ variant_from_info (CamelMessageInfoBase *info)
 	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->to));
 	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->cc));
 	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->mlist));
+	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->preview));
 
 
 	g_variant_builder_add (builder, "u", info->flags);
diff --git a/mail/daemon/test-email-client.c b/mail/daemon/test-email-client.c
index 93a7dad..6fc7b5e 100644
--- a/mail/daemon/test-email-client.c
+++ b/mail/daemon/test-email-client.c
@@ -36,6 +36,7 @@ message_info_dump (CamelMessageInfoBase *mi)
 	printf("mailing list: %s\n", camel_message_info_mlist(mi));
 	printf("From: %s\n", camel_message_info_from(mi));
 	printf("UID: %s\n", camel_message_info_uid(mi));
+	printf("PREVIEW: %s\n", mi->preview);	
 	printf("Flags: %04x\n", camel_message_info_flags(mi));
 
 	printf("User flags: \t");
@@ -69,6 +70,9 @@ test_folder_basic (EGdbusFolderCF *folder_proxy, char *folder_path)
 
 	egdbus_folder_cf_call_get_description_sync (folder_proxy, &data, NULL, NULL);
 	printf("\n Description %s\n", data);
+
+	printf("\n Prepare Summary %d\n", egdbus_folder_cf_call_prepare_summary_sync (folder_proxy, NULL, NULL));
+
 }
 
 
@@ -114,6 +118,9 @@ info_from_variant (CamelFolder *folder, GVariant *vinfo)
 	item = g_variant_iter_next_value (&iter);
 	info->mlist = camel_pstring_strdup (g_variant_get_string(item, NULL));
 
+	item = g_variant_iter_next_value (&iter);
+	info->preview = g_strdup (g_variant_get_string(item, NULL));
+
 	/* Flags & size */
 	item = g_variant_iter_next_value (&iter);
 	info->flags = g_variant_get_uint32 (item);
@@ -203,6 +210,7 @@ variant_from_info (CamelMessageInfoBase *info)
 	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->to));
 	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->cc));
 	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->mlist));
+	g_variant_builder_add (builder, "s", VALUE_OR_NULL(info->preview));
 
 
 	g_variant_builder_add (builder, "u", info->flags);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]