comparison libervia/backend/bridge/pb.py @ 4284:3a550e9a2b55

black reformatting
author Goffi <goffi@goffi.org>
date Sun, 14 Jul 2024 16:47:45 +0200
parents 4cf98f506269
children
comparison
equal deleted inserted replaced
4283:23842a63ea00 4284:3a550e9a2b55
162 162
163 Should only be used after bridge_deactivate_signals has been called 163 Should only be used after bridge_deactivate_signals has been called
164 """ 164 """
165 self.root._bridge_reactivate_signals() 165 self.root._bridge_reactivate_signals()
166 166
167
168 def _debug(self, action, params, profile): 167 def _debug(self, action, params, profile):
169 self.send_signal("_debug", action, params, profile) 168 self.send_signal("_debug", action, params, profile)
170 169
171 def action_new(self, action_data, id, security_limit, profile): 170 def action_new(self, action_data, id, security_limit, profile):
172 self.send_signal("action_new", action_data, id, security_limit, profile) 171 self.send_signal("action_new", action_data, id, security_limit, profile)
185 184
186 def entity_data_updated(self, jid, name, value, profile): 185 def entity_data_updated(self, jid, name, value, profile):
187 self.send_signal("entity_data_updated", jid, name, value, profile) 186 self.send_signal("entity_data_updated", jid, name, value, profile)
188 187
189 def message_encryption_started(self, to_jid, encryption_data, profile_key): 188 def message_encryption_started(self, to_jid, encryption_data, profile_key):
190 self.send_signal("message_encryption_started", to_jid, encryption_data, profile_key) 189 self.send_signal(
190 "message_encryption_started", to_jid, encryption_data, profile_key
191 )
191 192
192 def message_encryption_stopped(self, to_jid, encryption_data, profile_key): 193 def message_encryption_stopped(self, to_jid, encryption_data, profile_key):
193 self.send_signal("message_encryption_stopped", to_jid, encryption_data, profile_key) 194 self.send_signal(
194 195 "message_encryption_stopped", to_jid, encryption_data, profile_key
195 def message_new(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): 196 )
196 self.send_signal("message_new", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile) 197
198 def message_new(
199 self,
200 uid,
201 timestamp,
202 from_jid,
203 to_jid,
204 message,
205 subject,
206 mess_type,
207 extra,
208 profile,
209 ):
210 self.send_signal(
211 "message_new",
212 uid,
213 timestamp,
214 from_jid,
215 to_jid,
216 message,
217 subject,
218 mess_type,
219 extra,
220 profile,
221 )
197 222
198 def message_update(self, uid, message_type, message_data, profile): 223 def message_update(self, uid, message_type, message_data, profile):
199 self.send_signal("message_update", uid, message_type, message_data, profile) 224 self.send_signal("message_update", uid, message_type, message_data, profile)
200 225
201 def notification_deleted(self, id, profile): 226 def notification_deleted(self, id, profile):
202 self.send_signal("notification_deleted", id, profile) 227 self.send_signal("notification_deleted", id, profile)
203 228
204 def notification_new(self, id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile): 229 def notification_new(
205 self.send_signal("notification_new", id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile) 230 self,
231 id,
232 timestamp,
233 type,
234 body_plain,
235 body_rich,
236 title,
237 requires_action,
238 priority,
239 expire_at,
240 extra,
241 profile,
242 ):
243 self.send_signal(
244 "notification_new",
245 id,
246 timestamp,
247 type,
248 body_plain,
249 body_rich,
250 title,
251 requires_action,
252 priority,
253 expire_at,
254 extra,
255 profile,
256 )
206 257
207 def param_update(self, name, value, category, profile): 258 def param_update(self, name, value, category, profile):
208 self.send_signal("param_update", name, value, category, profile) 259 self.send_signal("param_update", name, value, category, profile)
209 260
210 def presence_update(self, entity_jid, show, priority, statuses, profile): 261 def presence_update(self, entity_jid, show, priority, statuses, profile):