[gnome-photos] Add PhotosTrackerChangeMonitor



commit d2cce3994ca244967d7f8b07884eb382c64f6488
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Aug 16 20:30:01 2012 +0200

    Add PhotosTrackerChangeMonitor

 src/Makefile.am                     |   14 ++
 src/photos-tracker-change-event.c   |   72 ++++++++
 src/photos-tracker-change-event.h   |   48 +++++
 src/photos-tracker-change-monitor.c |  338 +++++++++++++++++++++++++++++++++++
 src/photos-tracker-change-monitor.h |   75 ++++++++
 src/photos-tracker-resources.xml    |   33 ++++
 6 files changed, 580 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index cc8ff3c..4c224a8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,6 +7,8 @@ gnome_photos_built_sources = \
 	photos-enums.h \
 	photos-marshalers.c \
 	photos-marshalers.h \
+	photos-tracker-resources.c \
+	photos-tracker-resources.h \
 	$(NULL)
 
 gnome_photos_SOURCES = \
@@ -83,6 +85,10 @@ gnome_photos_SOURCES = \
 	photos-source-manager.h \
 	photos-spinner-box.c \
 	photos-spinner-box.h \
+	photos-tracker-change-event.c \
+	photos-tracker-change-event.h \
+	photos-tracker-change-monitor.c \
+	photos-tracker-change-monitor.h \
 	photos-tracker-controller.c \
 	photos-tracker-controller.h \
 	photos-tracker-queue.c \
@@ -103,6 +109,7 @@ EXTRA_DIST = \
 	photos-enums.h.template \
 	photos-generate-about.sh \
 	photos-marshalers.list \
+	photos-tracker-resources.xml \
 	$(null)
 
 AM_CPPFLAGS = \
@@ -227,4 +234,11 @@ photos-marshalers.c: photos-marshalers.list photos-marshalers.h Makefile
 		&& rm -f xgen-tmc \
 	)
 
+photos-tracker-resources.h photos-tracker-resources.c: photos-tracker-resources.xml
+	gdbus-codegen \
+		--c-namespace Tracker \
+		--generate-c-code photos-tracker-resources \
+		--interface-prefix org.freedesktop.Tracker1. \
+		photos-tracker-resources.xml
+
 endif
