[gnome-online-miners/wip/rishi/insert-share: 19/20] application: Handle InsertSharedContent
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-miners/wip/rishi/insert-share: 19/20] application: Handle InsertSharedContent
- Date: Mon, 5 Sep 2016 13:13:23 +0000 (UTC)
commit 1057c26abcfb5974c654bca44b1255845090f421
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]