/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsIPKCS11Module.idl
 */

#ifndef __gen_nsIPKCS11Module_h__
#define __gen_nsIPKCS11Module_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
class nsIPKCS11Slot; /* forward declaration */


/* starting interface:    nsIPKCS11Module */
#define NS_IPKCS11MODULE_IID_STR "8a44bdf9-d1a5-4734-bd5a-34ed7fe564c2"

#define NS_IPKCS11MODULE_IID \
  {0x8a44bdf9, 0xd1a5, 0x4734, \
    { 0xbd, 0x5a, 0x34, 0xed, 0x7f, 0xe5, 0x64, 0xc2 }}

class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIPKCS11Module) nsIPKCS11Module : public nsISupports {
 public:

  NS_INLINE_DECL_STATIC_IID(NS_IPKCS11MODULE_IID)

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

  /* [must_use] readonly attribute AUTF8String name; */
  MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIPKCS11Module_name)
  JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetName(nsACString& aName) = 0;

  /* [must_use] readonly attribute AUTF8String libName; */
  MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIPKCS11Module_libName)
  JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetLibName(nsACString& aLibName) = 0;

  /* [must_use] readonly attribute Array<nsIPKCS11Slot> slots; */
  MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIPKCS11Module_slots)
  JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetSlots(nsTArray<RefPtr<nsIPKCS11Slot>>& aSlots) = 0;

};


/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPKCS11MODULE \
  [[nodiscard]] NS_IMETHOD GetName(nsACString& aName) override; \
  [[nodiscard]] NS_IMETHOD GetLibName(nsACString& aLibName) override; \
  [[nodiscard]] NS_IMETHOD GetSlots(nsTArray<RefPtr<nsIPKCS11Slot>>& aSlots) 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_NSIPKCS11MODULE \
  MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIPKCS11Module_name)\
  [[nodiscard]] nsresult GetName(nsACString& aName); \
  MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIPKCS11Module_libName)\
  [[nodiscard]] nsresult GetLibName(nsACString& aLibName); \
  MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIPKCS11Module_slots)\
  [[nodiscard]] nsresult GetSlots(nsTArray<RefPtr<nsIPKCS11Slot>>& aSlots); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPKCS11MODULE(_to) \
  [[nodiscard]] NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } \
  [[nodiscard]] NS_IMETHOD GetLibName(nsACString& aLibName) override { return _to GetLibName(aLibName); } \
  [[nodiscard]] NS_IMETHOD GetSlots(nsTArray<RefPtr<nsIPKCS11Slot>>& aSlots) override { return _to GetSlots(aSlots); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPKCS11MODULE(_to) \
  [[nodiscard]] NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  [[nodiscard]] NS_IMETHOD GetLibName(nsACString& aLibName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLibName(aLibName); } \
  [[nodiscard]] NS_IMETHOD GetSlots(nsTArray<RefPtr<nsIPKCS11Slot>>& aSlots) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSlots(aSlots); } 


#endif /* __gen_nsIPKCS11Module_h__ */
