Mercurial > libervia-backend
comparison src/bridge/bridge_constructor/bridge_template.ini @ 759:93bd868b8fb6
backend, frontends: callbacks refactoring:
- launchAction is now async, and return a dictionary for its result
- no more action_id, actionResult* are deprecated
- callback system is about to be unified
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 24 Dec 2013 15:19:08 +0100 |
parents | e3ad48a2aab2 |
children | eac23b1aad90 |
comparison
equal
deleted
inserted
replaced
758:86224a13cc1d | 759:93bd868b8fb6 |
---|---|
102 doc=A contact has been supressed from roster | 102 doc=A contact has been supressed from roster |
103 doc_param_0=entity_jid: JID of the contact removed from roster | 103 doc_param_0=entity_jid: JID of the contact removed from roster |
104 doc_param_1=%(doc_profile)s | 104 doc_param_1=%(doc_profile)s |
105 | 105 |
106 [askConfirmation] | 106 [askConfirmation] |
107 deprecated= | |
107 type=signal | 108 type=signal |
108 category=core | 109 category=core |
109 sig_in=ssa{ss}s | 110 sig_in=ssa{ss}s |
110 doc=A confirmation is needed for an action | 111 doc=A confirmation is needed for an action |
111 doc_param_0=id: Id of the confirmation query | 112 doc_param_0=id: Id of the confirmation query |
114 - FILE_TRANSFER: A confirmation is needed before transfering a file | 115 - FILE_TRANSFER: A confirmation is needed before transfering a file |
115 doc_param_2=data: conf_type dependent data | 116 doc_param_2=data: conf_type dependent data |
116 doc_param_3=%(doc_profile)s | 117 doc_param_3=%(doc_profile)s |
117 | 118 |
118 [actionResult] | 119 [actionResult] |
120 deprecated= | |
119 type=signal | 121 type=signal |
120 category=core | 122 category=core |
121 sig_in=ssa{ss}s | 123 sig_in=ssa{ss}s |
122 doc=Requested result of an action | 124 doc=Requested result of an action |
123 doc_param_0=answer_type: Type of the answer, can be: | 125 doc_param_0=answer_type: Type of the answer, can be: |
128 doc_param_1=id: Id of the action | 130 doc_param_1=id: Id of the action |
129 doc_param_2=data: answer_type specific data | 131 doc_param_2=data: answer_type specific data |
130 doc_param_3=%(doc_profile)s | 132 doc_param_3=%(doc_profile)s |
131 | 133 |
132 [actionResultExt] | 134 [actionResultExt] |
135 deprecated= | |
133 type=signal | 136 type=signal |
134 category=core | 137 category=core |
135 sig_in=ssa{sa{ss}}s | 138 sig_in=ssa{sa{ss}}s |
136 doc=Requested result of an action (Extended) | 139 doc=Requested result of an action (Extended) |
137 doc_param_0=answer_type: Same as for [actionResult] but with the following additional one: | 140 doc_param_0=answer_type: Same as for [actionResult] but with the following additional one: |
531 doc=Remove a contact from profile's roster | 534 doc=Remove a contact from profile's roster |
532 doc_param_0=entity_jid: JID to remove from roster | 535 doc_param_0=entity_jid: JID to remove from roster |
533 doc_param_1=%(doc_profile_key)s | 536 doc_param_1=%(doc_profile_key)s |
534 | 537 |
535 [launchAction] | 538 [launchAction] |
539 async= | |
536 type=method | 540 type=method |
537 category=core | 541 category=core |
538 sig_in=sa{ss}s | 542 sig_in=sa{ss}s |
539 sig_out=s | 543 sig_out=a{ss} |
540 param_2_default="@DEFAULT@" | 544 param_2_default="@DEFAULT@" |
541 doc=Launch a specific action | 545 doc=Launch a registred action |
542 doc_param_0=action_type: type of the action which can be: | 546 doc_param_0=callback_id: id of the registred callback |
543 - button: A button is pushed | 547 doc_param_1=data: optional data |
544 doc_param_1=data: action_type dependant data | |
545 doc_param_2=%(doc_profile_key)s | 548 doc_param_2=%(doc_profile_key)s |
549 doc_return=dict where key can be: | |
550 - xmlui: a XMLUI need to be displayed | |
546 | 551 |
547 [confirmationAnswer] | 552 [confirmationAnswer] |
553 deprecated= | |
548 type=method | 554 type=method |
549 category=core | 555 category=core |
550 sig_in=sba{ss}s | 556 sig_in=sba{ss}s |
551 sig_out= | 557 sig_out= |
552 doc=Give answer to a confirmation request | 558 doc=Give answer to a confirmation request |