Added stanza hooks to test plugins

This commit is contained in:
James Booth
2016-03-28 01:36:43 +01:00
parent d9e5f1f21d
commit 8ce019290f
2 changed files with 54 additions and 1 deletions

View File

@@ -2,7 +2,6 @@ import prof
import threading
import time
import sys
plugin_win = "Python Test"
@@ -422,10 +421,25 @@ def prof_on_message_stanza_send(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_message_stanza_send: " + stanza)
def prof_on_message_stanza_receive(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_message_stanza_receive: " + stanza)
return True
def prof_on_presence_stanza_send(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_presence_stanza_send: " + stanza)
def prof_on_presence_stanza_receive(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_presence_stanza_receive: " + stanza)
return True
def prof_on_iq_stanza_send(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_iq_stanza_send: " + stanza)
def prof_on_iq_stanza_receive(stanza):
_create_win()
prof.win_show(plugin_win, "fired -> prof_on_iq_stanza_receive: " + stanza)
return True