Class Xmpp4Js.Chat.ChatManager

Defined in ChatManager.js

Manages chat conversations for a given connection.


Field Summary
object chats
          An array of Chat objects.
boolean options.ignoreResource
          only applies to finding chats.
boolean options.ignoreThread
          only applies to finding chats.
 
Constructor Summary
Xmpp4Js.Chat.ChatManager(con)
            Automatically registers events on connection.
 
Method Summary
closeChat(chat)
           Closes a given chat, and sends events.
  createChat(jid, listener, )
           Creates a new chat and returns it, and fires the chatStarted event.
 Xmpp4Js.Chat.Chat findBestChat(msg, isOutgoing, ignoreResource)
           Get or return a Chat object using a given message.
  getConnection()
           The connection that this ChatManager is associated with.
  getOptions()
           Get options associated with this ChatManager.
  getThreadChat(thread)
           Returns a chat by thread ID
  getUserChat(jid)
           Gets a chat by Jid
setOptions(options)
           Set options.
 
Field Detail

chats

object chats

options.ignoreResource

boolean options.ignoreResource

options.ignoreThread

boolean options.ignoreThread

Constructor Detail

Xmpp4Js.Chat.ChatManager

Xmpp4Js.Chat.ChatManager(con)

Method Detail

closeChat

closeChat(chat)

createChat

 createChat(jid, listener, )

findBestChat

Xmpp4Js.Chat.Chat findBestChat(msg, isOutgoing, ignoreResource)

getConnection

 getConnection()

getOptions

 getOptions()

getThreadChat

 getThreadChat(thread)

getUserChat

 getUserChat(jid)

setOptions

setOptions(options)

Documentation generated by JsDoc Toolkit 1.4.1 on Tue Aug 26 2008 14:35:54 GMT-0500 (CDT)