1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIPromptService extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 9; 33 34 public static final String NS_IPROMPTSERVICE_IID_STR = 35 "1630c61a-325e-49ca-8759-a31b16c47aa5"; 36 37 public static final nsID NS_IPROMPTSERVICE_IID = 38 new nsID(NS_IPROMPTSERVICE_IID_STR); 39 40 public nsIPromptService(int address) { 41 super(address); 42 } 43 44 public int Alert(int aParent, char[] aDialogTitle, char[] aText) { 45 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aParent, aDialogTitle, aText); 46 } 47 48 public int AlertCheck(int aParent, char[] aDialogTitle, char[] aText, char[] aCheckMsg, boolean[] aCheckState) { 49 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aParent, aDialogTitle, aText, aCheckMsg, aCheckState); 50 } 51 52 public int Confirm(int aParent, char[] aDialogTitle, char[] aText, boolean[] _retval) { 53 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aParent, aDialogTitle, aText, _retval); 54 } 55 56 public int ConfirmCheck(int aParent, char[] aDialogTitle, char[] aText, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) { 57 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aParent, aDialogTitle, aText, aCheckMsg, aCheckState, _retval); 58 } 59 60 public static final int BUTTON_POS_0 = 1; 61 62 public static final int BUTTON_POS_1 = 256; 63 64 public static final int BUTTON_POS_2 = 65536; 65 66 public static final int BUTTON_TITLE_OK = 1; 67 68 public static final int BUTTON_TITLE_CANCEL = 2; 69 70 public static final int BUTTON_TITLE_YES = 3; 71 72 public static final int BUTTON_TITLE_NO = 4; 73 74 public static final int BUTTON_TITLE_SAVE = 5; 75 76 public static final int BUTTON_TITLE_DONT_SAVE = 6; 77 78 public static final int BUTTON_TITLE_REVERT = 7; 79 80 public static final int BUTTON_TITLE_IS_STRING = 127; 81 82 public static final int BUTTON_POS_0_DEFAULT = 0; 83 84 public static final int BUTTON_POS_1_DEFAULT = 16777216; 85 86 public static final int BUTTON_POS_2_DEFAULT = 33554432; 87 88 public static final int BUTTON_DELAY_ENABLE = 67108864; 89 90 public static final int STD_OK_CANCEL_BUTTONS = 513; 91 92 public static final int STD_YES_NO_BUTTONS = 1027; 93 94 public int ConfirmEx(int aParent, char[] aDialogTitle, char[] aText, int aButtonFlags, char[] aButton0Title, char[] aButton1Title, char[] aButton2Title, char[] aCheckMsg, boolean[] aCheckState, int[] _retval) { 95 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aParent, aDialogTitle, aText, aButtonFlags, aButton0Title, aButton1Title, aButton2Title, aCheckMsg, aCheckState, _retval); 96 } 97 98 public int Prompt(int aParent, char[] aDialogTitle, char[] aText, int [] aValue, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) { 99 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aParent, aDialogTitle, aText, aValue, aCheckMsg, aCheckState, _retval); 100 } 101 102 public int PromptUsernameAndPassword(int aParent, char[] aDialogTitle, char[] aText, int [] aUsername, int [] aPassword, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) { 103 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aParent, aDialogTitle, aText, aUsername, aPassword, aCheckMsg, aCheckState, _retval); 104 } 105 106 public int PromptPassword(int aParent, char[] aDialogTitle, char[] aText, int [] aPassword, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) { 107 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aParent, aDialogTitle, aText, aPassword, aCheckMsg, aCheckState, _retval); 108 } 109 110 public int Select(int aParent, char[] aDialogTitle, char[] aText, int aCount, int [] aSelectList, int[] aOutSelection, boolean[] _retval) { 111 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aParent, aDialogTitle, aText, aCount, aSelectList, aOutSelection, _retval); 112 } 113 } | Popular Tags |