diff src/bridge/bridge_constructor/bridge_template.ini @ 425:e4e9187e3b5b

backend, bridge: asynchronous history quick_frontend: use of asynchronous history
author Goffi <goffi@goffi.org>
date Tue, 08 Nov 2011 01:08:11 +0100
parents 6c20c76abdcc
children 17c7e48bf68f
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Mon Nov 07 22:27:07 2011 +0100
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Tue Nov 08 01:08:11 2011 +0100
@@ -434,15 +434,18 @@
 doc_return=list of categories
 
 [getHistory]
+async=
 type=method
 category=core
-sig_in=ssi
-sig_out=a{i(ss)}
+sig_in=ssib
+sig_out=a{i(sss)}
+param_3_default=True
 doc=Get history of a communication between two entities
-doc_param_0=from_jid: source JID
-doc_param_1=to_jid: dest JID
-doc_param_2=size: size of the history (0 for the whole history)
-doc_return=Dict where key is timestamp (seconds this the Epoch), and value is a tuple (from_jid, message)
+doc_param_0=from_jid: source JID (bare jid for catch all, full jid else)
+doc_param_1=to_jid: dest JID (bare jid for catch all, full jid else)
+doc_param_2=limit: max number of history elements to get (0 for the whole history)
+doc_param_3=between: True if we want history between the two jids (in both direction), False if we only want messages from from_jid to to_jid
+doc_return=Dict where key is timestamp (seconds this the Epoch), and value is a tuple (full from_jid, full to_jid, message)
 
 [addContact]
 type=method