Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/backgroundtasks/nsIBackgroundTasksManager.idl
*/
#ifndef __gen_nsIBackgroundTasksManager_h__
#define __gen_nsIBackgroundTasksManager_h__
#include "nsICommandLineHandler.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 nsICommandLine; /* forward declaration */
/* starting interface: nsIBackgroundTasksManager */
#define NS_IBACKGROUNDTASKSMANAGER_IID_STR "4d48c536-e16f-4699-8f9c-add4f28f92f0"
#define NS_IBACKGROUNDTASKSMANAGER_IID \
{0x4d48c536, 0xe16f, 0x4699, \
{ 0x8f, 0x9c, 0xad, 0xd4, 0xf2, 0x8f, 0x92, 0xf0 }}
class NS_NO_VTABLE nsIBackgroundTasksManager : public nsICommandLineHandler {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBACKGROUNDTASKSMANAGER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIBackgroundTasksManager;
/* void runBackgroundTaskNamed (in AString aTaskName, in nsICommandLine aCommandLine); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RunBackgroundTaskNamed(const nsAString& aTaskName, nsICommandLine *aCommandLine) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBackgroundTasksManager, NS_IBACKGROUNDTASKSMANAGER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBACKGROUNDTASKSMANAGER \
NS_IMETHOD RunBackgroundTaskNamed(const nsAString& aTaskName, nsICommandLine *aCommandLine) 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_NSIBACKGROUNDTASKSMANAGER \
nsresult RunBackgroundTaskNamed(const nsAString& aTaskName, nsICommandLine *aCommandLine);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBACKGROUNDTASKSMANAGER(_to) \
NS_IMETHOD RunBackgroundTaskNamed(const nsAString& aTaskName, nsICommandLine *aCommandLine) override { return _to RunBackgroundTaskNamed(aTaskName, aCommandLine); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBACKGROUNDTASKSMANAGER(_to) \
NS_IMETHOD RunBackgroundTaskNamed(const nsAString& aTaskName, nsICommandLine *aCommandLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunBackgroundTaskNamed(aTaskName, aCommandLine); }
#endif /* __gen_nsIBackgroundTasksManager_h__ */