/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM $SRCDIR/extensions/spellcheck/idl/mozIPersonalDictionary.idl
 */

#ifndef __gen_mozIPersonalDictionary_h__
#define __gen_mozIPersonalDictionary_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 nsIStringEnumerator; /* forward declaration */


/* starting interface:    mozIPersonalDictionary */
#define MOZIPERSONALDICTIONARY_IID_STR "7ef52eaf-b7e1-462b-87e2-5d1dbaca9048"

#define MOZIPERSONALDICTIONARY_IID \
  {0x7ef52eaf, 0xb7e1, 0x462b, \
    { 0x87, 0xe2, 0x5d, 0x1d, 0xba, 0xca, 0x90, 0x48 }}

class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_mozIPersonalDictionary) mozIPersonalDictionary : public nsISupports {
 public:

  NS_INLINE_DECL_STATIC_IID(MOZIPERSONALDICTIONARY_IID)

  /* Used by ToJSValue to check which scriptable interface is implemented. */
  using ScriptableInterfaceType = mozIPersonalDictionary;

  /* void load (); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_load)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Load(void) = 0;

  /* void save (); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_save)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Save(void) = 0;

  /* readonly attribute nsIStringEnumerator wordList; */
  MOZ_BINDING(binding_to, idl, getter, XPIDL_mozIPersonalDictionary_wordList)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWordList(nsIStringEnumerator **aWordList) = 0;

  /* boolean check (in AString word); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_check)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Check(const nsAString& word, bool *_retval) = 0;

  /* void addWord (in AString word); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_addWord)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddWord(const nsAString& word) = 0;

  /* void removeWord (in AString word); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_removeWord)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveWord(const nsAString& word) = 0;

  /* void ignoreWord (in AString word); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_ignoreWord)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IgnoreWord(const nsAString& word) = 0;

  /* void endSession (); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_endSession)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EndSession(void) = 0;

};


/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZIPERSONALDICTIONARY \
  NS_IMETHOD Load(void) override; \
  NS_IMETHOD Save(void) override; \
  NS_IMETHOD GetWordList(nsIStringEnumerator **aWordList) override; \
  NS_IMETHOD Check(const nsAString& word, bool *_retval) override; \
  NS_IMETHOD AddWord(const nsAString& word) override; \
  NS_IMETHOD RemoveWord(const nsAString& word) override; \
  NS_IMETHOD IgnoreWord(const nsAString& word) override; \
  NS_IMETHOD EndSession(void) 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_MOZIPERSONALDICTIONARY \
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_load)\
  nsresult Load(void); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_save)\
  nsresult Save(void); \
  MOZ_BINDING(binding_to, idl, getter, XPIDL_mozIPersonalDictionary_wordList)\
  nsresult GetWordList(nsIStringEnumerator **aWordList); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_check)\
  nsresult Check(const nsAString& word, bool *_retval); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_addWord)\
  nsresult AddWord(const nsAString& word); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_removeWord)\
  nsresult RemoveWord(const nsAString& word); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_ignoreWord)\
  nsresult IgnoreWord(const nsAString& word); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_mozIPersonalDictionary_endSession)\
  nsresult EndSession(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZIPERSONALDICTIONARY(_to) \
  NS_IMETHOD Load(void) override { return _to Load(); } \
  NS_IMETHOD Save(void) override { return _to Save(); } \
  NS_IMETHOD GetWordList(nsIStringEnumerator **aWordList) override { return _to GetWordList(aWordList); } \
  NS_IMETHOD Check(const nsAString& word, bool *_retval) override { return _to Check(word, _retval); } \
  NS_IMETHOD AddWord(const nsAString& word) override { return _to AddWord(word); } \
  NS_IMETHOD RemoveWord(const nsAString& word) override { return _to RemoveWord(word); } \
  NS_IMETHOD IgnoreWord(const nsAString& word) override { return _to IgnoreWord(word); } \
  NS_IMETHOD EndSession(void) override { return _to EndSession(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZIPERSONALDICTIONARY(_to) \
  NS_IMETHOD Load(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(); } \
  NS_IMETHOD Save(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(); } \
  NS_IMETHOD GetWordList(nsIStringEnumerator **aWordList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordList(aWordList); } \
  NS_IMETHOD Check(const nsAString& word, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Check(word, _retval); } \
  NS_IMETHOD AddWord(const nsAString& word) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWord(word); } \
  NS_IMETHOD RemoveWord(const nsAString& word) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWord(word); } \
  NS_IMETHOD IgnoreWord(const nsAString& word) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWord(word); } \
  NS_IMETHOD EndSession(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndSession(); } 


#endif /* __gen_mozIPersonalDictionary_h__ */
