comparison src/bridge/bridge_constructor/bridge_template.ini @ 538:2c4016921403

core, frontends, bridgen plugins: fixed methods which were unproperly managing multi-profiles - added profile argument to askConfirmation, actionResult, actionResultExt, entityDataUpdated, confirmationAnswer, getProgress - core, frontends: fixed calls/signals according to new bridge API - user of proper profile namespace for progression indicators and dialogs - memory: getParam* now return bool when param type is bool - memory: added getStringParam* to return string instead of typed value - core, memory, storage, quick_frontend: getHistory now manage properly multi-profiles - plugins XEP-0047, XEP-0054, XEP-0065, XEP-0077, XEP-0096; multi-profiles proper handling
author Goffi <goffi@goffi.org>
date Sat, 10 Nov 2012 16:38:16 +0100
parents 8ee9113d307b
children 8b116fa42a31
comparison
equal deleted inserted replaced
537:28cddc96c4ed 538:2c4016921403
104 doc_param_1=%(doc_profile)s 104 doc_param_1=%(doc_profile)s
105 105
106 [askConfirmation] 106 [askConfirmation]
107 type=signal 107 type=signal
108 category=core 108 category=core
109 sig_in=ssa{ss} 109 sig_in=ssa{ss}s
110 doc=A confirmation is needed for an action 110 doc=A confirmation is needed for an action
111 doc_param_0=conf_type: Type of the confirmation, can be: 111 doc_param_0=conf_type: Type of the confirmation, can be:
112 - YES/NO: A question which need a yes or no answer 112 - YES/NO: A question which need a yes or no answer
113 - FILE_TRANSFER: A confirmation is needed before transfering a file 113 - FILE_TRANSFER: A confirmation is needed before transfering a file
114 doc_param_1=id: Id of the confirmation query 114 doc_param_1=id: Id of the confirmation query
115 doc_param_2=data: conf_type dependent data 115 doc_param_2=data: conf_type dependent data
116 doc_param_3=%(doc_profile)s
116 117
117 [actionResult] 118 [actionResult]
118 type=signal 119 type=signal
119 category=core 120 category=core
120 sig_in=ssa{ss} 121 sig_in=ssa{ss}s
121 doc=Requested result of an action 122 doc=Requested result of an action
122 doc_param_0=answer_type: Type of the answer, can be: 123 doc_param_0=answer_type: Type of the answer, can be:
123 - SUPPRESS: The action is managed, the id MUST be removed from queue 124 - SUPPRESS: The action is managed, the id MUST be removed from queue
124 - XMLUI: A SàT XMLUI interface is sent 125 - XMLUI: A SàT XMLUI interface is sent
125 - ERROR: Something went wrong when doing the action 126 - ERROR: Something went wrong when doing the action
126 - RESULT: General result, interpretation depend of the action 127 - RESULT: General result, interpretation depend of the action
127 doc_param_1=id: Id of the action 128 doc_param_1=id: Id of the action
128 doc_param_2=data: answer_type specific data 129 doc_param_2=data: answer_type specific data
130 doc_param_3=%(doc_profile)s
129 131
130 [actionResultExt] 132 [actionResultExt]
131 type=signal 133 type=signal
132 category=core 134 category=core
133 sig_in=ssa{sa{ss}} 135 sig_in=ssa{sa{ss}}s
134 doc=Requested result of an action (Extended) 136 doc=Requested result of an action (Extended)
135 doc_param_0=answer_type: Same as for [actionResult] but with the following additional one: 137 doc_param_0=answer_type: Same as for [actionResult] but with the following additional one:
136 - DICT_DICT: As RESULT, but returned as a dictionary of dictionary 138 - DICT_DICT: As RESULT, but returned as a dictionary of dictionary
137 doc_param_1=id: Id of the action 139 doc_param_1=id: Id of the action
138 doc_param_2=data: answer_type specific data 140 doc_param_2=data: answer_type specific data
141 doc_param_3=%(doc_profile)s
139 142
140 [entityDataUpdated] 143 [entityDataUpdated]
141 type=signal 144 type=signal
142 category=core 145 category=core
143 sig_in=ssss 146 sig_in=ssss
460 463
461 [getHistory] 464 [getHistory]
462 async= 465 async=
463 type=method 466 type=method
464 category=core 467 category=core
465 sig_in=ssib 468 sig_in=ssibs
466 sig_out=a(dssss) 469 sig_out=a(dssss)
467 param_3_default=True 470 param_3_default=True
471 param_4_default="@NONE@"
468 doc=Get history of a communication between two entities 472 doc=Get history of a communication between two entities
469 doc_param_0=from_jid: source JID (bare jid for catch all, full jid else) 473 doc_param_0=from_jid: source JID (bare jid for catch all, full jid else)
470 doc_param_1=to_jid: dest JID (bare jid for catch all, full jid else) 474 doc_param_1=to_jid: dest JID (bare jid for catch all, full jid else)
471 doc_param_2=limit: max number of history elements to get (0 for the whole history) 475 doc_param_2=limit: max number of history elements to get (0 for the whole history)
472 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 476 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
477 doc_param_4=%(doc_profile)s
473 doc_return=Ordered list (by timestamp) of tuples (timestamp, full from_jid, full to_jid, message, type) 478 doc_return=Ordered list (by timestamp) of tuples (timestamp, full from_jid, full to_jid, message, type)
474 479
475 [addContact] 480 [addContact]
476 type=method 481 type=method
477 category=core 482 category=core
517 doc_param_2=%(doc_profile_key)s 522 doc_param_2=%(doc_profile_key)s
518 523
519 [confirmationAnswer] 524 [confirmationAnswer]
520 type=method 525 type=method
521 category=core 526 category=core
522 sig_in=sba{ss} 527 sig_in=sba{ss}s
523 sig_out= 528 sig_out=
524 doc=Give answer to a confirmation request 529 doc=Give answer to a confirmation request
525 doc_param_0=id: id of the confirmation request 530 doc_param_0=id: id of the confirmation request
526 doc_param_1=accepted: True if the action is confirmed 531 doc_param_1=accepted: True if the action is confirmed
527 doc_param_2=data: action specific data 532 doc_param_2=data: action specific data
533 doc_param_3=%(doc_profile)s
528 534
529 [getProgress] 535 [getProgress]
530 type=method 536 type=method
531 category=core 537 category=core
532 sig_in=s 538 sig_in=ss
533 sig_out=a{ss} 539 sig_out=a{ss}
534 doc=Get progress information for an action 540 doc=Get progress information for an action
535 doc_param_0=id: id of the progression status 541 doc_param_0=id: id of the progression status
542 doc_param_1=%(doc_profile)s
536 doc_return=dict with progress information: 543 doc_return=dict with progress information:
537 - position: current position 544 - position: current position
538 - size: end position 545 - size: end position
539 546
540 [getMenus] 547 [getMenus]