JSDoc: Namespace: gui

# Namespace: gui

## jsxc.gui

Handle functions for chat window's and buddylist

Source:
  - jsxc.lib.gui.js, line 2

### Namespaces

dialog
queryActions
roster
window

### Members

#### (static) emotions

Smilie token to file mapping

Source:
  - jsxc.lib.gui.js, line 9

### Methods

#### (static) _unreadMsg(bid, count)

Switch read state to UNread.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` |  |
`count` |  |

Source:
  - jsxc.lib.gui.js, line 1252

#### (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:
  - jsxc.lib.gui.js, line 1166

#### (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:
  - jsxc.lib.gui.js, line 1305

#### (static) getWindow(bid) → {jquery}

Returns the window element

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String |

Deprecated:
  - Use jsxc.gui.window.get instead.
Source:
  - jsxc.lib.gui.js, line 311

##### Returns:

jQuery object of the window element

Type
  jquery

#### (static) init()

Creates application skeleton.

Source:
  - jsxc.lib.gui.js, line 113

#### (static) readMsg(bid)

Switch read state to read.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` |  |

Source:
  - jsxc.lib.gui.js, line 1274

#### (static) scrollWindowListBy(offset)

Scroll window list by offset.

##### Parameters:

Name | Type | Description
--- | --- | ---
`offset` |  |

Source:
  - jsxc.lib.gui.js, line 281

#### (static) shortnameToImage(str) → {string}

Replace shortname emoticons with images.

##### Parameters:

Name | Type | Description
--- | --- | ---
`str` | string | text with emoticons as shortname

Source:
  - jsxc.lib.gui.js, line 1471

##### Returns:

text with emoticons as images

Type
  string

#### (static) showAboutDialog()

Show about dialog.

Source:
  - jsxc.lib.gui.js, line 770

#### (static) showAlert(msg) → {undefined}

Create and show a wait dialog

##### Parameters:

Name | Type | Description
--- | --- | ---
`msg` | type | message to display to the user

Source:
  - jsxc.lib.gui.js, line 718

##### Returns:

Type
  undefined

#### (static) showApproveDialog(from)

Create and show approve dialog

##### Parameters:

Name | Type | Description
--- | --- | ---
`from` | type | valid jid

Source:
  - jsxc.lib.gui.js, line 567

#### (static) showAuthFail() → {undefined}

Create and show a auth fail dialog

Source:
  - jsxc.lib.gui.js, line 727

##### 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:
  - jsxc.lib.gui.js, line 751

##### Returns:

Type
  undefined

#### (static) showContactDialog(usernameopt)

Create and show dialog to add a buddy

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`username` | string | <optional> | jabber id

Source:
  - jsxc.lib.gui.js, line 601

#### (static) showDebugLog()

Show debug log.

Source:
  - jsxc.lib.gui.js, line 783

#### (static) showFingerprints(bid)

Creates and show the fingerprint dialog

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String |

Source:
  - jsxc.lib.gui.js, line 433

#### (static) showLoginBox()

Creates and show loginbox

Source:
  - jsxc.lib.gui.js, line 364

#### (static) showNotification(subject, body, from)

Show notification dialog.

##### Parameters:

Name | Type | Description
--- | --- | ---
`subject` | String |
`body` | String |
`from` | String |

Source:
  - jsxc.lib.gui.js, line 1146

#### (static) showRemoveDialog(bid) → {undefined}

Create and show dialog to remove a buddy

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | type |

Source:
  - jsxc.lib.gui.js, line 678

##### Returns:

Type
  undefined

#### (static) showRequestNotification()

Show prompt for notification permission.

Source:
  - jsxc.lib.gui.js, line 1036

#### (static) showVcard(jid)

Show vCard of user with the given bar jid.

##### Parameters:

Name | Type | Description
--- | --- | ---
`jid` | String |

Source:
  - jsxc.lib.gui.js, line 815

#### (static) showVerification(bid)

Creates and show the verification dialog

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String |

Source:
  - jsxc.lib.gui.js, line 442

#### (static) showVideoWindow()

Display window for video call.

Source:
  - jsxc.lib.webrtc.js, line 1452

#### (static) showWaitAlert(msg) → {undefined}

Create and show a wait dialog

##### Parameters:

Name | Type | Description
--- | --- | ---
`msg` | type | message to display to the user

Source:
  - jsxc.lib.gui.js, line 706

##### Returns:

Type
  undefined

#### (static) toggleList()

Toggle list with timeout, like menu or settings

Source:
  - jsxc.lib.gui.js, line 322

#### (static) tooltip(selector)

Init tooltip plugin for given jQuery selector.

##### Parameters:

Name | Type | Description
--- | --- | ---
`selector` | String | jQuery selector

Source:
  - jsxc.lib.gui.js, line 176

#### (static) unreadMsg(bid)

Switch read state to UNread and increase counter.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` |  |

Source:
  - jsxc.lib.gui.js, line 1224

#### (static) update(bid)

Updates Information in roster and chatbar

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String | bar jid

Source:
  - jsxc.lib.gui.js, line 192

#### (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:
  - jsxc.lib.gui.js, line 1188

#### (static) updateWindowListSB()

Updates scrollbar handlers.

Source:
  - jsxc.lib.gui.js, line 265