nsIPrompt

IID:a63f70c0-148b-11d3-9333-00104ba0fd40
Inherits From:nsISupports

Constants

PRUint32 BUTTON_POS_0 = 1
PRUint32 BUTTON_POS_1 = 256
PRUint32 BUTTON_POS_2 = 65536
PRUint32 BUTTON_TITLE_OK = 1
PRUint32 BUTTON_TITLE_CANCEL = 2
PRUint32 BUTTON_TITLE_YES = 3
PRUint32 BUTTON_TITLE_NO = 4
PRUint32 BUTTON_TITLE_SAVE = 5
PRUint32 BUTTON_TITLE_DONT_SAVE = 6
PRUint32 BUTTON_TITLE_REVERT = 7
PRUint32 BUTTON_TITLE_IS_STRING = 127
PRUint32 STD_OK_CANCEL_BUTTONS = 513

Methods

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

void alert ( PRUnichar* dialogTitle , PRUnichar* text )

Arguments:
dialogTitle
text

void alertCheck ( PRUnichar* dialogTitle , PRUnichar* text , PRUnichar* checkMsg , inout PRBool checkValue )

Arguments:
dialogTitle
text
checkMsg
checkValue

PRBool confirm ( PRUnichar* dialogTitle , PRUnichar* text )

Arguments:
dialogTitle
text

PRBool confirmCheck ( PRUnichar* dialogTitle , PRUnichar* text , PRUnichar* checkMsg , inout PRBool checkValue )

Arguments:
dialogTitle
text
checkMsg
checkValue

PRInt32 confirmEx ( PRUnichar* dialogTitle , PRUnichar* text , PRUint32 buttonFlags , PRUnichar* button0Title , PRUnichar* button1Title , PRUnichar* button2Title , PRUnichar* checkMsg , inout PRBool checkValue )

Arguments:
dialogTitle
text
buttonFlags
button0Title
button1Title
button2Title
checkMsg
checkValue

PRBool prompt ( PRUnichar* dialogTitle , PRUnichar* text , inout PRUnichar* value , PRUnichar* checkMsg , inout PRBool checkValue )

Arguments:
dialogTitle
text
value
checkMsg
checkValue

PRBool promptPassword ( PRUnichar* dialogTitle , PRUnichar* text , inout PRUnichar* password , PRUnichar* checkMsg , inout PRBool checkValue )

Arguments:
dialogTitle
text
password
checkMsg
checkValue

PRBool promptUsernameAndPassword ( PRUnichar* dialogTitle , PRUnichar* text , inout PRUnichar* username , inout PRUnichar* password , PRUnichar* checkMsg , inout PRBool checkValue )

Arguments:
dialogTitle
text
username
password
checkMsg
checkValue

PRBool select ( PRUnichar* dialogTitle , PRUnichar* text , PRUint32 count , arrayof PRUnichar* selectList , out PRInt32 outSelection )

Arguments:
dialogTitle
text
count
selectList
outSelection

References

This interface is the type of the following properties:

nsIDOMWindowInternal.prompter, nsIMsgWindow.promptDialog, nsISmtpUrl.prompt

This interface is passed as an argument to the following methods:

nsIAuthPromptWrapper.setPromptDialogs, nsICookieService.setCookieString, nsICookieService.setCookieStringFromHttp, nsIMsgLogonRedirector.logon, nsIMsgSendReport.displayReport, nsIWalletService.haveData

This interface is returned from the following methods:

nsIMsgProgress.getPrompter, nsIMsgSend.getDefaultPrompt, nsIPrintProgress.getPrompter, nsIWindowWatcher.getNewPrompter

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com