Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/taskscheduler/nsIWinBackgroundTaskRegistrar.idl
*/
#ifndef __gen_nsIWinBackgroundTaskRegistrar_h__
#define __gen_nsIWinBackgroundTaskRegistrar_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: nsIWinBackgroundTaskRegistrar */
#define NS_IWINBACKGROUNDTASKREGISTRAR_IID_STR "67402829-1451-4c52-a9be-65781cc64f14"
#define NS_IWINBACKGROUNDTASKREGISTRAR_IID \
{0x67402829, 0x1451, 0x4c52, \
{ 0xa9, 0xbe, 0x65, 0x78, 0x1c, 0xc6, 0x4f, 0x14 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIWinBackgroundTaskRegistrar) nsIWinBackgroundTaskRegistrar : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IWINBACKGROUNDTASKREGISTRAR_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWinBackgroundTaskRegistrar;
/* void registerTask (in AString aId, in nsIDRef aEntryPointClsid, in unsigned long aIntervalMinutes); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_registerTask)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterTask(const nsAString& aId, const nsID & aEntryPointClsid, uint32_t aIntervalMinutes) = 0;
/* void deleteTask (in AString aId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_deleteTask)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteTask(const nsAString& aId) = 0;
/* void deleteAllTasks (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_deleteAllTasks)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteAllTasks(void) = 0;
/* boolean taskExists (in AString aId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_taskExists)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TaskExists(const nsAString& aId, bool *_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINBACKGROUNDTASKREGISTRAR \
NS_IMETHOD RegisterTask(const nsAString& aId, const nsID & aEntryPointClsid, uint32_t aIntervalMinutes) override; \
NS_IMETHOD DeleteTask(const nsAString& aId) override; \
NS_IMETHOD DeleteAllTasks(void) override; \
NS_IMETHOD TaskExists(const nsAString& aId, 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_NSIWINBACKGROUNDTASKREGISTRAR \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_registerTask)\
nsresult RegisterTask(const nsAString& aId, const nsID & aEntryPointClsid, uint32_t aIntervalMinutes); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_deleteTask)\
nsresult DeleteTask(const nsAString& aId); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_deleteAllTasks)\
nsresult DeleteAllTasks(void); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWinBackgroundTaskRegistrar_taskExists)\
nsresult TaskExists(const nsAString& aId, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINBACKGROUNDTASKREGISTRAR(_to) \
NS_IMETHOD RegisterTask(const nsAString& aId, const nsID & aEntryPointClsid, uint32_t aIntervalMinutes) override { return _to RegisterTask(aId, aEntryPointClsid, aIntervalMinutes); } \
NS_IMETHOD DeleteTask(const nsAString& aId) override { return _to DeleteTask(aId); } \
NS_IMETHOD DeleteAllTasks(void) override { return _to DeleteAllTasks(); } \
NS_IMETHOD TaskExists(const nsAString& aId, bool *_retval) override { return _to TaskExists(aId, _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_NSIWINBACKGROUNDTASKREGISTRAR(_to) \
NS_IMETHOD RegisterTask(const nsAString& aId, const nsID & aEntryPointClsid, uint32_t aIntervalMinutes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterTask(aId, aEntryPointClsid, aIntervalMinutes); } \
NS_IMETHOD DeleteTask(const nsAString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteTask(aId); } \
NS_IMETHOD DeleteAllTasks(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteAllTasks(); } \
NS_IMETHOD TaskExists(const nsAString& aId, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TaskExists(aId, _retval); }
#endif /* __gen_nsIWinBackgroundTaskRegistrar_h__ */