restartBox.js File Reference

A reusable restart box. More...

Go to the source code of this file.

Functions

Components utils import ("resource://app/jsmodules/StringUtils.jsm")
 
function sbRestartBox (title, message)
 Display a restart message box with a title and message. More...
 
function sbRestartBox_strings (titlestring, msgstring, defaulttitle, defaultmsg)
 Display a restart message box using strings from the songbird.properties locale file. More...
 

Variables

const SB_RESTARTBOX_RESTARTLATER = 0
 
const SB_RESTARTBOX_RESTARTNOW = 1
 
const SB_RESTARTBOX_RESTARTEOP = 2
 

Detailed Description

A reusable restart box.

Definition in file restartBox.js.

Function Documentation

Components utils import ( "resource://app/jsmodules/StringUtils.jsm"  )
function sbRestartBox (   title,
  message 
)

Display a restart message box with a title and message.

Parameters
titleThe title of the restart message box.
messageThe message for the restart message box.
Returns
Success code: -1, 0, 1, or 2.
Return values
-1Error.
0Restart later.
1Restart now.
2Restart at end of playback.

Definition at line 52 of file restartBox.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function sbRestartBox_strings (   titlestring,
  msgstring,
  defaulttitle,
  defaultmsg 
)

Display a restart message box using strings from the songbird.properties locale file.

Parameters
titlestringThe title string key.
msgstringThe message string key.
defaulttitleThe default title.
defaultmsgThe default message.
Returns
Success code: -1, 0, 1, or 2.
Return values
-1Error.
0Restart later.
1Restart now.
2Restart at end of playback.

Definition at line 102 of file restartBox.js.

Here is the call graph for this function:

Variable Documentation

const SB_RESTARTBOX_RESTARTEOP = 2

Definition at line 40 of file restartBox.js.

const SB_RESTARTBOX_RESTARTLATER = 0

Definition at line 38 of file restartBox.js.

const SB_RESTARTBOX_RESTARTNOW = 1

Definition at line 39 of file restartBox.js.