1 module org.eclipse.swt.internal.mozilla.nsIPrompt; 2 3 import java.lang.all; 4 5 import org.eclipse.swt.internal.mozilla.Common; 6 import org.eclipse.swt.internal.mozilla.nsID; 7 import org.eclipse.swt.internal.mozilla.nsISupports; 8 9 const char[] NS_IPROMPT_IID_STR = "a63f70c0-148b-11d3-9333-00104ba0fd40"; 10 11 const nsIID NS_IPROMPT_IID= 12 {0xa63f70c0, 0x148b, 0x11d3, 13 [ 0x93, 0x33, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 ]}; 14 15 interface nsIPrompt : nsISupports { 16 17 static const char[] IID_STR = NS_IPROMPT_IID_STR; 18 static const nsIID IID = NS_IPROMPT_IID; 19 20 extern(System): 21 nsresult Alert(PRUnichar *dialogTitle, PRUnichar *text); 22 nsresult AlertCheck(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar *checkMsg, PRBool *checkValue); 23 nsresult Confirm(PRUnichar *dialogTitle, PRUnichar *text, PRBool *_retval); 24 nsresult ConfirmCheck(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar *checkMsg, PRBool *checkValue, PRBool *_retval); 25 26 enum { BUTTON_POS_0 = 1U }; 27 enum { BUTTON_POS_1 = 256U }; 28 enum { BUTTON_POS_2 = 65536U }; 29 enum { BUTTON_TITLE_OK = 1U }; 30 enum { BUTTON_TITLE_CANCEL = 2U }; 31 enum { BUTTON_TITLE_YES = 3U }; 32 enum { BUTTON_TITLE_NO = 4U }; 33 enum { BUTTON_TITLE_SAVE = 5U }; 34 enum { BUTTON_TITLE_DONT_SAVE = 6U }; 35 enum { BUTTON_TITLE_REVERT = 7U }; 36 enum { BUTTON_TITLE_IS_STRING = 127U }; 37 enum { BUTTON_POS_0_DEFAULT = 0U }; 38 enum { BUTTON_POS_1_DEFAULT = 16777216U }; 39 enum { BUTTON_POS_2_DEFAULT = 33554432U }; 40 enum { BUTTON_DELAY_ENABLE = 67108864U }; 41 enum { STD_OK_CANCEL_BUTTONS = 513U }; 42 43 nsresult ConfirmEx(PRUnichar *dialogTitle, PRUnichar *text, PRUint32 buttonFlags, PRUnichar *button0Title, PRUnichar *button1Title, PRUnichar *button2Title, PRUnichar *checkMsg, PRBool *checkValue, PRInt32 *_retval); 44 nsresult Prompt(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar **value, PRUnichar *checkMsg, PRBool *checkValue, PRBool *_retval); 45 nsresult PromptPassword(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar **password, PRUnichar *checkMsg, PRBool *checkValue, PRBool *_retval); 46 nsresult PromptUsernameAndPassword(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar **username, PRUnichar **password, PRUnichar *checkMsg, PRBool *checkValue, PRBool *_retval); 47 nsresult Select(PRUnichar *dialogTitle, PRUnichar *text, PRUint32 count, PRUnichar **selectList, PRInt32 *outSelection, PRBool *_retval); 48 49 } 50