[scriptable, uuid(a63f70c0-148b-11d3-9333-00104ba0fd40)]
interface nsIPrompt : nsISupports

Constants


          
const unsigned long BUTTON_POS_0 = 1

          
const unsigned long BUTTON_POS_1 = 256

          
const unsigned long BUTTON_POS_2 = 65536

          
const unsigned long BUTTON_TITLE_OK = 1

          
const unsigned long BUTTON_TITLE_CANCEL = 2

          
const unsigned long BUTTON_TITLE_YES = 3

          
const unsigned long BUTTON_TITLE_NO = 4

          
const unsigned long BUTTON_TITLE_SAVE = 5

          
const unsigned long BUTTON_TITLE_DONT_SAVE = 6

          
const unsigned long BUTTON_TITLE_REVERT = 7

          
const unsigned long BUTTON_TITLE_IS_STRING = 127

          
const unsigned long BUTTON_POS_0_DEFAULT = 0

          
const unsigned long BUTTON_POS_1_DEFAULT = 16777216

          
const unsigned long BUTTON_POS_2_DEFAULT = 33554432

          
const unsigned long BUTTON_DELAY_ENABLE = 67108864

          
const unsigned long STD_OK_CANCEL_BUTTONS = 513

          
const unsigned long STD_YES_NO_BUTTONS = 1027

Methods


          
void alert(in wstring dialogTitle, in wstring text)

          
void alertCheck(in wstring dialogTitle, in wstring text, in wstring checkMsg, inout boolean checkValue)

          
boolean confirm(in wstring dialogTitle, in wstring text)

          
boolean confirmCheck(in wstring dialogTitle, in wstring text, in wstring checkMsg, inout boolean checkValue)

          
PRInt32 confirmEx(in wstring dialogTitle, in wstring text, in unsigned long buttonFlags, in wstring button0Title, in wstring button1Title, in wstring button2Title, in wstring checkMsg, inout boolean checkValue)

          
boolean prompt(in wstring dialogTitle, in wstring text, inout wstring value, in wstring checkMsg, inout boolean checkValue)

          
boolean promptPassword(in wstring dialogTitle, in wstring text, inout wstring password, in wstring checkMsg, inout boolean checkValue)

          
boolean promptUsernameAndPassword(in wstring dialogTitle, in wstring text, inout wstring username, inout wstring password, in wstring checkMsg, inout boolean checkValue)

          
boolean select(in wstring dialogTitle, in wstring text, in PRUint32 count, [array, size_is(count)] in wstring selectList, out long outSelection)