[gnome-online-miners/wip/rishi/insert-share: 14/16] application: Handle InsertSharedContent



commit 7f52d57126f3eefca4820a25ef55cbc9f654575b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Sep 2 18:23:00 2016 +0200

    application: Handle InsertSharedContent

 src/gom-application.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/gom-application.c b/src/gom-application.c
index c10479a..0448247 100644
--- a/src/gom-application.c
+++ b/src/gom-application.c
@@ -111,6 +111,17 @@ gom_application_refresh_db_cb (GObject *source,
 }
 
 static gboolean
+gom_application_insert_shared_content (GomApplication *self,
+                                       GDBusMethodInvocation *invocation,
+                                       const gchar *account_id,
+                                       const gchar *shared_id,
+                                       const gchar *shared_type,
+                                       const gchar *source_urn)
+{
+  return TRUE;
+}
+
+static gboolean
 gom_application_refresh_db (GomApplication *self,
                             GDBusMethodInvocation *invocation,
                             const gchar *const *arg_index_types)
@@ -235,6 +246,10 @@ gom_application_init (GomApplication *self)
   self->cancellable = g_cancellable_new ();
 
   self->skeleton = gom_dbus_skeleton_new ();
+  g_signal_connect_swapped (self->skeleton,
+                            "handle-insert-shared-content",
+                            G_CALLBACK (gom_application_insert_shared_content),
+                            self);
   g_signal_connect_swapped (self->skeleton, "handle-refresh-db", G_CALLBACK (gom_application_refresh_db), 
self);
 
   self->queue = g_queue_new ();


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