1 module org.eclipse.swt.internal.mozilla.nsIAuthPrompt;
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.nsIPrompt;
10 
11 const char[] NS_IAUTHPROMPT_IID_STR = "2f977d45-5485-11d4-87e2-0010a4e75ef2";
12 
13 const nsIID NS_IAUTHPROMPT_IID= 
14   {0x2f977d45, 0x5485, 0x11d4, 
15     [ 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 ]};
16 
17 interface nsIAuthPrompt : nsISupports {
18 
19   static const char[] IID_STR = NS_IAUTHPROMPT_IID_STR;
20   static const nsIID IID = NS_IAUTHPROMPT_IID;
21 
22   enum { SAVE_PASSWORD_NEVER = 0U };
23   enum { SAVE_PASSWORD_FOR_SESSION = 1U };
24   enum { SAVE_PASSWORD_PERMANENTLY = 2U };
25 
26 extern(System):
27   nsresult Prompt(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar *defaultText, PRUnichar **result, PRBool *_retval);
28   nsresult PromptUsernameAndPassword(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar **user, PRUnichar **pwd, PRBool *_retval);
29   nsresult PromptPassword(PRUnichar *dialogTitle, PRUnichar *text, PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar **pwd, PRBool *_retval);
30 
31 }
32