Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsIFIPSUtils.idl
*/
#ifndef __gen_nsIFIPSUtils_h__
#define __gen_nsIFIPSUtils_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
/* starting interface: nsIFIPSUtils */
#define NS_IFIPSUTILS_IID_STR "3201b705-0907-4f7c-aa9b-78bfeae52ed6"
#define NS_IFIPSUTILS_IID \
{0x3201b705, 0x0907, 0x4f7c, \
{ 0xaa, 0x9b, 0x78, 0xbf, 0xea, 0xe5, 0x2e, 0xd6 }}
class NS_NO_VTABLE nsIFIPSUtils : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IFIPSUTILS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIFIPSUtils;
/* [must_use] readonly attribute boolean canToggleFIPS; */
JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetCanToggleFIPS(bool *aCanToggleFIPS) = 0;
/* [must_use] void toggleFIPSMode (); */
JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD ToggleFIPSMode(void) = 0;
/* [must_use] readonly attribute boolean isFIPSEnabled; */
JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetIsFIPSEnabled(bool *aIsFIPSEnabled) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFIPSUTILS \
[[nodiscard]] NS_IMETHOD GetCanToggleFIPS(bool *aCanToggleFIPS) override; \
[[nodiscard]] NS_IMETHOD ToggleFIPSMode(void) override; \
[[nodiscard]] NS_IMETHOD GetIsFIPSEnabled(bool *aIsFIPSEnabled) 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_NSIFIPSUTILS \
[[nodiscard]] nsresult GetCanToggleFIPS(bool *aCanToggleFIPS); \
[[nodiscard]] nsresult ToggleFIPSMode(void); \
[[nodiscard]] nsresult GetIsFIPSEnabled(bool *aIsFIPSEnabled);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFIPSUTILS(_to) \
[[nodiscard]] NS_IMETHOD GetCanToggleFIPS(bool *aCanToggleFIPS) override { return _to GetCanToggleFIPS(aCanToggleFIPS); } \
[[nodiscard]] NS_IMETHOD ToggleFIPSMode(void) override { return _to ToggleFIPSMode(); } \
[[nodiscard]] NS_IMETHOD GetIsFIPSEnabled(bool *aIsFIPSEnabled) override { return _to GetIsFIPSEnabled(aIsFIPSEnabled); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFIPSUTILS(_to) \
[[nodiscard]] NS_IMETHOD GetCanToggleFIPS(bool *aCanToggleFIPS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanToggleFIPS(aCanToggleFIPS); } \
[[nodiscard]] NS_IMETHOD ToggleFIPSMode(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToggleFIPSMode(); } \
[[nodiscard]] NS_IMETHOD GetIsFIPSEnabled(bool *aIsFIPSEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFIPSEnabled(aIsFIPSEnabled); }
#endif /* __gen_nsIFIPSUtils_h__ */