FIX Issue 227: [gsignond] Dbus interface for UI
authorAmarnath Valluri <amarnath.valluri@linux.intel.com>
Fri, 13 Feb 2015 08:50:02 +0000 (10:50 +0200)
committerAmarnath Valluri <amarnath.valluri@linux.intel.com>
Fri, 13 Feb 2015 08:50:02 +0000 (10:50 +0200)
configure.ac
dists/rpm/gsignond-suse.spec
dists/rpm/gsignond-tizen.spec
src/daemon/dbus/Makefile.am
src/daemon/dbus/interfaces/com.google.code.AccountsSSO.gSingleSignOn.UI.Dialog.xml [new file with mode: 0644]
src/daemon/dbus/interfaces/com.google.code.AccountsSSO.gSingleSignOn.UI.xml [new file with mode: 0644]

index 49cfa9a..fa6e07f 100644 (file)
@@ -95,12 +95,10 @@ elif test "x$enable_dbus_type" = "xsystem" ; then
         DBUS_SERVICES_DIR="`pkg-config --variable system_bus_services_dir dbus-1`"
     fi
 fi
-if test "x$enable_dbus_type" != "xp2p" ; then
-    if test "x$enable_distcheck" = "xyes" ; then
-        DBUS_INTERFACES_DIR="${datadir}/dbus-1/interfaces"
-    else
-        DBUS_INTERFACES_DIR="`pkg-config --variable interfaces_dir dbus-1`"
-    fi
+if test "x$enable_distcheck" = "xyes" ; then
+    DBUS_INTERFACES_DIR="${datadir}/dbus-1/interfaces"
+else
+    DBUS_INTERFACES_DIR="`pkg-config --variable interfaces_dir dbus-1`"
 fi
 
 AC_ARG_ENABLE(keychain,
index 7a2318b..1f2613e 100644 (file)
@@ -104,9 +104,7 @@ groupadd -f -r gsignond
 %{_libdir}/lib%{name}-*.so
 %{_libdir}/lib%{name}-*.la
 %{_libdir}/pkgconfig/%{name}.pc
-%if %{dbus_type} != "p2p"
 %{_datadir}/dbus-1/interfaces/*SSO*.xml
-%endif
 
 
 %files doc
index 06f5a33..15b92b7 100644 (file)
@@ -101,9 +101,7 @@ getent group gsignond > /dev/null || /usr/sbin/groupadd -r gsignond
 %{_includedir}/%{name}/*.h
 %{_libdir}/lib%{name}-*.so
 %{_libdir}/pkgconfig/%{name}.pc
-%if %{dbus_type} != "p2p"
 %{_datadir}/dbus-1/interfaces/*SSO*.xml
-%endif
 
 
 %files doc
index f3b67e3..32b6695 100644 (file)
@@ -108,7 +108,10 @@ dbusinterfacesdir = $(DBUS_INTERFACES_DIR)
 dbusinterfaces_DATA = \
     $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml \
     $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml \
-    $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml 
+    $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml \
+    $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.UI.xml \
+    $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.UI.Dialog.xml \
+    $(NULL)
 
 EXTRA_DIST = interfaces
 
diff --git a/src/daemon/dbus/interfaces/com.google.code.AccountsSSO.gSingleSignOn.UI.Dialog.xml b/src/daemon/dbus/interfaces/com.google.code.AccountsSSO.gSingleSignOn.UI.Dialog.xml
new file mode 100644 (file)
index 0000000..189dce1
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+ <interface name="com.google.code.AccountsSSO.gSingleSignOn.UI.Dialog">
+    <method name="queryDialog">
+      <arg type="a{sv}" direction="out"/>
+      <arg name="parameters" type="a{sv}" direction="in"/>
+    </method>
+    <method name="refreshDialog">
+      <arg name="parameters" type="a{sv}" direction="in"/>
+    </method>
+    <method name="cancelUiRequest">
+      <arg name="requestId" type="s" direction="in"/>
+    </method>
+    <signal name="refresh">
+      <arg name="requestId" type="s" direction="out"/>
+    </signal>
+  </interface>
+</node>
diff --git a/src/daemon/dbus/interfaces/com.google.code.AccountsSSO.gSingleSignOn.UI.xml b/src/daemon/dbus/interfaces/com.google.code.AccountsSSO.gSingleSignOn.UI.xml
new file mode 100644 (file)
index 0000000..f3b9282
--- /dev/null
@@ -0,0 +1,8 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+  <interface name="com.google.code.AccountsSSO.gSingleSignOn.UI">
+    <method name="getBusAddress">
+      <arg type="s" direction="out"/>
+    </method>
+  </interface>
+</node>