Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/base/nsIMacPreferencesReader.idl
*/
#ifndef __gen_nsIMacPreferencesReader_h__
#define __gen_nsIMacPreferencesReader_h__
#include "nsISupportsPrimitives.h"
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#define ENTERPRISE_POLICIES_ENABLED_KEY "EnterprisePoliciesEnabled"
/* starting interface: nsIMacPreferencesReader */
#define NS_IMACPREFERENCESREADER_IID_STR "b0f20595-88ce-4738-a1a4-24de78eb8051"
#define NS_IMACPREFERENCESREADER_IID \
{0xb0f20595, 0x88ce, 0x4738, \
{ 0xa1, 0xa4, 0x24, 0xde, 0x78, 0xeb, 0x80, 0x51 }}
class NS_NO_VTABLE nsIMacPreferencesReader : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMACPREFERENCESREADER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMacPreferencesReader;
/* boolean policiesEnabled (); */
NS_IMETHOD PoliciesEnabled(bool *_retval) = 0;
/* [implicit_jscontext] jsval readPreferences (); */
NS_IMETHOD ReadPreferences(JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMacPreferencesReader, NS_IMACPREFERENCESREADER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMACPREFERENCESREADER \
NS_IMETHOD PoliciesEnabled(bool *_retval) override; \
NS_IMETHOD ReadPreferences(JSContext* cx, JS::MutableHandle<JS::Value> _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_NSIMACPREFERENCESREADER \
nsresult PoliciesEnabled(bool *_retval); \
nsresult ReadPreferences(JSContext* cx, JS::MutableHandle<JS::Value> _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMACPREFERENCESREADER(_to) \
NS_IMETHOD PoliciesEnabled(bool *_retval) override { return _to PoliciesEnabled(_retval); } \
NS_IMETHOD ReadPreferences(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to ReadPreferences(cx, _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_NSIMACPREFERENCESREADER(_to) \
NS_IMETHOD PoliciesEnabled(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PoliciesEnabled(_retval); } \
NS_IMETHOD ReadPreferences(JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadPreferences(cx, _retval); }
#endif /* __gen_nsIMacPreferencesReader_h__ */