32 Components.utils.import(
"resource://app/jsmodules/StringUtils.jsm");
56 var restartbox_data =
new Object();
58 var state =
gMM.status.state;
60 restartbox_data.title = title;
61 restartbox_data.message =
message;
62 restartbox_data.playing = state == sbIMediacoreStatus.STATUS_PLAYING ||
63 state == sbIMediacoreStatus.STATUS_BUFFERING;
64 restartbox_data.ret = 0;
65 SBOpenModalDialog(
"chrome://songbird/content/xul/restartBox.xul",
"restartbox",
"chrome,centerscreen", restartbox_data );
67 switch (restartbox_data.ret)
70 restartOnPlaybackEnd.boolValue =
false;
73 restartOnPlaybackEnd.boolValue =
false;
77 restartOnPlaybackEnd.boolValue =
true;
80 return restartbox_data.ret;
84 alert(
"sbRestartBox - " + err);
function SBBrandedString(aKey, aDefault, aStringBundle)
const SB_RESTARTBOX_RESTARTNOW
const SB_RESTARTBOX_RESTARTEOP
function SBDataSetBoolValue(aKey, aBoolValue)
Set a boolean value. Changes the value of the data remote to the boolean passed in, regardless of its value before.
const SB_RESTARTBOX_RESTARTLATER
function sbRestartBox(title, message)
Display a restart message box with a title and message.
function sbRestartBox_strings(titlestring, msgstring, defaulttitle, defaultmsg)
Display a restart message box using strings from the songbird.properties locale file.