Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsIAuthPrompt.idl
*/
#ifndef __gen_nsIAuthPrompt_h__
#define __gen_nsIAuthPrompt_h__
#include "nsISupports.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIPrompt; /* forward declaration */
/* starting interface: nsIAuthPrompt */
#define NS_IAUTHPROMPT_IID_STR "358089f9-ee4b-4711-82fd-bcd07fc62061"
#define NS_IAUTHPROMPT_IID \
{0x358089f9, 0xee4b, 0x4711, \
{ 0x82, 0xfd, 0xbc, 0xd0, 0x7f, 0xc6, 0x20, 0x61 }}
class NS_NO_VTABLE nsIAuthPrompt : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTHPROMPT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAuthPrompt;
enum {
SAVE_PASSWORD_NEVER = 0U,
SAVE_PASSWORD_FOR_SESSION = 1U,
SAVE_PASSWORD_PERMANENTLY = 2U
};
/* boolean prompt (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, in wstring defaultText, out wstring result); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, const char16_t * defaultText, char16_t * *result, bool *_retval) = 0;
/* boolean promptUsernameAndPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, inout wstring user, inout wstring pwd); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, bool *_retval) = 0;
/* Promise asyncPromptUsernameAndPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, inout wstring user, inout wstring pwd); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncPromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) = 0;
/* boolean promptPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, inout wstring pwd); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, bool *_retval) = 0;
/* Promise asyncPromptPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, inout wstring pwd); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncPromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAuthPrompt, NS_IAUTHPROMPT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTHPROMPT \
NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, const char16_t * defaultText, char16_t * *result, bool *_retval) override; \
NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, bool *_retval) override; \
NS_IMETHOD AsyncPromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, bool *_retval) override; \
NS_IMETHOD AsyncPromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIAUTHPROMPT \
nsresult Prompt(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, const char16_t * defaultText, char16_t * *result, bool *_retval); \
nsresult PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, bool *_retval); \
nsresult AsyncPromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, ::mozilla::dom::Promise * * _retval); \
nsresult PromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, bool *_retval); \
nsresult AsyncPromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTHPROMPT(_to) \
NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, const char16_t * defaultText, char16_t * *result, bool *_retval) override { return _to Prompt(dialogTitle, text, passwordRealm, savePassword, defaultText, result, _retval); } \
NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, bool *_retval) override { return _to PromptUsernameAndPassword(dialogTitle, text, passwordRealm, savePassword, user, pwd, _retval); } \
NS_IMETHOD AsyncPromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) override { return _to AsyncPromptUsernameAndPassword(dialogTitle, text, passwordRealm, savePassword, user, pwd, _retval); } \
NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, bool *_retval) override { return _to PromptPassword(dialogTitle, text, passwordRealm, savePassword, pwd, _retval); } \
NS_IMETHOD AsyncPromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) override { return _to AsyncPromptPassword(dialogTitle, text, passwordRealm, savePassword, pwd, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTHPROMPT(_to) \
NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, const char16_t * defaultText, char16_t * *result, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Prompt(dialogTitle, text, passwordRealm, savePassword, defaultText, result, _retval); } \
NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptUsernameAndPassword(dialogTitle, text, passwordRealm, savePassword, user, pwd, _retval); } \
NS_IMETHOD AsyncPromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *user, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncPromptUsernameAndPassword(dialogTitle, text, passwordRealm, savePassword, user, pwd, _retval); } \
NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptPassword(dialogTitle, text, passwordRealm, savePassword, pwd, _retval); } \
NS_IMETHOD AsyncPromptPassword(const char16_t * dialogTitle, const char16_t * text, const char16_t * passwordRealm, uint32_t savePassword, char16_t * *pwd, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncPromptPassword(dialogTitle, text, passwordRealm, savePassword, pwd, _retval); }
#endif /* __gen_nsIAuthPrompt_h__ */