Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/backgroundtasks/nsIBackgroundTasks.idl
*/
#ifndef __gen_nsIBackgroundTasks_h__
#define __gen_nsIBackgroundTasks_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: nsIBackgroundTasks */
#define NS_IBACKGROUNDTASKS_IID_STR "353dccb8-a863-49e4-941b-007382eac168"
#define NS_IBACKGROUNDTASKS_IID \
{0x353dccb8, 0xa863, 0x49e4, \
{ 0x94, 0x1b, 0x00, 0x73, 0x82, 0xea, 0xc1, 0x68 }}
class NS_NO_VTABLE nsIBackgroundTasks : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBACKGROUNDTASKS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIBackgroundTasks;
/* readonly attribute boolean isBackgroundTaskMode; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsBackgroundTaskMode(bool *aIsBackgroundTaskMode) = 0;
/* AString backgroundTaskName (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD BackgroundTaskName(nsAString& _retval) = 0;
/* void overrideBackgroundTaskNameForTesting (in AString taskName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OverrideBackgroundTaskNameForTesting(const nsAString& taskName) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBackgroundTasks, NS_IBACKGROUNDTASKS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBACKGROUNDTASKS \
NS_IMETHOD GetIsBackgroundTaskMode(bool *aIsBackgroundTaskMode) override; \
NS_IMETHOD BackgroundTaskName(nsAString& _retval) override; \
NS_IMETHOD OverrideBackgroundTaskNameForTesting(const nsAString& taskName) 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_NSIBACKGROUNDTASKS \
nsresult GetIsBackgroundTaskMode(bool *aIsBackgroundTaskMode); \
nsresult BackgroundTaskName(nsAString& _retval); \
nsresult OverrideBackgroundTaskNameForTesting(const nsAString& taskName);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBACKGROUNDTASKS(_to) \
NS_IMETHOD GetIsBackgroundTaskMode(bool *aIsBackgroundTaskMode) override { return _to GetIsBackgroundTaskMode(aIsBackgroundTaskMode); } \
NS_IMETHOD BackgroundTaskName(nsAString& _retval) override { return _to BackgroundTaskName(_retval); } \
NS_IMETHOD OverrideBackgroundTaskNameForTesting(const nsAString& taskName) override { return _to OverrideBackgroundTaskNameForTesting(taskName); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBACKGROUNDTASKS(_to) \
NS_IMETHOD GetIsBackgroundTaskMode(bool *aIsBackgroundTaskMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsBackgroundTaskMode(aIsBackgroundTaskMode); } \
NS_IMETHOD BackgroundTaskName(nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BackgroundTaskName(_retval); } \
NS_IMETHOD OverrideBackgroundTaskNameForTesting(const nsAString& taskName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OverrideBackgroundTaskNameForTesting(taskName); }
#endif /* __gen_nsIBackgroundTasks_h__ */