/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsIPrompt.idl
*/
#ifndef __gen_nsIPrompt_h__
#define __gen_nsIPrompt_h__
#include "nsISupports.h"
#include "nsTArray.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
/* starting interface: nsIPrompt */
#define NS_IPROMPT_IID_STR "a63f70c0-148b-11d3-9333-00104ba0fd40"
#define NS_IPROMPT_IID \
{0xa63f70c0, 0x148b, 0x11d3, \
{ 0x93, 0x33, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIPrompt) nsIPrompt : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IPROMPT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIPrompt;
/* void alert (in wstring dialogTitle, in wstring text); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_alert)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Alert(const char16_t * dialogTitle, const char16_t * text) = 0;
/* void alertCheck (in wstring dialogTitle, in wstring text, in wstring checkMsg, inout boolean checkValue); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_alertCheck)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AlertCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue) = 0;
/* boolean confirm (in wstring dialogTitle, in wstring text); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_confirm)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Confirm(const char16_t * dialogTitle, const char16_t * text, bool *_retval) = 0;
/* boolean confirmCheck (in wstring dialogTitle, in wstring text, in wstring checkMsg, inout boolean checkValue); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_confirmCheck)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ConfirmCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue, bool *_retval) = 0;
enum {
BUTTON_POS_0 MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_POS_0) = 1U,
BUTTON_POS_1 MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_POS_1) = 256U,
BUTTON_POS_2 MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_POS_2) = 65536U,
BUTTON_TITLE_OK MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_OK) = 1U,
BUTTON_TITLE_CANCEL MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_CANCEL) = 2U,
BUTTON_TITLE_YES MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_YES) = 3U,
BUTTON_TITLE_NO MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_NO) = 4U,
BUTTON_TITLE_SAVE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_SAVE) = 5U,
BUTTON_TITLE_DONT_SAVE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_DONT_SAVE) = 6U,
BUTTON_TITLE_REVERT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_REVERT) = 7U,
BUTTON_TITLE_IS_STRING MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_TITLE_IS_STRING) = 127U,
BUTTON_POS_0_DEFAULT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_POS_0_DEFAULT) = 0U,
BUTTON_POS_1_DEFAULT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_POS_1_DEFAULT) = 16777216U,
BUTTON_POS_2_DEFAULT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_POS_2_DEFAULT) = 33554432U,
BUTTON_DELAY_ENABLE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_DELAY_ENABLE) = 67108864U,
SHOW_SPINNER MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_SHOW_SPINNER) = 134217728U,
BUTTON_NONE_ENABLE_BIT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_NONE_ENABLE_BIT) = 268435456U,
BUTTON_NONE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_NONE) = 268435583U,
BUTTON_POS_1_IS_SECONDARY MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_BUTTON_POS_1_IS_SECONDARY) = 536870912U,
STD_OK_CANCEL_BUTTONS MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_STD_OK_CANCEL_BUTTONS) = 513U,
STD_YES_NO_BUTTONS MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_STD_YES_NO_BUTTONS) = 1027U,
MODAL_TYPE_CONTENT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_MODAL_TYPE_CONTENT) = 1U,
MODAL_TYPE_TAB MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_MODAL_TYPE_TAB) = 2U,
MODAL_TYPE_WINDOW MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_MODAL_TYPE_WINDOW) = 3U,
MODAL_TYPE_INTERNAL_WINDOW MOZ_BINDING(binding_to, idl, const, XPIDL_nsIPrompt_MODAL_TYPE_INTERNAL_WINDOW) = 4U
};
/* int32_t confirmEx (in wstring dialogTitle, in wstring text, in unsigned long buttonFlags, in wstring button0Title, in wstring button1Title, in wstring button2Title, in wstring checkMsg, inout boolean checkValue); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_confirmEx)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ConfirmEx(const char16_t * dialogTitle, const char16_t * text, uint32_t buttonFlags, const char16_t * button0Title, const char16_t * button1Title, const char16_t * button2Title, const char16_t * checkMsg, bool *checkValue, int32_t *_retval) = 0;
/* boolean prompt (in wstring dialogTitle, in wstring text, inout wstring value, in wstring checkMsg, inout boolean checkValue); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_prompt)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, char16_t * *value, const char16_t * checkMsg, bool *checkValue, bool *_retval) = 0;
/* boolean promptPassword (in wstring dialogTitle, in wstring text, inout wstring password); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_promptPassword)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *password, bool *_retval) = 0;
/* boolean promptUsernameAndPassword (in wstring dialogTitle, in wstring text, inout wstring username, inout wstring password); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_promptUsernameAndPassword)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *username, char16_t * *password, bool *_retval) = 0;
/* boolean select (in wstring dialogTitle, in wstring text, in Array<AString> selectList, out long outSelection); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_select)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Select(const char16_t * dialogTitle, const char16_t * text, const nsTArray<nsString >& selectList, int32_t *outSelection, bool *_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROMPT \
NS_IMETHOD Alert(const char16_t * dialogTitle, const char16_t * text) override; \
NS_IMETHOD AlertCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue) override; \
NS_IMETHOD Confirm(const char16_t * dialogTitle, const char16_t * text, bool *_retval) override; \
NS_IMETHOD ConfirmCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue, bool *_retval) override; \
NS_IMETHOD ConfirmEx(const char16_t * dialogTitle, const char16_t * text, uint32_t buttonFlags, const char16_t * button0Title, const char16_t * button1Title, const char16_t * button2Title, const char16_t * checkMsg, bool *checkValue, int32_t *_retval) override; \
NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, char16_t * *value, const char16_t * checkMsg, bool *checkValue, bool *_retval) override; \
NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *password, bool *_retval) override; \
NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *username, char16_t * *password, bool *_retval) override; \
NS_IMETHOD Select(const char16_t * dialogTitle, const char16_t * text, const nsTArray<nsString >& selectList, int32_t *outSelection, bool *_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_NSIPROMPT \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_alert)\
nsresult Alert(const char16_t * dialogTitle, const char16_t * text); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_alertCheck)\
nsresult AlertCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_confirm)\
nsresult Confirm(const char16_t * dialogTitle, const char16_t * text, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_confirmCheck)\
nsresult ConfirmCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_confirmEx)\
nsresult ConfirmEx(const char16_t * dialogTitle, const char16_t * text, uint32_t buttonFlags, const char16_t * button0Title, const char16_t * button1Title, const char16_t * button2Title, const char16_t * checkMsg, bool *checkValue, int32_t *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_prompt)\
nsresult Prompt(const char16_t * dialogTitle, const char16_t * text, char16_t * *value, const char16_t * checkMsg, bool *checkValue, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_promptPassword)\
nsresult PromptPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *password, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_promptUsernameAndPassword)\
nsresult PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *username, char16_t * *password, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPrompt_select)\
nsresult Select(const char16_t * dialogTitle, const char16_t * text, const nsTArray<nsString >& selectList, int32_t *outSelection, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROMPT(_to) \
NS_IMETHOD Alert(const char16_t * dialogTitle, const char16_t * text) override { return _to Alert(dialogTitle, text); } \
NS_IMETHOD AlertCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue) override { return _to AlertCheck(dialogTitle, text, checkMsg, checkValue); } \
NS_IMETHOD Confirm(const char16_t * dialogTitle, const char16_t * text, bool *_retval) override { return _to Confirm(dialogTitle, text, _retval); } \
NS_IMETHOD ConfirmCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue, bool *_retval) override { return _to ConfirmCheck(dialogTitle, text, checkMsg, checkValue, _retval); } \
NS_IMETHOD ConfirmEx(const char16_t * dialogTitle, const char16_t * text, uint32_t buttonFlags, const char16_t * button0Title, const char16_t * button1Title, const char16_t * button2Title, const char16_t * checkMsg, bool *checkValue, int32_t *_retval) override { return _to ConfirmEx(dialogTitle, text, buttonFlags, button0Title, button1Title, button2Title, checkMsg, checkValue, _retval); } \
NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, char16_t * *value, const char16_t * checkMsg, bool *checkValue, bool *_retval) override { return _to Prompt(dialogTitle, text, value, checkMsg, checkValue, _retval); } \
NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *password, bool *_retval) override { return _to PromptPassword(dialogTitle, text, password, _retval); } \
NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *username, char16_t * *password, bool *_retval) override { return _to PromptUsernameAndPassword(dialogTitle, text, username, password, _retval); } \
NS_IMETHOD Select(const char16_t * dialogTitle, const char16_t * text, const nsTArray<nsString >& selectList, int32_t *outSelection, bool *_retval) override { return _to Select(dialogTitle, text, selectList, outSelection, _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_NSIPROMPT(_to) \
NS_IMETHOD Alert(const char16_t * dialogTitle, const char16_t * text) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Alert(dialogTitle, text); } \
NS_IMETHOD AlertCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AlertCheck(dialogTitle, text, checkMsg, checkValue); } \
NS_IMETHOD Confirm(const char16_t * dialogTitle, const char16_t * text, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Confirm(dialogTitle, text, _retval); } \
NS_IMETHOD ConfirmCheck(const char16_t * dialogTitle, const char16_t * text, const char16_t * checkMsg, bool *checkValue, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmCheck(dialogTitle, text, checkMsg, checkValue, _retval); } \
NS_IMETHOD ConfirmEx(const char16_t * dialogTitle, const char16_t * text, uint32_t buttonFlags, const char16_t * button0Title, const char16_t * button1Title, const char16_t * button2Title, const char16_t * checkMsg, bool *checkValue, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEx(dialogTitle, text, buttonFlags, button0Title, button1Title, button2Title, checkMsg, checkValue, _retval); } \
NS_IMETHOD Prompt(const char16_t * dialogTitle, const char16_t * text, char16_t * *value, const char16_t * checkMsg, bool *checkValue, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Prompt(dialogTitle, text, value, checkMsg, checkValue, _retval); } \
NS_IMETHOD PromptPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *password, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptPassword(dialogTitle, text, password, _retval); } \
NS_IMETHOD PromptUsernameAndPassword(const char16_t * dialogTitle, const char16_t * text, char16_t * *username, char16_t * *password, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptUsernameAndPassword(dialogTitle, text, username, password, _retval); } \
NS_IMETHOD Select(const char16_t * dialogTitle, const char16_t * text, const nsTArray<nsString >& selectList, int32_t *outSelection, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(dialogTitle, text, selectList, outSelection, _retval); }
#endif /* __gen_nsIPrompt_h__ */