[evolution-exchange] Adapt to Camel API changes.



commit 204cda7daf5a4e2831866d2e0328b8e54b42993e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun May 23 17:41:12 2010 -0400

    Adapt to Camel API changes.

 camel/camel-exchange-summary.c |   34 ++++------------------------------
 1 files changed, 4 insertions(+), 30 deletions(-)
---
diff --git a/camel/camel-exchange-summary.c b/camel/camel-exchange-summary.c
index a4434af..59b7c0d 100644
--- a/camel/camel-exchange-summary.c
+++ b/camel/camel-exchange-summary.c
@@ -154,8 +154,8 @@ exchange_summary_header_save (CamelFolderSummary *summary,
 }
 
 static CamelMessageInfo *
-exchange_summary_message_info_load (CamelFolderSummary *summary,
-                                    FILE *in)
+exchange_summary_message_info_migrate (CamelFolderSummary *summary,
+                                       FILE *in)
 {
 	CamelMessageInfo *info;
 	CamelExchangeMessageInfo *einfo;
@@ -165,7 +165,7 @@ exchange_summary_message_info_load (CamelFolderSummary *summary,
 	folder_summary_class = CAMEL_FOLDER_SUMMARY_CLASS (
 		camel_exchange_summary_parent_class);
 
-	info = folder_summary_class->message_info_load (summary, in);
+	info = folder_summary_class->message_info_migrate (summary, in);
 	if (info) {
 		einfo = (CamelExchangeMessageInfo *)info;
 
@@ -195,31 +195,6 @@ error:
 	return NULL;
 }
 
-static gint
-exchange_summary_message_info_save (CamelFolderSummary *summary,
-                                    FILE *out,
-                                    CamelMessageInfo *info)
-{
-	CamelExchangeMessageInfo *einfo = (CamelExchangeMessageInfo *)info;
-	CamelFolderSummaryClass *folder_summary_class;
-
-	folder_summary_class = CAMEL_FOLDER_SUMMARY_CLASS (
-		camel_exchange_summary_parent_class);
-
-	if (folder_summary_class->message_info_save (summary, out, info) == -1)
-		return -1;
-
-	if (camel_file_util_encode_string (out, einfo->thread_index ? einfo->thread_index : "") == -1)
-		return -1;
-
-	if (camel_file_util_encode_string (out, einfo->href ? einfo->href : "") == -1)
-		return -1;
-
-	d(g_print ("%s:%s: einfo->href = [%s]\n", G_STRLOC, G_STRFUNC, einfo->href));
-
-	return 0;
-}
-
 static CamelMessageInfo *
 exchange_summary_message_info_new_from_header (CamelFolderSummary *summary,
                                                struct _camel_header_raw *h)
@@ -450,8 +425,7 @@ camel_exchange_summary_class_init (CamelExchangeSummaryClass *class)
 	folder_summary_class->content_info_size = sizeof (CamelMessageContentInfo);
 	folder_summary_class->summary_header_load = exchange_summary_header_load;
 	folder_summary_class->summary_header_save = exchange_summary_header_save;
-	folder_summary_class->message_info_load = exchange_summary_message_info_load;
-	folder_summary_class->message_info_save = exchange_summary_message_info_save;
+	folder_summary_class->message_info_migrate = exchange_summary_message_info_migrate;
 	folder_summary_class->message_info_new_from_header = exchange_summary_message_info_new_from_header;
 	folder_summary_class->message_info_free = exchange_summary_message_info_free;
 	folder_summary_class->summary_header_to_db = exchange_summary_summary_header_to_db;



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