Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 _addNamespace, Candy.Core
 _addNamespaces, Candy.Core
 _delegateTooltips, Candy.View
 _initToolbar, Candy.View
 _registerObservers, Candy.View
 _registerWindowHandlers, Candy.View
 _setupTranslation, Candy.View
A
 about, Candy
 action.js
 add, Candy.Core.ChatRoster
 addHandler, Candy.Core
 addIgnoreIcon, Candy.View.Pane.Room
 addTab, Candy.View.Pane.Chat
 addToOrRemoveFromPrivacyList, Candy.Core.ChatUser
 adminMessage, Candy.View.Pane.Chat
 AFFILIATION_OWNER, Candy.Core.ChatUser
 all, Candy.Util.Parser
 allTabsClosed, Candy.View.Pane.Chat
 appendToMessagePane, Candy.View.Pane.Room
 attach, Candy.Core
 autojoin, Candy.Core
 autoscroll, Candy.View.Pane.Window
B
 Bookmarks, Candy.Core.Event.Jabber
C
 Candy
 Candy.Core
 Candy.Core.Action
 Candy.Core.Action.Jabber
 Candy.Core.Action.Jabber.Room
 Candy.Core.Action.Jabber.Room.Admin
 Candy.Core.ChatRoom
 Candy.Core.ChatRoster
 Candy.Core.ChatUser
 Candy.Core.Event
 Candy.Core.Event.Jabber
 Candy.Core.Event.Jabber.Room
 Candy.Core.Event.Strophe
 candy.js
 Candy.Util
 Candy.Util.Parser
 Candy.View
 Candy.View.Observer
 Candy.View.Observer.AutojoinMissing
 Candy.View.Observer.Chat
 Candy.View.Observer.Presence
 Candy.View.Pane
 Candy.View.Pane.Chat
 Candy.View.Pane.Context
 Candy.View.Pane.Message
 Candy.View.Pane.Modal
 Candy.View.Pane.PrivateRoom
 Candy.View.Pane.Room
 Candy.View.Pane.Toolbar
 Candy.View.Pane.Tooltip
 Candy.View.Pane.Window
 Candy.View.Template
 Candy.View.Translation
 candy:core.autojoin-missing
 candy:core.before-connect
 candy:core.chat.connection
 candy:core.chat.message.admin
 candy:core.chat.message.server
 candy:core.login
 candy:core.message
 candy:core.message.chatstate
 candy:core.presence
 candy:core.presence.error
 candy:core.presence.leave
 candy:core.presence.room
 candy:core:chat:invite
 candy:core:chat:message:normal
 candy:core:chat:message:other
 candy:view.chat.admin-message
 candy:view.connection.status-<STROPHE-STATUS>
 candy:view.message.after-show
 candy:view.message.before-render
 candy:view.message.before-send
 candy:view.message.before-show
 candy:view.presence
 candy:view.private-room.after-open
 candy:view.private-room.before-open
 candy:view.room.after-add
 candy:view.room.after-close
 candy:view.room.after-hide
 candy:view.room.after-show
 candy:view.room.after-subject-change
 candy:view.room.before-add
 candy:view.roster.after-context-menu
 candy:view.roster.after-update
 candy:view.roster.before-update
 candy:view.roster.context-menu
 changeDataUserJidIfUserIsMe, Candy.View.Pane.Room
 changeNick, Candy.View.Pane.PrivateRoom
 chatRoom.js
 chatRoster.js
 chatUser.js
 clearUnreadMessages
 close, Candy.View.Pane.Room
 connect, Candy.Core
 Connect, Candy.Core.Event.Strophe
 Connection, Candy.View.Observer.Chat
 Constants, Candy.Core.ChatUser
 cookieExists, Candy.Util
 core.js
 createHtml, Candy.Util.Parser
 crop, Candy.Util
