JSDoc: Namespace: fileTransfer

# Namespace: fileTransfer

## jsxc.fileTransfer

Source:
  - jsxc.lib.fileTransfer.js, line 1

### Methods

#### (static) fileSelected(jid, msg, file)

Callback for file selector.

##### Parameters:

Name | Type | Description
--- | --- | ---
`jid` | String |
`msg` | jQuery | jQuery object of temporary file message
`file` | File | selected file

Source:
  - jsxc.lib.fileTransfer.js, line 144

#### (static) formatByte(byte) → {String}

Make bytes more human readable.

##### Parameters:

Name | Type | Description
--- | --- | ---
`byte` | Integer |

Source:
  - jsxc.lib.fileTransfer.js, line 14

##### Returns:

Type
  String

#### (static) selectResource(bid, success_cb, error_cb)

Show select dialog for file transfer capable resources.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String |
`success_cb` | function | Called if user selects resource
`error_cb` | function | Called if no resource was found or selected

Source:
  - jsxc.lib.fileTransfer.js, line 63

#### (static) showFileSelection(jid)

Show file selector.

##### Parameters:

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

Source:
  - jsxc.lib.fileTransfer.js, line 102

#### (static) startGuiAction(jid)

Start file transfer dialog.

##### Parameters:

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

Source:
  - jsxc.lib.fileTransfer.js, line 34

#### (static) updateIcons(bid)

Enable/disable icons for file transfer.

##### Parameters:

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

Source:
  - jsxc.lib.fileTransfer.js, line 239