Mercurial > projects > dwt-linux
diff dwt/internal/mozilla/nsIAuthInformation.d @ 272:dd63eb078d7a
xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 05:32:53 -0700 |
parents | |
children | 942da4b6558a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/internal/mozilla/nsIAuthInformation.d Fri Jul 18 05:32:53 2008 -0700 @@ -0,0 +1,36 @@ +module dwt.internal.mozilla.nsAuthInformation; + +import dwt.internal.mozilla.nsISupports; +import dwt.internal.mozilla.nsID; +import dwt.internal.mozilla.Common; +import dwt.internal.mozilla.nsStringAPI; + +const char[] NS_IAUTHINFORMATION_IID_STR = "0d73639c-2a92-4518-9f92-28f71fea5f20"; + +const nsIID NS_IAUTHINFORMATION_IID = + {0x0d73639c, 0x2a92, 0x4518, + [ 0x9f, 0x92, 0x28, 0xf7, 0x1f, 0xea, 0x5f, 0x20 ] }; + +extern(System) + +interface nsIAuthInformation : nsISupports { + + static const char[] IID_STR = NS_IAUTHINFORMATION_IID_STR; + static const nsIID IID = NS_IAUTHINFORMATION_IID; + + enum { AUTH_HOST = 1U } + enum { AUTH_PROXY = 2U } + enum { NEED_DOMAIN = 4U } + enum { ONLY_PASSWORD = 8U } + + nsresult GetFlags(PRUint32 *aFlags); + nsresult GetRealm(nsAString * aRealm);; + nsresult GetAuthenticationScheme(nsACString * aAuthenticationScheme); + nsresult GetUsername(nsAString * aUsername); + nsresult SetUsername(nsAString * aUsername); + nsresult GetPassword(nsAString * aPassword); + nsresult SetPassword(nsAString * aPassword); + nsresult GetDomain(nsAString * aDomain); + nsresult SetDomain(nsAString * aDomain); + +};