65 JE_OnStanzaMessageChat,
66 JE_OnStanzaMessageGroupChat,
67 JE_OnStanzaMessageHeadline,
68 JE_OnStanzaMessageNormal,
115 CScriptCallBack(
const char* callbackScript):m_sCallbackScript(callbackScript){}
116 string m_sCallbackScript;
119 static void StaticInit();
121 void InitEventMappingTable(
bool bDisable=
false);
126 void EnableEvent(
int eEvent);
127 void DisableEvent(
int eEvent);
133 void MapEvent(
int eSrcEvent,
int eDestEvent);
137 void UnmapEvent(
int eSrcEvent,
int eDestEvent);
141 bool IsMapTo(
int eSrcEvent,
int eDestEvent)
const;
147 void UnmapEventToScript(
int eEvent);
150 void ClearAllScripts();
156 bool HasEventScript(
int eEvent)
const;
159 static int StringToEventValue(
const string &str);
160 static const string& EventValueToString(
int value);
163 bitset<JE_LAST> m_pEventEnable;
164 map<int,CScriptCallBack> m_pEventToScript;
165 set<int> m_pEventMappingTable[JE_LAST];
166 static map<string,int> StringToEventTable;
167 static map<int,string> EventToStringTable;
169 static bool g_bStaticInited;
Authentication failed.
Definition: JabberEventBinding.h:25
msg = {jckey, from=string:jid, event=number:MessageEventType}
Definition: JabberEventBinding.h:72
msg = {jckey, from=string:jid}
Definition: JabberEventBinding.h:84
msg = {jckey, from=string:jid}
Definition: JabberEventBinding.h:80
different physics engine has different winding order.
Definition: EventBinding.h:32
JabberEvents
Jabber events that a JC client can bind to.
Definition: JabberEventBinding.h:14
msg={jckey, jid=string:jid}
Definition: JabberEventBinding.h:95
Jabber event that could be bound with NPL script.
Definition: JabberEventBinding.h:104
The connection is complete, and the user is authenticated.
Definition: JabberEventBinding.h:32
a structure for holding the script callback.
Definition: JabberEventBinding.h:111
msg = {jckey, from=string:jid}
Definition: JabberEventBinding.h:88
msg = {jckey, error=int:ResourceBindError}
Definition: JabberEventBinding.h:75
The connection is disconnected or auth failed.
Definition: JabberEventBinding.h:35
Definition: enum_maker.hpp:46
msg = {jckey, from=string:jid, state=number:ChatStateType}
Definition: JabberEventBinding.h:70
msg = {jckey, state=number, issuer=string, peer=string,protocol=string,mac=string,cipher=string,compression=string,from =string,to=string}
Definition: JabberEventBinding.h:37
roster arrived.
Definition: JabberEventBinding.h:47
msg={jckey, jid=string:jid}
Definition: JabberEventBinding.h:91
We received a message packet.
Definition: JabberEventBinding.h:64
a roster item's presence arrived.
Definition: JabberEventBinding.h:55
msg = {jckey, from=string:jid}
Definition: JabberEventBinding.h:86
The connection is connected, but no stream:stream has been sent, yet.
Definition: JabberEventBinding.h:29
the user itself's presence arrived.
Definition: JabberEventBinding.h:59
msg={jckey, jid=string:jid,msg=string}
Definition: JabberEventBinding.h:93
msg = {jckey, error=int:SessionCreateError}
Definition: JabberEventBinding.h:77
msg = {jckey, from=string:jid}
Definition: JabberEventBinding.h:82