diff --git a/src/photos-tracker-change-event.c b/src/photos-tracker-change-event.c
new file mode 100644
index 0000000..b9e308c
--- /dev/null
+++ b/src/photos-tracker-change-event.c
@@ -0,0 +1,72 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright  2012 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
+#include "config.h"
+
+#include "photos-tracker-change-event.h"
+
+
+struct _PhotosTrackerChangeEvent
+{
+  PhotosTrackerChangeEventType type;
+  gchar *urn;
+};
+
+
+static const gchar *RDF_TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";;
+
+
+void
+photos_tracker_change_event_free (PhotosTrackerChangeEvent *self)
+{
+  g_free (self->urn);
+  g_slice_free (PhotosTrackerChangeEvent, self);
+}
+
+
+PhotosTrackerChangeEvent *
+photos_tracker_change_event_new (const gchar *urn, const gchar *predicate, gboolean is_delete)
+{
+  PhotosTrackerChangeEvent *self;
+
+  self = g_slice_new0 (PhotosTrackerChangeEvent);
+  self->urn = g_strdup (urn);
+
+  if (g_strcmp0 (predicate, RDF_TYPE) == 0)
+    {
+      if (is_delete)
+        self->type = PHOTOS_TRACKER_CHANGE_EVENT_DELETED;
+      else
+        self->type = PHOTOS_TRACKER_CHANGE_EVENT_CREATED;
+    }
+  else
+    self->type = PHOTOS_TRACKER_CHANGE_EVENT_CHANGED;
+
+  return self;
+}
+
+
+void
+photos_tracker_change_event_merge (PhotosTrackerChangeEvent *self, PhotosTrackerChangeEvent *event)
+{
+  if (event->type == PHOTOS_TRACKER_CHANGE_EVENT_DELETED || event->type == PHOTOS_TRACKER_CHANGE_EVENT_CREATED)
+    self->type = event->type;
+}
diff --git a/src/photos-tracker-change-event.h b/src/photos-tracker-change-event.h
new file mode 100644
index 0000000..35c5406
--- /dev/null
+++ b/src/photos-tracker-change-event.h
@@ -0,0 +1,48 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright  2012 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+#ifndef PHOTOS_TRACKER_CHANGE_EVENT_H
+#define PHOTOS_TRACKER_CHANGE_EVENT_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef enum
+{
+  PHOTOS_TRACKER_CHANGE_EVENT_CHANGED,
+  PHOTOS_TRACKER_CHANGE_EVENT_CREATED,
+  PHOTOS_TRACKER_CHANGE_EVENT_DELETED
+} PhotosTrackerChangeEventType;
+
+typedef struct _PhotosTrackerChangeEvent PhotosTrackerChangeEvent;
+
+PhotosTrackerChangeEvent  *photos_tracker_change_event_new        (const gchar *urn,
+                                                                   const gchar *predicate,
+                                                                   gboolean is_delete);
+
+void                       photos_tracker_change_event_free       (PhotosTrackerChangeEvent *self);
+
+void                       photos_tracker_change_event_merge      (PhotosTrackerChangeEvent *self,
+                                                                   PhotosTrackerChangeEvent *event);
+
+G_END_DECLS
+
+#endif /* PHOTOS_TRACKER_CHANGE_EVENT_H */
diff --git a/src/photos-tracker-change-monitor.c b/src/photos-tracker-change-monitor.c
new file mode 100644
index 0000000..71942a3
--- /dev/null
+++ b/src/photos-tracker-change-monitor.c
@@ -0,0 +1,338 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright  2012 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
+#include "config.h"
+
+#include <glib.h>
+#include <glib/gi18n.h>
+#include <tracker-sparql.h>
+
+#include "photos-tracker-change-event.h"
+#include "photos-tracker-change-monitor.h"
+#include "photos-tracker-queue.h"
+#include "photos-tracker-resources.h"
+
+
+struct _PhotosTrackerChangeMonitorPrivate
+{
+  GHashTable *pending;
+  PhotosTrackerQueue *queue;
+  TrackerResources *resource_service;
+  guint outstanding_ops;
+};
+
+enum
+{
+  CHANGES_PENDING,
+  LAST_SIGNAL
+};
+
+static guint signals[LAST_SIGNAL] = { 0 };
+
+
+G_DEFINE_TYPE (PhotosTrackerChangeMonitor, photos_tracker_change_monitor, G_TYPE_OBJECT);
+
+
+typedef struct _PhotosTrackerChangeMonitorQueryData PhotosTrackerChangeMonitorQueryData;
+typedef struct _TrackerResourcesEvent TrackerResourcesEvent;
+
+struct _PhotosTrackerChangeMonitorQueryData
+{
+  PhotosTrackerChangeMonitor *self;
+  gboolean is_delete;
+};
+
+struct _TrackerResourcesEvent
+{
+  gint32 first;
+  gint32 second;
+  gint32 third;
+  gint32 fourth;
+} __attribute__ ((packed));
+
+
+static PhotosTrackerChangeMonitorQueryData *
+photos_tracker_change_monitor_query_data_copy (PhotosTrackerChangeMonitorQueryData *data)
+{
+  PhotosTrackerChangeMonitorQueryData *copy;
+
+  copy = g_slice_new0 (PhotosTrackerChangeMonitorQueryData);
+  copy->self = g_object_ref (data->self);
+  copy->is_delete = data->is_delete;
+
+  return copy;
+}
+
+
+static void
+photos_tracker_change_monitor_query_data_free (PhotosTrackerChangeMonitorQueryData *data)
+{
+  g_clear_object (&data->self);
+  g_slice_free (PhotosTrackerChangeMonitorQueryData, data);
+}
+
+
+static PhotosTrackerChangeMonitorQueryData *
+photos_tracker_change_monitor_query_data_new (PhotosTrackerChangeMonitor *self, gboolean is_delete)
+{
+  PhotosTrackerChangeMonitorQueryData *data;
+
+  data = g_slice_new0 (PhotosTrackerChangeMonitorQueryData);
+  data->self = g_object_ref (self);
+  data->is_delete = is_delete;
+
+  return data;
+}
+
+
+static void
+photos_tracker_change_monitor_add_event (PhotosTrackerChangeMonitor *self,
+                                         const gchar *subject,
+                                         const gchar *predicate,
+                                         gboolean is_delete)
+{
+  PhotosTrackerChangeMonitorPrivate *priv = self->priv;
+  PhotosTrackerChangeEvent *event;
+  PhotosTrackerChangeEvent *old_event;
+
+  event = photos_tracker_change_event_new (subject, predicate, is_delete);
+  old_event = (PhotosTrackerChangeEvent *) g_hash_table_lookup (priv->pending, subject);
+
+  if (old_event != NULL)
+    photos_tracker_change_event_merge (old_event, event);
+  else
+    g_hash_table_insert (priv->pending, (gpointer) g_strdup (subject), (gpointer) event);
+}
+
+
+static void
+photos_tracker_change_monitor_update_collector (PhotosTrackerChangeMonitor *self)
+{
+  PhotosTrackerChangeMonitorPrivate *priv = self->priv;
+
+  if (priv->outstanding_ops != 0)
+    return;
+
+  g_signal_emit (self, signals[CHANGES_PENDING], 0, priv->pending);
+  g_hash_table_remove_all (priv->pending);
+}
+
+
+static void
+photos_tracker_change_monitor_cursor_next (GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+  PhotosTrackerChangeMonitorQueryData *data = (PhotosTrackerChangeMonitorQueryData *) user_data;
+  TrackerSparqlCursor *cursor = TRACKER_SPARQL_CURSOR (source_object);
+  gboolean valid;
+
+  valid = tracker_sparql_cursor_next_finish (cursor, res, NULL);
+  if (valid)
+    {
+      const gchar *predicate;
+      const gchar *subject;
+
+      subject = tracker_sparql_cursor_get_string (cursor, 0, NULL);
+      predicate = tracker_sparql_cursor_get_string (cursor, 1, NULL);
+      photos_tracker_change_monitor_add_event (data->self, subject, predicate, data->is_delete);
+    }
+
+  photos_tracker_change_monitor_update_collector (data->self);
+
+  tracker_sparql_cursor_close (cursor);
+  photos_tracker_change_monitor_query_data_free (data);
+}
+
+
+static void
+photos_tracker_change_monitor_query_executed (GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+  PhotosTrackerChangeMonitorQueryData *data = (PhotosTrackerChangeMonitorQueryData *) user_data;
+  TrackerSparqlConnection *connection = TRACKER_SPARQL_CONNECTION (source_object);
+  GError *error;
+  TrackerSparqlCursor *cursor;
+
+  error = NULL;
+  cursor = tracker_sparql_connection_query_finish (connection, res, &error);
+  if (error != NULL)
+    {
+      g_error_free (error);
+      return;
+    }
+
+  tracker_sparql_cursor_next_async (cursor,
+                                    NULL,
+                                    photos_tracker_change_monitor_cursor_next,
+                                    photos_tracker_change_monitor_query_data_copy (data));
+  g_object_unref (cursor);
+}
+
+
+static void
+photos_tracker_change_monitor_update_iterator (PhotosTrackerChangeMonitor *self,
+                                               const TrackerResourcesEvent *event,
+                                               gboolean is_delete)
+{
+  PhotosTrackerChangeMonitorQueryData *data;
+  gchar *sparql;
+
+  sparql = g_strdup_printf ("SELECT tracker:uri(%" G_GINT32_FORMAT ") tracker:uri(%" G_GINT32_FORMAT ") {}",
+                            event->first,
+                            event->second);
+
+  data = photos_tracker_change_monitor_query_data_new (self, is_delete);
+
+  photos_tracker_queue_select (self->priv->queue,
+                               sparql,
+                               NULL,
+                               photos_tracker_change_monitor_query_executed,
+                               data,
+                               (GDestroyNotify) photos_tracker_change_monitor_query_data_free);
+  g_free (sparql);
+}
+
+
+static void
+photos_tracker_change_monitor_graph_updated (TrackerResources *resource_service,
+                                             GVariant *delete_events,
+                                             GVariant *insert_events,
+                                             gpointer user_data)
+{
+  PhotosTrackerChangeMonitor *self = PHOTOS_TRACKER_CHANGE_MONITOR (user_data);
+  PhotosTrackerChangeMonitorPrivate *priv = self->priv;
+  const TrackerResourcesEvent *events;
+  gsize i;
+  gsize n_elements;
+
+  events = (const TrackerResourcesEvent *) g_variant_get_fixed_array (delete_events,
+                                                                      &n_elements,
+                                                                      sizeof (TrackerResourcesEvent));
+  for (i = 0; i < n_elements; i++)
+    {
+      priv->outstanding_ops++;
+      photos_tracker_change_monitor_update_iterator (self, &events[i], TRUE);
+    }
+
+  events = (const TrackerResourcesEvent *) g_variant_get_fixed_array (insert_events,
+                                                                      &n_elements,
+                                                                      sizeof (TrackerResourcesEvent));
+  for (i = 0; i < n_elements; i++)
+    {
+      priv->outstanding_ops++;
+      photos_tracker_change_monitor_update_iterator (self, &events[i], FALSE);
+    }
+}
+
+
+static GObject *
+photos_tracker_change_monitor_constructor (GType type,
+                                           guint n_construct_params,
+                                           GObjectConstructParam *construct_params)
+{
+  static GObject *self = NULL;
+
+  if (self == NULL)
+    {
+      self = G_OBJECT_CLASS (photos_tracker_change_monitor_parent_class)->constructor (type,
+                                                                                       n_construct_params,
+                                                                                       construct_params);
+      g_object_add_weak_pointer (self, (gpointer) &self);
+      return self;
+    }
+
+  return g_object_ref (self);
+}
+
+
+static void
+photos_tracker_change_monitor_dispose (GObject *object)
+{
+  PhotosTrackerChangeMonitor *self = PHOTOS_TRACKER_CHANGE_MONITOR (object);
+  PhotosTrackerChangeMonitorPrivate *priv = self->priv;
+
+  if (priv->pending != NULL)
+    {
+      g_hash_table_unref (priv->pending);
+      priv->pending = NULL;
+    }
+
+  g_clear_object (&priv->queue);
+  g_clear_object (&priv->resource_service);
+
+  G_OBJECT_CLASS (photos_tracker_change_monitor_parent_class)->dispose (object);
+}
+
+
+static void
+photos_tracker_change_monitor_init (PhotosTrackerChangeMonitor *self)
+{
+  PhotosTrackerChangeMonitorPrivate *priv;
+
+  self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
+                                            PHOTOS_TYPE_TRACKER_CHANGE_MONITOR,
+                                            PhotosTrackerChangeMonitorPrivate);
+  priv = self->priv;
+
+  priv->pending = g_hash_table_new_full (g_str_hash,
+                                         g_str_equal,
+                                         g_free,
+                                         (GDestroyNotify) photos_tracker_change_event_free);
+
+  priv->queue = photos_tracker_queue_new ();
+  priv->resource_service = tracker_resources_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
+                                                                     G_DBUS_PROXY_FLAGS_NONE,
+                                                                     "org.freedesktop.Tracker1",
+                                                                     "/org/freedesktop/Tracker1/Resources",
+                                                                     NULL,
+                                                                     NULL);
+  g_signal_connect (priv->resource_service,
+                    "graph-updated",
+                    G_CALLBACK (photos_tracker_change_monitor_graph_updated),
+                    self);
+}
+
+
+static void
+photos_tracker_change_monitor_class_init (PhotosTrackerChangeMonitorClass *class)
+{
+  GObjectClass *object_class = G_OBJECT_CLASS (class);
+
+  object_class->constructor = photos_tracker_change_monitor_constructor;
+  object_class->dispose = photos_tracker_change_monitor_dispose;
+
+  signals[CHANGES_PENDING] = g_signal_new ("changes-pending",
+                                           G_TYPE_FROM_CLASS (class),
+                                           G_SIGNAL_RUN_LAST,
+                                           G_STRUCT_OFFSET (PhotosTrackerChangeMonitorClass, changes_pending),
+                                           NULL, /*accumulator */
+                                           NULL, /*accu_data */
+                                           g_cclosure_marshal_VOID__BOXED,
+                                           G_TYPE_HASH_TABLE,
+                                           0);
+
+  g_type_class_add_private (class, sizeof (PhotosTrackerChangeMonitorPrivate));
+}
+
+
+PhotosTrackerChangeMonitor *
+photos_tracker_change_monitor_new (void)
+{
+  return g_object_new (PHOTOS_TYPE_TRACKER_CHANGE_MONITOR, NULL);
+}
diff --git a/src/photos-tracker-change-monitor.h b/src/photos-tracker-change-monitor.h
new file mode 100644
index 0000000..2946c6c
--- /dev/null
+++ b/src/photos-tracker-change-monitor.h
@@ -0,0 +1,75 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright  2012 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+#ifndef PHOTOS_TRACKER_CHANGE_MONITOR_H
+#define PHOTOS_TRACKER_CHANGE_MONITOR_H
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define PHOTOS_TYPE_TRACKER_CHANGE_MONITOR (photos_tracker_change_monitor_get_type ())
+
+#define PHOTOS_TRACKER_CHANGE_MONITOR(obj) \
+  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+   PHOTOS_TYPE_TRACKER_CHANGE_MONITOR, PhotosTrackerChangeMonitor))
+
+#define PHOTOS_TRACKER_CHANGE_MONITOR_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_CAST ((klass), \
+   PHOTOS_TYPE_TRACKER_CHANGE_MONITOR, PhotosTrackerChangeMonitorClass))
+
+#define PHOTOS_IS_TRACKER_CHANGE_MONITOR(obj) \
+  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+   PHOTOS_TYPE_TRACKER_CHANGE_MONITOR))
+
+#define PHOTOS_IS_TRACKER_CHANGE_MONITOR_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+   PHOTOS_TYPE_TRACKER_CHANGE_MONITOR))
+
+#define PHOTOS_TRACKER_CHANGE_MONITOR_GET_CLASS(obj) \
+  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+   PHOTOS_TYPE_TRACKER_CHANGE_MONITOR, PhotosTrackerChangeMonitorClass))
+
+typedef struct _PhotosTrackerChangeMonitor        PhotosTrackerChangeMonitor;
+typedef struct _PhotosTrackerChangeMonitorClass   PhotosTrackerChangeMonitorClass;
+typedef struct _PhotosTrackerChangeMonitorPrivate PhotosTrackerChangeMonitorPrivate;
+
+struct _PhotosTrackerChangeMonitor
+{
+  GObject parent_instance;
+  PhotosTrackerChangeMonitorPrivate *priv;
+};
+
+struct _PhotosTrackerChangeMonitorClass
+{
+  GObjectClass parent_class;
+
+  /* signals */
+  void (*changes_pending) (PhotosTrackerChangeMonitor *self, GHashTable *changes);
+};
+
+GType                        photos_tracker_change_monitor_get_type         (void) G_GNUC_CONST;
+
+PhotosTrackerChangeMonitor  *photos_tracker_change_monitor_new              (void);
+
+G_END_DECLS
+
+#endif /* PHOTOS_TRACKER_CHANGE_MONITOR_H */
diff --git a/src/photos-tracker-resources.xml b/src/photos-tracker-resources.xml
new file mode 100644
index 0000000..c761ab1
--- /dev/null
+++ b/src/photos-tracker-resources.xml
@@ -0,0 +1,33 @@
+<!DOCTYPE node PUBLIC
+"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+
+<!--
+ Photos - access, organize and share your photos on GNOME
+ Copyright  2012 Red Hat, Inc.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+-->
+
+<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd";>
+  <interface name="org.freedesktop.Tracker1.Resources">
+    <signal name="GraphUpdated">
+      <arg name="className" type="s" />
+      <arg name="deleteEvents" type="a(iiii)" />
+      <arg name="insertEvents" type="a(iiii)" />
+    </signal>
+  </interface>
+</node>



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