WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/network/default-prompt;1

This component implements the following interfaces:

Constants

PRUint32 nsIAuthPrompt.SAVE_PASSWORD_NEVER = 0
PRUint32 nsIAuthPrompt.SAVE_PASSWORD_FOR_SESSION = 1
PRUint32 nsIAuthPrompt.SAVE_PASSWORD_PERMANENTLY = 2
PRUint32 nsIPrompt.BUTTON_POS_0 = 1
PRUint32 nsIPrompt.BUTTON_POS_1 = 256
PRUint32 nsIPrompt.BUTTON_POS_2 = 65536
PRUint32 nsIPrompt.BUTTON_TITLE_OK = 1
PRUint32 nsIPrompt.BUTTON_TITLE_CANCEL = 2
PRUint32 nsIPrompt.BUTTON_TITLE_YES = 3
PRUint32 nsIPrompt.BUTTON_TITLE_NO = 4
PRUint32 nsIPrompt.BUTTON_TITLE_SAVE = 5
PRUint32 nsIPrompt.BUTTON_TITLE_DONT_SAVE = 6
PRUint32 nsIPrompt.BUTTON_TITLE_REVERT = 7
PRUint32 nsIPrompt.BUTTON_TITLE_IS_STRING = 127
PRUint32 nsIPrompt.BUTTON_POS_0_DEFAULT = 0
PRUint32 nsIPrompt.BUTTON_POS_1_DEFAULT = 16777216
PRUint32 nsIPrompt.BUTTON_POS_2_DEFAULT = 33554432
PRUint32 nsIPrompt.BUTTON_DELAY_ENABLE = 67108864
PRUint32 nsIPrompt.STD_OK_CANCEL_BUTTONS = 513
PRUint32 nsIPrompt.STD_YES_NO_BUTTONS = 1027

Methods

InterfaceMethod
nsIPrompt void alert ( PRUnichar* dialogTitle , PRUnichar* text )
nsIPrompt void alertCheck ( PRUnichar* dialogTitle , PRUnichar* text , PRUnichar* checkMsg , inout PRBool checkValue )
nsIPrompt PRBool confirm ( PRUnichar* dialogTitle , PRUnichar* text )
nsIPrompt PRBool confirmCheck ( PRUnichar* dialogTitle , PRUnichar* text , PRUnichar* checkMsg , inout PRBool checkValue )
nsIPrompt PRInt32 confirmEx ( PRUnichar* dialogTitle , PRUnichar* text , PRUint32 buttonFlags , PRUnichar* button0Title , PRUnichar* button1Title , PRUnichar* button2Title , PRUnichar* checkMsg , inout PRBool checkValue )
nsIPrompt PRBool prompt ( PRUnichar* dialogTitle , PRUnichar* text , inout PRUnichar* value , PRUnichar* checkMsg , inout PRBool checkValue )
nsIPrompt PRBool promptPassword ( PRUnichar* dialogTitle , PRUnichar* text , inout PRUnichar* password , PRUnichar* checkMsg , inout PRBool checkValue )
nsIPrompt PRBool promptUsernameAndPassword ( PRUnichar* dialogTitle , PRUnichar* text , inout PRUnichar* username , inout PRUnichar* password , PRUnichar* checkMsg , inout PRBool checkValue )
nsIPrompt PRBool select ( PRUnichar* dialogTitle , PRUnichar* text , PRUint32 count , arrayof PRUnichar* selectList , out PRInt32 outSelection )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com