Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/taskscheduler/nsIWinTaskSchedulerService.idl
*/
#ifndef __gen_nsIWinTaskSchedulerService_h__
#define __gen_nsIWinTaskSchedulerService_h__
#include "nsISupports.h"
#include "nsTArray.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: nsIWinTaskSchedulerService */
#define NS_IWINTASKSCHEDULERSERVICE_IID_STR "a8d36901-0b6a-46c3-a214-a9e1d5d6047a"
#define NS_IWINTASKSCHEDULERSERVICE_IID \
{0xa8d36901, 0x0b6a, 0x46c3, \
{ 0xa2, 0x14, 0xa9, 0xe1, 0xd5, 0xd6, 0x04, 0x7a }}
class NS_NO_VTABLE nsIWinTaskSchedulerService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINTASKSCHEDULERSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWinTaskSchedulerService;
/* void registerTask (in wstring aFolderName, in wstring aTaskName, in wstring aDefinitionXML, [optional] in boolean aUpdateExisting); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterTask(const char16_t * aFolderName, const char16_t * aTaskName, const char16_t * aDefinitionXML, bool aUpdateExisting) = 0;
/* long validateTaskDefinition (in wstring aDefinitionXML); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ValidateTaskDefinition(const char16_t * aDefinitionXML, int32_t *_retval) = 0;
/* AString getTaskXML (in wstring aFolderName, in wstring aTaskName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTaskXML(const char16_t * aFolderName, const char16_t * aTaskName, nsAString& _retval) = 0;
/* AString getCurrentUserSid (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentUserSid(nsAString& _retval) = 0;
/* void deleteTask (in wstring aFolderName, in wstring aTaskName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteTask(const char16_t * aFolderName, const char16_t * aTaskName) = 0;
/* Array<AString> getFolderTasks (in wstring aFolderName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderTasks(const char16_t * aFolderName, nsTArray<nsString >& _retval) = 0;
/* void createFolder (in wstring aParentFolderName, in wstring aSubFolderName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) = 0;
/* void deleteFolder (in wstring aParentFolderName, in wstring aSubFolderName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWinTaskSchedulerService, NS_IWINTASKSCHEDULERSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINTASKSCHEDULERSERVICE \
NS_IMETHOD RegisterTask(const char16_t * aFolderName, const char16_t * aTaskName, const char16_t * aDefinitionXML, bool aUpdateExisting) override; \
NS_IMETHOD ValidateTaskDefinition(const char16_t * aDefinitionXML, int32_t *_retval) override; \
NS_IMETHOD GetTaskXML(const char16_t * aFolderName, const char16_t * aTaskName, nsAString& _retval) override; \
NS_IMETHOD GetCurrentUserSid(nsAString& _retval) override; \
NS_IMETHOD DeleteTask(const char16_t * aFolderName, const char16_t * aTaskName) override; \
NS_IMETHOD GetFolderTasks(const char16_t * aFolderName, nsTArray<nsString >& _retval) override; \
NS_IMETHOD CreateFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) override; \
NS_IMETHOD DeleteFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) 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_NSIWINTASKSCHEDULERSERVICE \
nsresult RegisterTask(const char16_t * aFolderName, const char16_t * aTaskName, const char16_t * aDefinitionXML, bool aUpdateExisting); \
nsresult ValidateTaskDefinition(const char16_t * aDefinitionXML, int32_t *_retval); \
nsresult GetTaskXML(const char16_t * aFolderName, const char16_t * aTaskName, nsAString& _retval); \
nsresult GetCurrentUserSid(nsAString& _retval); \
nsresult DeleteTask(const char16_t * aFolderName, const char16_t * aTaskName); \
nsresult GetFolderTasks(const char16_t * aFolderName, nsTArray<nsString >& _retval); \
nsresult CreateFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName); \
nsresult DeleteFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINTASKSCHEDULERSERVICE(_to) \
NS_IMETHOD RegisterTask(const char16_t * aFolderName, const char16_t * aTaskName, const char16_t * aDefinitionXML, bool aUpdateExisting) override { return _to RegisterTask(aFolderName, aTaskName, aDefinitionXML, aUpdateExisting); } \
NS_IMETHOD ValidateTaskDefinition(const char16_t * aDefinitionXML, int32_t *_retval) override { return _to ValidateTaskDefinition(aDefinitionXML, _retval); } \
NS_IMETHOD GetTaskXML(const char16_t * aFolderName, const char16_t * aTaskName, nsAString& _retval) override { return _to GetTaskXML(aFolderName, aTaskName, _retval); } \
NS_IMETHOD GetCurrentUserSid(nsAString& _retval) override { return _to GetCurrentUserSid(_retval); } \
NS_IMETHOD DeleteTask(const char16_t * aFolderName, const char16_t * aTaskName) override { return _to DeleteTask(aFolderName, aTaskName); } \
NS_IMETHOD GetFolderTasks(const char16_t * aFolderName, nsTArray<nsString >& _retval) override { return _to GetFolderTasks(aFolderName, _retval); } \
NS_IMETHOD CreateFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) override { return _to CreateFolder(aParentFolderName, aSubFolderName); } \
NS_IMETHOD DeleteFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) override { return _to DeleteFolder(aParentFolderName, aSubFolderName); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINTASKSCHEDULERSERVICE(_to) \
NS_IMETHOD RegisterTask(const char16_t * aFolderName, const char16_t * aTaskName, const char16_t * aDefinitionXML, bool aUpdateExisting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterTask(aFolderName, aTaskName, aDefinitionXML, aUpdateExisting); } \
NS_IMETHOD ValidateTaskDefinition(const char16_t * aDefinitionXML, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateTaskDefinition(aDefinitionXML, _retval); } \
NS_IMETHOD GetTaskXML(const char16_t * aFolderName, const char16_t * aTaskName, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTaskXML(aFolderName, aTaskName, _retval); } \
NS_IMETHOD GetCurrentUserSid(nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentUserSid(_retval); } \
NS_IMETHOD DeleteTask(const char16_t * aFolderName, const char16_t * aTaskName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteTask(aFolderName, aTaskName); } \
NS_IMETHOD GetFolderTasks(const char16_t * aFolderName, nsTArray<nsString >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderTasks(aFolderName, _retval); } \
NS_IMETHOD CreateFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFolder(aParentFolderName, aSubFolderName); } \
NS_IMETHOD DeleteFolder(const char16_t * aParentFolderName, const char16_t * aSubFolderName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteFolder(aParentFolderName, aSubFolderName); }
#endif /* __gen_nsIWinTaskSchedulerService_h__ */