Handle functions for chat window's and buddylist
- Source:
Namespaces
Members
-
<static> emotions
-
Smilie token to file mapping
- Source:
Methods
-
<static> _unreadMsg(bid, count)
-
Switch read state to UNread.
Parameters:
Name Type Description bidcount- Source:
-
<static> changePresence(pres, external)
-
Change own presence to pres.
Parameters:
Name Type Description presCONST.STATUS New presence state externalboolean True if triggered from other tab. - Source:
-
<static> detectUriScheme(container)
-
This function searches for URI scheme according to XEP-0147.
Parameters:
Name Type Description containerIn which element should we search? - Source:
-
<static> getWindow(bid) → {jquery}
-
Returns the window element
Parameters:
Name Type Description bidString - Deprecated:
- Use jsxc.gui.window.get instead.
- Source:
Returns:
jQuery object of the window element- Type
- jquery
-
<static> init()
-
Creates application skeleton.
- Source:
-
<static> readMsg(bid)
-
Switch read state to read.
Parameters:
Name Type Description bid- Source:
-
<static> scrollWindowListBy(offset)
-
Scroll window list by offset.
Parameters:
Name Type Description offset- Source:
-
<static> shortnameToImage(str) → {string}
-
Replace shortname emoticons with images.
Parameters:
Name Type Description strstring text with emoticons as shortname - Source:
Returns:
text with emoticons as images- Type
- string
-
<static> showAboutDialog()
-
Show about dialog.
- Source:
-
<static> showAlert(msg) → {undefined}
-
Create and show a wait dialog
Parameters:
Name Type Description msgtype message to display to the user - Source:
Returns:
- Type
- undefined
-
<static> showApproveDialog(from)
-
Create and show approve dialog
Parameters:
Name Type Description fromtype valid jid - Source:
-
<static> showAuthFail() → {undefined}
-
Create and show a auth fail dialog
- Source:
Returns:
- Type
- undefined
-
<static> showConfirmDialog(msg, confirm, dismiss) → {undefined}
-
Create and show a confirm dialog
Parameters:
Name Type Description msgString Message confirmfunction dismissfunction - Source:
Returns:
- Type
- undefined
-
<static> showContactDialog(username)
-
Create and show dialog to add a buddy
Parameters:
Name Type Argument Description usernamestring <optional>
jabber id - Source:
-
<static> showDebugLog()
-
Show debug log.
- Source:
-
<static> showFingerprints(bid)
-
Creates and show the fingerprint dialog
Parameters:
Name Type Description bidString - Source:
-
<static> showLoginBox()
-
Creates and show loginbox
- Source:
-
<static> showRemoveDialog(bid) → {undefined}
-
Create and show dialog to remove a buddy
Parameters:
Name Type Description bidtype - Source:
Returns:
- Type
- undefined
-
<static> showRequestNotification()
-
Show prompt for notification permission.
- Source:
-
<static> showVcard(jid)
-
Show vCard of user with the given bar jid.
Parameters:
Name Type Description jidString - Source:
-
<static> showVerification(bid)
-
Creates and show the verification dialog
Parameters:
Name Type Description bidString - Source:
-
<static> showVideoWindow()
-
Display window for video call.
- Source:
-
<static> showWaitAlert(msg) → {undefined}
-
Create and show a wait dialog
Parameters:
Name Type Description msgtype message to display to the user - Source:
Returns:
- Type
- undefined
-
<static> toggleList()
-
Toggle list with timeout, like menu or settings
- Source:
-
<static> tooltip(selector)
-
Init tooltip plugin for given jQuery selector.
Parameters:
Name Type Description selectorString jQuery selector - Source:
-
<static> unreadMsg(bid)
-
Switch read state to UNread and increase counter.
Parameters:
Name Type Description bid- Source:
-
<static> update(bid)
-
Updates Information in roster and chatbar
Parameters:
Name Type Description bidString bar jid - Source:
-
<static> updateAvatar(el, jid, aid)
-
Update avatar on all given elements.
Parameters:
Name Type Description eljQuery Elements with subelement .jsxc_avatar jidstring Jid aidstring Avatar id (sha1 hash of image) - Source:
-
<static> updatePresence(bid, pres)
-
Update all presence objects for given user.
Parameters:
Name Type Description bidbar jid of user. presCONST.STATUS New presence state. - Source:
-
<static> updateWindowListSB()
-
Updates scrollbar handlers.
- Source: