diff src/bridge/bridge_constructor/bridge_template.ini @ 541:8b116fa42a31

core, bridge: waiting confirmation management (new getWaitingConf method)
author Goffi <goffi@goffi.org>
date Wed, 14 Nov 2012 20:24:28 +0100
parents 2c4016921403
children 952322b1d490
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Mon Nov 12 10:55:44 2012 +0100
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Wed Nov 14 20:24:28 2012 +0100
@@ -108,10 +108,10 @@
 category=core
 sig_in=ssa{ss}s
 doc=A confirmation is needed for an action
-doc_param_0=conf_type: Type of the confirmation, can be:
+doc_param_0=id: Id of the confirmation query
+doc_param_1=conf_type: Type of the confirmation, can be:
  - YES/NO: A question which need a yes or no answer
  - FILE_TRANSFER: A confirmation is needed before transfering a file
-doc_param_1=id: Id of the confirmation query
 doc_param_2=data: conf_type dependent data
 doc_param_3=%(doc_profile)s
 
@@ -331,6 +331,16 @@
 doc_param_0=%(doc_profile_key)s
 doc_return=Dict where contact JID is the key, and value is the subscription type
 
+[getWaitingConf]
+type=method
+category=core
+sig_in=s
+sig_out=a(ssa{ss})
+doc=Get confirmations requests in queue
+doc_param_0=%(doc_profile_key)s
+doc_return=List of confirmation request data, same as for [askConfirmation]
+
+
 [sendMessage]
 type=method
 category=core