Add user to roster
this.add = function( user )
Wrapper for Strophe.Connection.addHandler() to add a stanza handler for the connection.
self.addHandler = function( handler, ns, name, type, id, from, options )
Add the ignore icon to the roster item of the specified user
addIgnoreIcon: function( roomJid, userJid )
Add an observer to the observer list
self.addObserver = function( key, obj )
Add a tab to the chat pane.
addTab: function( roomJid, roomName, roomType )
Convenience function for adding/removing users from ignore list.
this.addToOrRemoveFromPrivacyList = function( list, jid )
Display admin message
adminMessage: function( subject, message )
Called when after a the context menu is rendered
afterContextMenu: function( args )
Does everything of the parser: escaping, linkifying and emotifying.
all: function( text )
All tabs closed event: Disconnect from service.
allTabsClosed: function()
Append a new message to the message pane.
appendToMessagePane: function( roomJid, html )
Attach an already binded & connected session to the server
self.attach = function( jid, sid, rid )
When Candy.Core.getOptions().autojoin is true, request autojoin bookmarks (OpenFire)
Autojoin: function()
Called before a message get sent
beforeSend: function( message )
Called before a new message will be shown.
beforeShow: function( args )
Acts on a bookmarks event.
Bookmarks: function( msg )
Deletes all observers in list
self.clearObservers = function( key )
Clear unread message count in a tab.
clearUnreadMessages: function( roomJid )
Clear unread message count in window title.
clearUnreadMessages: function()
Close a room and remove everything in the DOM belonging to this room.
close: function( roomJid )
Connect to the jabber host.
self.connect = function( jidOrHost, password, nick )
Acts on strophe status events and notifies view.
Connect: function( status )
Tests if a cookie with the given name exists
self.cookieExists = function( name )
Crop a string with the specified length
self.crop = function( str, len )
Deletes a cookie with the given name
self.deleteCookie = function( name )
Delete observer from list
self.deleteObserver = function( key, obj )
Requests disco info of a room.
Disco: function( roomJid )
Sets informations to rooms according to the disco info received.
Disco: function( msg )
Leave all rooms and disconnect
self.disconnect = function()
Replaces text-emoticons with their image equivalent.
emotify: function( text )
Escapes a text using a jQuery function (like htmlspecialchars in PHP)
escape: function( text )
Escapes a jid (node & resource get escaped)
self.escapeJid = function( jid )
Fit tab size according to window size
fitTabs: function()
Fix IE7 not redrawing under some circumstances.
self.forceRedraw = function( elem )