Adds a namespace.
Adds namespaces needed by Candy.
Delegate mouseenter on tooltipified element to Candy.View.Pane.Chat.Tooltip.show.
Initialize toolbar.
Register observers.
Register window focus / blur / resize handlers.
Set dictionary using jQuery.i18n plugin.
self.about
About candy
this.add = function(user)
Add user to roster
self.addHandler = function(handler,
ns,
name,
type,
id,
from,
options)
Wrapper for Strophe.Connection.addHandler() to add a stanza handler for the connection.
addIgnoreIcon: function(roomJid,
userJid)
Add the ignore icon to the roster item of the specified user
addTab: function(roomJid,
roomName,
roomType)
Add a tab to the chat pane.
this.addToOrRemoveFromPrivacyList = function(list,
jid)
Convenience function for adding/removing users from ignore list.
adminMessage: function(subject,
message)
Display admin message
Affiliation owner
all: function(text)
Does everything of the parser: escaping, linkifying and emotifying.
allTabsClosed: function()
All tabs closed event: Disconnect from service.
appendToMessagePane: function(roomJid,
html)
Append a new message to the message pane.
self.attach = function(jid,
sid,
rid)
Attach an already binded & connected session to the server
autojoin: undefined
If set to `true` try to get the bookmarks and autojoin the rooms (supported by ejabberd, Openfire).
autoscroll: true
Boolean whether autoscroll is enabled
Bookmarks: function(msg)
Acts on a bookmarks event.
Candy base class for initalizing the view and the core
Candy Chat Core
Chat Actions (basicly a abstraction of Jabber commands)
Jabber actions
Room-specific commands
Room administration commands
Candy Chat Room
Chat Roster
Chat User
Chat Events
Jabber related events
Room specific events
Strophe-related events
Candy utils
Parser for emoticons, links and also supports escaping.
The Candy View Class
Observes Candy core events
Displays an error about missing autojoin information
Chat events
Presence update events
Candy view pane handles everything regarding DOM updates etc.
Chat-View related view updates
Context menu for actions and settings
Message submit/show handling
Modal window
Private room handling
Everything which belongs to room view things belongs here.
Chat toolbar for things like emoticons toolbar, room management etc.
Class to display tooltips over specific elements
Window related view updates
Contains mustache.js templates
Contains translations
Triggered when no autojoin information has been found
Triggered before a connection attempt is made.
Connection status updates
Admin message
Server message (e.g.
Triggered when the login window should be displayed
Triggers on various message events (subject changed, private chat message, multi-user chat message).
Triggers on any recieved chatstate notification.
Presence updates.
Triggered when a presence error happened
When the local client leaves a room
Room presence updates
Incoming chat invite for a MUC.
Messages with the type attribute of normal or those that do not have the optional type attribute.
Messages with a type other than the ones listed in RFC3921 section 2.1.1.
After admin message display
Using this event, you can alter the default Candy (View) behaviour when reacting to connection updates.
Triggered after showing a message
Before rendering the message element
Before sending a message
Before showing a new message
Presence update when kicked or banned
After opening a new private room
Before opening a new private room
After initialising a room
After closing a room
After hiding a room
After showing a room
After changing the subject of a room
Before initialising a room
After context menu display
After updating a room’s roster
Before updating the roster of a room
Modify existing menu links (add links)
changeDataUserJidIfUserIsMe: function(roomId,
user)
Changes the room’s data-userjid attribute if the specified user is the current user.
changeNick: function changeNick(roomJid,
user)
Changes the nick for every private room opened with this roomJid.
clearUnreadMessages: function(roomJid)
Clear unread message count in a tab.
clearUnreadMessages: function()
Clear unread message count in window title.
close: function(roomJid)
Close a room and remove everything in the DOM belonging to this room.
self.connect = function(jidOrHost,
password,
nick)
Connect to the jabber host.
Connect: function(status)
Acts on strophe status events and notifies view.
Connection: function(event,
args)
The update method gets called whenever an event to which “Chat” is subscribed.
self.cookieExists = function(name)
Tests if a cookie with the given name exists
self.createHtml = function(elem,
maxLength,
currentLength)
Copy an HTML DOM element into an XML DOM.
self.crop = function(str,
len)
Crop a string with the specified length
Close