Namespace: gui

jsxc. gui

Handle functions for chat window's and buddylist
Source:

Namespaces

dialog
queryActions
roster
window

Members

<static> emotions

Smilie token to file mapping
Source:

Methods

<static> _unreadMsg(bid, count)

Switch read state to UNread.
Parameters:
Name Type Description
bid
count
Source:

<static> changePresence(pres, external)

Change own presence to pres.
Parameters:
Name Type Description
pres CONST.STATUS New presence state
external boolean True if triggered from other tab.
Source:

<static> detectUriScheme(container)

This function searches for URI scheme according to XEP-0147.
Parameters:
Name Type Description
container In which element should we search?
Source:

<static> getWindow(bid) → {jquery}

Returns the window element
Parameters:
Name Type Description
bid String
Deprecated:
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
str string 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
msg type message to display to the user
Source:
Returns:
Type
undefined

<static> showApproveDialog(from)

Create and show approve dialog
Parameters:
Name Type Description
from type 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
msg String Message
confirm function
dismiss function
Source:
Returns:
Type
undefined

<static> showContactDialog(username)

Create and show dialog to add a buddy
Parameters:
Name Type Argument Description
username string <optional>
jabber id
Source:

<static> showDebugLog()

Show debug log.
Source:

<static> showFingerprints(bid)

Creates and show the fingerprint dialog
Parameters:
Name Type Description
bid String
Source:

<static> showLoginBox()

Creates and show loginbox
Source:

<static> showRemoveDialog(bid) → {undefined}

Create and show dialog to remove a buddy
Parameters:
Name Type Description
bid type
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
jid String
Source:

<static> showVerification(bid)

Creates and show the verification dialog
Parameters:
Name Type Description
bid String
Source:

<static> showVideoWindow()

Display window for video call.
Source:

<static> showWaitAlert(msg) → {undefined}

Create and show a wait dialog
Parameters:
Name Type Description
msg type 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
selector String 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
bid String bar jid
Source:

<static> updateAvatar(el, jid, aid)

Update avatar on all given elements.
Parameters:
Name Type Description
el jQuery Elements with subelement .jsxc_avatar
jid string Jid
aid string Avatar id (sha1 hash of image)
Source:

<static> updatePresence(bid, pres)

Update all presence objects for given user.
Parameters:
Name Type Description
bid bar jid of user.
pres CONST.STATUS New presence state.
Source:

<static> updateWindowListSB()

Updates scrollbar handlers.
Source: