A reusable restart box.
More...
Go to the source code of this file.
|
| 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...
|
| |
A reusable restart box.
Definition in file restartBox.js.
| Components utils import |
( |
"resource://app/jsmodules/StringUtils.jsm" |
| ) |
|
| function sbRestartBox |
( |
|
title, |
|
|
|
message |
|
) |
| |
Display a restart message box with a title and message.
- Parameters
-
| title | The title of the restart message box. |
| message | The message for the restart message box. |
- Returns
- Success code: -1, 0, 1, or 2.
- Return values
-
| -1 | Error. |
| 0 | Restart later. |
| 1 | Restart now. |
| 2 | Restart at end of playback. |
Definition at line 52 of file restartBox.js.
| function sbRestartBox_strings |
( |
|
titlestring, |
|
|
|
msgstring, |
|
|
|
defaulttitle, |
|
|
|
defaultmsg |
|
) |
| |
Display a restart message box using strings from the songbird.properties locale file.
- Parameters
-
| titlestring | The title string key. |
| msgstring | The message string key. |
| defaulttitle | The default title. |
| defaultmsg | The default message. |
- Returns
- Success code: -1, 0, 1, or 2.
- Return values
-
| -1 | Error. |
| 0 | Restart later. |
| 1 | Restart now. |
| 2 | Restart at end of playback. |
Definition at line 102 of file restartBox.js.
| const SB_RESTARTBOX_RESTARTEOP = 2 |
| const SB_RESTARTBOX_RESTARTLATER = 0 |
| const SB_RESTARTBOX_RESTARTNOW = 1 |