[tracker/rss-enclosures] plugins/evolution: Added comment in code about synchronization



commit 09f7bbb14a4aea2309533adb561b3ce960bac8d8
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Oct 28 15:40:48 2010 +0200

    plugins/evolution: Added comment in code about synchronization

 src/plugins/evolution/tracker-evolution-plugin.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index 4241e35..e0b095e 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -413,6 +413,13 @@ send_sparql_commit (TrackerEvolutionPlugin *self, gboolean update)
 	if (priv->connection) {
 		if (update) {
 			gchar *date_s = tracker_date_to_string (time (NULL));
+
+			/* TODO: We should probably do this per folder instead of a datasource
+			 * for the entire Evolution store. This way if the user interrupts
+			 * the synchronization, then at least the folders that are already
+			 * finished don't have to be repeated next time. Right now an interrupt
+			 * means starting over from scratch. */
+
 			gchar *update = g_strdup_printf ("DELETE FROM <"DATASOURCE_URN"> { <" DATASOURCE_URN "> nie:contentLastModified ?d } "
 			                                 "WHERE { <" DATASOURCE_URN "> a nie:InformationElement ; nie:contentLastModified ?d } \n"
 			                                 "INSERT INTO <"DATASOURCE_URN"> { <" DATASOURCE_URN "> a nie:InformationElement ; nie:contentLastModified \"%s\" }",



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