Skip to content
ultimatebuster edited this page Jul 10, 2011 · 2 revisions

Signals is a big part for emesene2 for plugin developers. Here's a list of them (under session.signals or argument 2 of the start, stop functions in your Plugin class):

This is a dump from dir(session.signals), maybe we can fill in what the do here.

  • call_accepted
  • call_canceled
  • call_completed
  • call_invitation
  • call_progress
  • call_rejected
  • contact_add_failed
  • contact_add_succeed
  • contact_added
  • contact_added_you
  • contact_alias_failed
  • contact_alias_succeed
  • contact_attr_changed
  • Callback from this event, once subscribed are:
  • args[0] - Contact email
  • args[1] - Type of the change. Possible values are:
  • 'status' - Status change, corresponds to the values at e3.base.status
  • 'nick' - Nick change
  • 'message' - Message change
  • args[2] - Value changed, see args[1]
  • args[3] - optional, ???
  • contact_block_failed
  • contact_block_succeed
  • contact_copy_failed
  • contact_copy_succeed
  • contact_list_ready
  • contact_move_failed
  • contact_move_succeed
  • contact_reject_failed
  • contact_reject_succeed
  • contact_remove_failed
  • contact_remove_succeed
  • contact_unblock_failed
  • contact_unblock_succeed
  • conv_contact_joined
  • conv_contact_left
  • conv_ended
  • conv_first_action
  • conv_group_ended
  • conv_group_started
  • conv_message
  • conv_message_send_failed
  • conv_message_send_succeed
  • conv_started
  • disconnected
  • error
  • event_names
  • event_queue
  • events
  • filetransfer_accepted
  • filetransfer_canceled
  • filetransfer_completed
  • filetransfer_invitation
  • filetransfer_progress
  • filetransfer_rejected
  • group_add_contact_failed
  • group_add_contact_succeed
  • group_add_failed
  • group_add_succeed
  • group_remove_contact_failed
  • group_remove_contact_succeed
  • group_remove_failed
  • group_remove_succeed
  • group_rename_failed
  • group_rename_succeed
  • login_failed
  • login_info
  • login_started
  • login_succeed
  • mail_count_changed
  • mail_received
  • media_change_failed
  • media_change_succeed
  • media_received
  • message_change_failed
  • message_change_succeed
  • message_read
  • nick_change_failed
  • nick_change_succeed
  • oim_received
  • oims_data_received
  • p2p_accepted
  • p2p_canceled
  • p2p_error
  • p2p_finished
  • p2p_invitation
  • p2p_progress
  • picture_change_succeed
  • profile_get_failed
  • profile_get_succeed
  • profile_set_failed
  • profile_set_succeed
  • status_change_failed
  • status_change_succeed
  • user_typing

I don't know for sure, but I think all of these here are instances of the Signal class. Refer to this page: http://marianoguerra.com.ar/emesene/api/classemesene_1_1e3_1_1common_1_1Signal_1_1Signal.html for more info