diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-08 03:15:10 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-08 03:15:10 (GMT) |
commit | a39086067c99ab691f704017ff853250469aa91a (patch) | |
tree | 7e7ad0598f5cdfc477aa08f9b833afb8cdf3b2ac /test/samples/uscxml | |
parent | 9629ef3f969e31dfd19efa27e62487fc46610416 (diff) | |
download | uscxml-a39086067c99ab691f704017ff853250469aa91a.zip uscxml-a39086067c99ab691f704017ff853250469aa91a.tar.gz uscxml-a39086067c99ab691f704017ff853250469aa91a.tar.bz2 |
Updated IM invoker for latest libpurple
Diffstat (limited to 'test/samples/uscxml')
-rw-r--r-- | test/samples/uscxml/test-instant-messaging.scxml | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/test/samples/uscxml/test-instant-messaging.scxml b/test/samples/uscxml/test-instant-messaging.scxml index 588b2b7..e7f8555 100644 --- a/test/samples/uscxml/test-instant-messaging.scxml +++ b/test/samples/uscxml/test-instant-messaging.scxml @@ -12,30 +12,41 @@ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" /> <state id="idle"> <onentry> - <send event="dump" delay="100ms" /> + <!-- <send event="dump" delay="100ms" /> --> </onentry> <invoke type="instant-messaging" id="im"> <param name="username" expr="'uscxml@localhost'" /> - <param name="password" expr="'password'" /> + <param name="password" expr="'uscxml'" /> <param name="protocol" expr="'prpl-jabber'" /> <finalize> - <script>print("-----------------\n"); dump(_event);</script> + <script> + print("-----------------\n"); + dump(_event);</script> </finalize> </invoke> - <state id="dump"> + <!-- <state id="dump"> <transition event="dump" target="dump"> <send event="dump" delay="1000ms" /> <script>//dump(_invokers['im']);</script> </transition> - </state> + </state> --> + + <transition event="im.buddy.status.changed"> + <!-- <script>print("\n\n"); dump(_invokers['im']);</script> --> + </transition> - <transition event="im.buddy.status.changed" cond="_event.data.name === 'sradomski@localhost'"> + <transition event="im.signed.on"> + <!-- <send target="#_im" event="im.buddy.add"> + <param name="name" expr="'sradomski@localhost'" /> + <param name="msg" expr="'Please add me as a contact!'" /> + </send> + <script>print("\n\n"); dump(_invokers['im']);</script> --> <send target="#_im" event="im.send"> <param name="receiver" expr="'sradomski@localhost'" /> - <param name="data" expr="someBinaryData" /> - <content>Hey There!</content> + <param name="data" expr="someBinaryData" /> <!-- Unsupported :( --> + <content><![CDATA[Have a look <a href="http://www.heise.de">here</a>]]></content> </send> </transition> |