[tracker/gdbus] plugins/evolution: Added comment in code about synchronization
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus] plugins/evolution: Added comment in code about synchronization
- Date: Thu, 28 Oct 2010 13:41:08 +0000 (UTC)
commit 620a32a4db1e64196ec1f17c07bbd8e1911c3927
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]