| Candy | Chats are not dead yet. |
© 2011 Amiado Group AG. All rights reserved.
| event.js | |
| Candy. | Chat Events |
| Enumerations | |
| KEYS | Observer keys |
| Candy. | Strophe-related events |
| Functions | |
| Connect | Acts on strophe status events and notifies view. |
| Login | Notify view that the login window should be displayed |
| Candy. | Jabber related events |
| Functions | |
| Version | Responds to a version request |
| Presence | Acts on a presence event |
| Bookmarks | Acts on a bookmarks event. |
| PrivacyList | Acts on a privacy list event and sets up the current privacy list of this user. |
| PrivacyListError | Acts when a privacy list error has been received. |
| Message | Acts on room, admin and server messages and notifies the view if required. |
| Candy. | Room specific events |
| Functions | |
| Leave | Leaves a room and cleans up related data and notifies view. |
| Disco | Sets informations to rooms according to the disco info received. |
| Presence | Acts on various presence messages (room leaving, room joining, error presence) and notifies view. |
| PresenceError | Acts when a presence of type error has been retrieved. |
| Message | Acts on various message events (subject changed, private chat message, multi-user chat message) and notifies view. |
Chat Events
| (Candy.Core.Event) self | itself |
| (Strophe) Strophe | Strophe |
| (jQuery) $ | jQuery |
| (Candy.Util.Observable) observable | Observable to mixin |
| Enumerations | |
| KEYS | Observer keys |
Jabber related events
| Functions | |
| Version | Responds to a version request |
| Presence | Acts on a presence event |
| Bookmarks | Acts on a bookmarks event. |
| PrivacyList | Acts on a privacy list event and sets up the current privacy list of this user. |
| PrivacyListError | Acts when a privacy list error has been received. |
| Message | Acts on room, admin and server messages and notifies the view if required. |
PrivacyList: function( msg )
Acts on a privacy list event and sets up the current privacy list of this user.
If no privacy list has been added yet, create the privacy list and listen again to this event.
| (String) msg | Raw XML Message |
| (Boolean) | false to disable the handler after first call. |
Room specific events
| Functions | |
| Leave | Leaves a room and cleans up related data and notifies view. |
| Disco | Sets informations to rooms according to the disco info received. |
| Presence | Acts on various presence messages (room leaving, room joining, error presence) and notifies view. |
| PresenceError | Acts when a presence of type error has been retrieved. |
| Message | Acts on various message events (subject changed, private chat message, multi-user chat message) and notifies view. |
Acts on strophe status events and notifies view.
Connect: function( status )
Notify view that the login window should be displayed
self.Login = function( presetJid )
Responds to a version request
Version: function( msg )
Acts on a presence event
Presence: function( msg )
Acts on a bookmarks event.
Bookmarks: function( msg )
Acts on a privacy list event and sets up the current privacy list of this user.
PrivacyList: function( msg )
Acts when a privacy list error has been received.
PrivacyListError: function( msg )
Acts on room, admin and server messages and notifies the view if required.
Message: function( msg )
Leaves a room and cleans up related data and notifies view.
Leave: function( msg )
Sets informations to rooms according to the disco info received.
Disco: function( msg )
Acts on various presence messages (room leaving, room joining, error presence) and notifies view.
Presence: function( msg )
Acts when a presence of type error has been retrieved.
PresenceError: function( msg )
Acts on various message events (subject changed, private chat message, multi-user chat message) and notifies view.
Message: function( msg )