diff src/bridge/bridge_constructor/bridge_template.ini @ 1592:d6d655238a93

bridge: new core method profileStartSession to start a session without connecting the profile
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2015 19:18:10 +0100
parents 698d6755d62a
children a3d0cfa5b7a6
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Sat Nov 14 19:18:10 2015 +0100
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Sat Nov 14 19:18:10 2015 +0100
@@ -298,6 +298,30 @@
         - False if the XMPP connection has been initiated (it may still fail)
     - failure if the profile authentication failed
 
+[profileStartSession]
+async=
+type=method
+category=core
+sig_in=ss
+sig_out=b
+param_0_default=''
+param_1_default="@DEFAULT@"
+doc=Start a profile session without connecting it (if it's not already the case)
+doc_param_0=password: the SàT profile password
+doc_param_1=%(doc_profile_key)s
+doc_return=D(bool):
+        - True if the profile session was already started
+        - False else
+
+[profileIsSessionStarted]
+type=method
+category=core
+sig_in=s
+sig_out=b
+param_0_default="@DEFAULT@"
+doc=Tell if a profile session is loaded
+doc_param_0=%(doc_profile_key)s
+
 [disconnect]
 type=method
 category=core