1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00:00

Add python plugin hook docs

This commit is contained in:
James Booth 2016-07-29 00:27:14 +01:00
parent 1bc6941847
commit a308f5e4f1
2 changed files with 121 additions and 0 deletions

2
.gitignore vendored
View File

@ -68,6 +68,8 @@ apidocs/python/_build/
apidocs/python/modules.rst
apidocs/python/prof.rst
apidocs/python/src/prof.pyc
apidocs/python/plugin.rst
apidocs/python/src/plugin.pyc
apidocs/c/html/
# Temp Vim files

View File

@ -0,0 +1,119 @@
"""
Profanity plugin Hooks
"""
def prof_init(version, status, account_name, fulljid):
pass
def prof_on_start():
pass
def prof_on_shutdown():
pass
def prof_on_unload():
pass
def prof_on_connect(account_name, fulljid):
pass
def prof_on_disconnect(account_name, fulljid):
pass
def prof_pre_chat_message_display(jid, message):
pass
def prof_post_chat_message_display(jid, message):
pass
def prof_pre_chat_message_send(jid, message):
pass
def prof_post_chat_message_send(jid, message):
pass
def prof_pre_room_message_display(room, nick, message):
pass
def prof_post_room_message_display(room, nick, message):
pass
def prof_pre_room_message_send(room, message):
pass
def prof_post_room_message_send(room, message):
pass
def prof_on_room_history_message(room, nick, message, timestamp):
pass
def prof_pre_priv_message_display(room, nick, message):
pass
def prof_post_priv_message_display(room, nick, message):
pass
def prof_pre_priv_message_send(room, nick, message):
pass
def prof_post_priv_message_send(room, nick, message):
pass
def prof_on_message_stanza_send(stanza):
pass
def prof_on_message_stanza_receive(stanza):
pass
def prof_on_presence_stanza_send(stanza):
pass
def prof_on_presence_stanza_receive(stanza):
pass
def prof_on_iq_stanza_send(stanza):
pass
def prof_on_iq_stanza_receive(stanza):
pass
def prof_on_contact_offline(barejid, resource, status):
pass
def prof_on_contact_presence(barejid, resource, presence, status, priority):
pass
def prof_on_chat_win_focus(barejid):
pass
def prof_on_room_win_focus(roomjid):
pass