1 module org.eclipse.swt.internal.mozilla.nsIPromptService; 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 import org.eclipse.swt.internal.mozilla.nsIDOMWindow; 10 11 const char[] NS_IPROMPTSERVICE_IID_STR = "1630c61a-325e-49ca-8759-a31b16c47aa5"; 12 13 const nsIID NS_IPROMPTSERVICE_IID= 14 {0x1630c61a, 0x325e, 0x49ca, 15 [ 0x87, 0x59, 0xa3, 0x1b, 0x16, 0xc4, 0x7a, 0xa5 ]}; 16 17 interface nsIPromptService : nsISupports { 18 19 static const char[] IID_STR = NS_IPROMPTSERVICE_IID_STR; 20 static const nsIID IID = NS_IPROMPTSERVICE_IID; 21 22 extern(System): 23 nsresult Alert(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText); 24 nsresult AlertCheck(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRUnichar *aCheckMsg, PRBool *aCheckState); 25 nsresult Confirm(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRBool *_retval); 26 nsresult ConfirmCheck(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval); 27 28 enum { BUTTON_POS_0 = 1U }; 29 enum { BUTTON_POS_1 = 256U }; 30 enum { BUTTON_POS_2 = 65536U }; 31 enum { BUTTON_TITLE_OK = 1U }; 32 enum { BUTTON_TITLE_CANCEL = 2U }; 33 enum { BUTTON_TITLE_YES = 3U }; 34 enum { BUTTON_TITLE_NO = 4U }; 35 enum { BUTTON_TITLE_SAVE = 5U }; 36 enum { BUTTON_TITLE_DONT_SAVE = 6U }; 37 enum { BUTTON_TITLE_REVERT = 7U }; 38 enum { BUTTON_TITLE_IS_STRING = 127U }; 39 enum { BUTTON_POS_0_DEFAULT = 0U }; 40 enum { BUTTON_POS_1_DEFAULT = 16777216U }; 41 enum { BUTTON_POS_2_DEFAULT = 33554432U }; 42 enum { BUTTON_DELAY_ENABLE = 67108864U }; 43 enum { STD_OK_CANCEL_BUTTONS = 513U }; 44 enum { STD_YES_NO_BUTTONS = 1027U }; 45 46 nsresult ConfirmEx(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRUint32 aButtonFlags, PRUnichar *aButton0Title, PRUnichar *aButton1Title, PRUnichar *aButton2Title, PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval); 47 nsresult Prompt(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRUnichar **aValue, PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval); 48 nsresult PromptUsernameAndPassword(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword, PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval); 49 nsresult PromptPassword(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRUnichar **aPassword, PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval); 50 nsresult Select(nsIDOMWindow aParent, PRUnichar *aDialogTitle, PRUnichar *aText, PRUint32 aCount, PRUnichar **aSelectList, PRInt32 *aOutSelection, PRBool *_retval); 51 52 } 53