Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/system/windowsPackageManager/nsIWindowsPackageManager.idl
*/
#ifndef __gen_nsIWindowsPackageManager_h__
#define __gen_nsIWindowsPackageManager_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/Value.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: nsIWindowsPackageManager */
#define NS_IWINDOWSPACKAGEMANAGER_IID_STR "ad57ac40-52f0-11ec-ada8-4f671255c4aa"
#define NS_IWINDOWSPACKAGEMANAGER_IID \
{0xad57ac40, 0x52f0, 0x11ec, \
{ 0xad, 0xa8, 0x4f, 0x67, 0x12, 0x55, 0xc4, 0xaa }}
class NS_NO_VTABLE nsIWindowsPackageManager : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWSPACKAGEMANAGER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWindowsPackageManager;
/* Array<AString> findUserInstalledPackages (in Array<AString> prefix); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindUserInstalledPackages(const nsTArray<nsString >& prefix, nsTArray<nsString >& _retval) = 0;
/* unsigned long long getInstalledDate (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInstalledDate(uint64_t *_retval) = 0;
/* [implicit_jscontext] Promise campaignId (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CampaignId(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowsPackageManager, NS_IWINDOWSPACKAGEMANAGER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSPACKAGEMANAGER \
NS_IMETHOD FindUserInstalledPackages(const nsTArray<nsString >& prefix, nsTArray<nsString >& _retval) override; \
NS_IMETHOD GetInstalledDate(uint64_t *_retval) override; \
NS_IMETHOD CampaignId(JSContext* cx, ::mozilla::dom::Promise * * _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_NSIWINDOWSPACKAGEMANAGER \
nsresult FindUserInstalledPackages(const nsTArray<nsString >& prefix, nsTArray<nsString >& _retval); \
nsresult GetInstalledDate(uint64_t *_retval); \
nsresult CampaignId(JSContext* cx, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSPACKAGEMANAGER(_to) \
NS_IMETHOD FindUserInstalledPackages(const nsTArray<nsString >& prefix, nsTArray<nsString >& _retval) override { return _to FindUserInstalledPackages(prefix, _retval); } \
NS_IMETHOD GetInstalledDate(uint64_t *_retval) override { return _to GetInstalledDate(_retval); } \
NS_IMETHOD CampaignId(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to CampaignId(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_NSIWINDOWSPACKAGEMANAGER(_to) \
NS_IMETHOD FindUserInstalledPackages(const nsTArray<nsString >& prefix, nsTArray<nsString >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindUserInstalledPackages(prefix, _retval); } \
NS_IMETHOD GetInstalledDate(uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInstalledDate(_retval); } \
NS_IMETHOD CampaignId(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CampaignId(cx, _retval); }
#endif /* __gen_nsIWindowsPackageManager_h__ */