Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/mozapps/update/nsIUpdateService.idl
*/
#ifndef __gen_nsIUpdateService_h__
#define __gen_nsIUpdateService_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
class nsIRequest; /* forward declaration */
class nsIRequestObserver; /* forward declaration */
class nsISimpleEnumerator; /* forward declaration */
class nsIFile; /* forward declaration */
namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class Document; /* webidl Document */
} // namespace dom
} // namespace mozilla
/* starting interface: nsIUpdatePatch */
#define NS_IUPDATEPATCH_IID_STR "dc8fb8a9-3a53-4031-9469-2a5197ea30e7"
#define NS_IUPDATEPATCH_IID \
{0xdc8fb8a9, 0x3a53, 0x4031, \
{ 0x94, 0x69, 0x2a, 0x51, 0x97, 0xea, 0x30, 0xe7 }}
class NS_NO_VTABLE nsIUpdatePatch : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATEPATCH_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdatePatch;
/* readonly attribute AString type; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsAString& aType) = 0;
/* readonly attribute AString URL; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetURL(nsAString& aURL) = 0;
/* attribute AString finalURL; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFinalURL(nsAString& aFinalURL) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFinalURL(const nsAString& aFinalURL) = 0;
/* readonly attribute unsigned long size; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSize(uint32_t *aSize) = 0;
/* attribute AString state; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetState(nsAString& aState) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetState(const nsAString& aState) = 0;
/* attribute long errorCode; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetErrorCode(int32_t *aErrorCode) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetErrorCode(int32_t aErrorCode) = 0;
/* attribute boolean selected; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelected(bool *aSelected) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSelected(bool aSelected) = 0;
/* Element serialize (in Document updates); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdatePatch, NS_IUPDATEPATCH_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATEPATCH \
NS_IMETHOD GetType(nsAString& aType) override; \
NS_IMETHOD GetURL(nsAString& aURL) override; \
NS_IMETHOD GetFinalURL(nsAString& aFinalURL) override; \
NS_IMETHOD SetFinalURL(const nsAString& aFinalURL) override; \
NS_IMETHOD GetSize(uint32_t *aSize) override; \
NS_IMETHOD GetState(nsAString& aState) override; \
NS_IMETHOD SetState(const nsAString& aState) override; \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override; \
NS_IMETHOD SetErrorCode(int32_t aErrorCode) override; \
NS_IMETHOD GetSelected(bool *aSelected) override; \
NS_IMETHOD SetSelected(bool aSelected) override; \
NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_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_NSIUPDATEPATCH \
nsresult GetType(nsAString& aType); \
nsresult GetURL(nsAString& aURL); \
nsresult GetFinalURL(nsAString& aFinalURL); \
nsresult SetFinalURL(const nsAString& aFinalURL); \
nsresult GetSize(uint32_t *aSize); \
nsresult GetState(nsAString& aState); \
nsresult SetState(const nsAString& aState); \
nsresult GetErrorCode(int32_t *aErrorCode); \
nsresult SetErrorCode(int32_t aErrorCode); \
nsresult GetSelected(bool *aSelected); \
nsresult SetSelected(bool aSelected); \
nsresult Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATEPATCH(_to) \
NS_IMETHOD GetType(nsAString& aType) override { return _to GetType(aType); } \
NS_IMETHOD GetURL(nsAString& aURL) override { return _to GetURL(aURL); } \
NS_IMETHOD GetFinalURL(nsAString& aFinalURL) override { return _to GetFinalURL(aFinalURL); } \
NS_IMETHOD SetFinalURL(const nsAString& aFinalURL) override { return _to SetFinalURL(aFinalURL); } \
NS_IMETHOD GetSize(uint32_t *aSize) override { return _to GetSize(aSize); } \
NS_IMETHOD GetState(nsAString& aState) override { return _to GetState(aState); } \
NS_IMETHOD SetState(const nsAString& aState) override { return _to SetState(aState); } \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return _to GetErrorCode(aErrorCode); } \
NS_IMETHOD SetErrorCode(int32_t aErrorCode) override { return _to SetErrorCode(aErrorCode); } \
NS_IMETHOD GetSelected(bool *aSelected) override { return _to GetSelected(aSelected); } \
NS_IMETHOD SetSelected(bool aSelected) override { return _to SetSelected(aSelected); } \
NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval) override { return _to Serialize(updates, _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_NSIUPDATEPATCH(_to) \
NS_IMETHOD GetType(nsAString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD GetURL(nsAString& aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
NS_IMETHOD GetFinalURL(nsAString& aFinalURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFinalURL(aFinalURL); } \
NS_IMETHOD SetFinalURL(const nsAString& aFinalURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFinalURL(aFinalURL); } \
NS_IMETHOD GetSize(uint32_t *aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
NS_IMETHOD GetState(nsAString& aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
NS_IMETHOD SetState(const nsAString& aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(aState); } \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
NS_IMETHOD SetErrorCode(int32_t aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorCode(aErrorCode); } \
NS_IMETHOD GetSelected(bool *aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelected(aSelected); } \
NS_IMETHOD SetSelected(bool aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelected(aSelected); } \
NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(updates, _retval); }
/* starting interface: nsIUpdate */
#define NS_IUPDATE_IID_STR "e094c045-f4ff-41fd-92da-cd2effd2c7c9"
#define NS_IUPDATE_IID \
{0xe094c045, 0xf4ff, 0x41fd, \
{ 0x92, 0xda, 0xcd, 0x2e, 0xff, 0xd2, 0xc7, 0xc9 }}
class NS_NO_VTABLE nsIUpdate : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdate;
/* readonly attribute AString type; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsAString& aType) = 0;
/* readonly attribute AString name; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsAString& aName) = 0;
/* readonly attribute AString displayVersion; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisplayVersion(nsAString& aDisplayVersion) = 0;
/* readonly attribute AString appVersion; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAppVersion(nsAString& aAppVersion) = 0;
/* readonly attribute AString previousAppVersion; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPreviousAppVersion(nsAString& aPreviousAppVersion) = 0;
/* readonly attribute AString buildID; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBuildID(nsAString& aBuildID) = 0;
/* readonly attribute AString detailsURL; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDetailsURL(nsAString& aDetailsURL) = 0;
/* readonly attribute AString serviceURL; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServiceURL(nsAString& aServiceURL) = 0;
/* readonly attribute AString channel; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChannel(nsAString& aChannel) = 0;
/* readonly attribute boolean unsupported; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUnsupported(bool *aUnsupported) = 0;
/* attribute long long promptWaitTime; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) = 0;
/* attribute boolean isCompleteUpdate; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) = 0;
/* attribute long long installDate; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInstallDate(int64_t *aInstallDate) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetInstallDate(int64_t aInstallDate) = 0;
/* attribute AString statusText; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatusText(nsAString& aStatusText) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStatusText(const nsAString& aStatusText) = 0;
/* readonly attribute nsIUpdatePatch selectedPatch; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectedPatch(nsIUpdatePatch **aSelectedPatch) = 0;
/* attribute AString state; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetState(nsAString& aState) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetState(const nsAString& aState) = 0;
/* attribute long errorCode; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetErrorCode(int32_t *aErrorCode) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetErrorCode(int32_t aErrorCode) = 0;
/* attribute boolean elevationFailure; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetElevationFailure(bool *aElevationFailure) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetElevationFailure(bool aElevationFailure) = 0;
/* readonly attribute unsigned long patchCount; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) = 0;
/* nsIUpdatePatch getPatchAt (in unsigned long index); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch **_retval) = 0;
/* Element serialize (in Document updates); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdate, NS_IUPDATE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATE \
NS_IMETHOD GetType(nsAString& aType) override; \
NS_IMETHOD GetName(nsAString& aName) override; \
NS_IMETHOD GetDisplayVersion(nsAString& aDisplayVersion) override; \
NS_IMETHOD GetAppVersion(nsAString& aAppVersion) override; \
NS_IMETHOD GetPreviousAppVersion(nsAString& aPreviousAppVersion) override; \
NS_IMETHOD GetBuildID(nsAString& aBuildID) override; \
NS_IMETHOD GetDetailsURL(nsAString& aDetailsURL) override; \
NS_IMETHOD GetServiceURL(nsAString& aServiceURL) override; \
NS_IMETHOD GetChannel(nsAString& aChannel) override; \
NS_IMETHOD GetUnsupported(bool *aUnsupported) override; \
NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) override; \
NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) override; \
NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) override; \
NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) override; \
NS_IMETHOD GetInstallDate(int64_t *aInstallDate) override; \
NS_IMETHOD SetInstallDate(int64_t aInstallDate) override; \
NS_IMETHOD GetStatusText(nsAString& aStatusText) override; \
NS_IMETHOD SetStatusText(const nsAString& aStatusText) override; \
NS_IMETHOD GetSelectedPatch(nsIUpdatePatch **aSelectedPatch) override; \
NS_IMETHOD GetState(nsAString& aState) override; \
NS_IMETHOD SetState(const nsAString& aState) override; \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override; \
NS_IMETHOD SetErrorCode(int32_t aErrorCode) override; \
NS_IMETHOD GetElevationFailure(bool *aElevationFailure) override; \
NS_IMETHOD SetElevationFailure(bool aElevationFailure) override; \
NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) override; \
NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch **_retval) override; \
NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_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_NSIUPDATE \
nsresult GetType(nsAString& aType); \
nsresult GetName(nsAString& aName); \
nsresult GetDisplayVersion(nsAString& aDisplayVersion); \
nsresult GetAppVersion(nsAString& aAppVersion); \
nsresult GetPreviousAppVersion(nsAString& aPreviousAppVersion); \
nsresult GetBuildID(nsAString& aBuildID); \
nsresult GetDetailsURL(nsAString& aDetailsURL); \
nsresult GetServiceURL(nsAString& aServiceURL); \
nsresult GetChannel(nsAString& aChannel); \
nsresult GetUnsupported(bool *aUnsupported); \
nsresult GetPromptWaitTime(int64_t *aPromptWaitTime); \
nsresult SetPromptWaitTime(int64_t aPromptWaitTime); \
nsresult GetIsCompleteUpdate(bool *aIsCompleteUpdate); \
nsresult SetIsCompleteUpdate(bool aIsCompleteUpdate); \
nsresult GetInstallDate(int64_t *aInstallDate); \
nsresult SetInstallDate(int64_t aInstallDate); \
nsresult GetStatusText(nsAString& aStatusText); \
nsresult SetStatusText(const nsAString& aStatusText); \
nsresult GetSelectedPatch(nsIUpdatePatch **aSelectedPatch); \
nsresult GetState(nsAString& aState); \
nsresult SetState(const nsAString& aState); \
nsresult GetErrorCode(int32_t *aErrorCode); \
nsresult SetErrorCode(int32_t aErrorCode); \
nsresult GetElevationFailure(bool *aElevationFailure); \
nsresult SetElevationFailure(bool aElevationFailure); \
nsresult GetPatchCount(uint32_t *aPatchCount); \
nsresult GetPatchAt(uint32_t index, nsIUpdatePatch **_retval); \
nsresult Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATE(_to) \
NS_IMETHOD GetType(nsAString& aType) override { return _to GetType(aType); } \
NS_IMETHOD GetName(nsAString& aName) override { return _to GetName(aName); } \
NS_IMETHOD GetDisplayVersion(nsAString& aDisplayVersion) override { return _to GetDisplayVersion(aDisplayVersion); } \
NS_IMETHOD GetAppVersion(nsAString& aAppVersion) override { return _to GetAppVersion(aAppVersion); } \
NS_IMETHOD GetPreviousAppVersion(nsAString& aPreviousAppVersion) override { return _to GetPreviousAppVersion(aPreviousAppVersion); } \
NS_IMETHOD GetBuildID(nsAString& aBuildID) override { return _to GetBuildID(aBuildID); } \
NS_IMETHOD GetDetailsURL(nsAString& aDetailsURL) override { return _to GetDetailsURL(aDetailsURL); } \
NS_IMETHOD GetServiceURL(nsAString& aServiceURL) override { return _to GetServiceURL(aServiceURL); } \
NS_IMETHOD GetChannel(nsAString& aChannel) override { return _to GetChannel(aChannel); } \
NS_IMETHOD GetUnsupported(bool *aUnsupported) override { return _to GetUnsupported(aUnsupported); } \
NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) override { return _to GetPromptWaitTime(aPromptWaitTime); } \
NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) override { return _to SetPromptWaitTime(aPromptWaitTime); } \
NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) override { return _to GetIsCompleteUpdate(aIsCompleteUpdate); } \
NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) override { return _to SetIsCompleteUpdate(aIsCompleteUpdate); } \
NS_IMETHOD GetInstallDate(int64_t *aInstallDate) override { return _to GetInstallDate(aInstallDate); } \
NS_IMETHOD SetInstallDate(int64_t aInstallDate) override { return _to SetInstallDate(aInstallDate); } \
NS_IMETHOD GetStatusText(nsAString& aStatusText) override { return _to GetStatusText(aStatusText); } \
NS_IMETHOD SetStatusText(const nsAString& aStatusText) override { return _to SetStatusText(aStatusText); } \
NS_IMETHOD GetSelectedPatch(nsIUpdatePatch **aSelectedPatch) override { return _to GetSelectedPatch(aSelectedPatch); } \
NS_IMETHOD GetState(nsAString& aState) override { return _to GetState(aState); } \
NS_IMETHOD SetState(const nsAString& aState) override { return _to SetState(aState); } \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return _to GetErrorCode(aErrorCode); } \
NS_IMETHOD SetErrorCode(int32_t aErrorCode) override { return _to SetErrorCode(aErrorCode); } \
NS_IMETHOD GetElevationFailure(bool *aElevationFailure) override { return _to GetElevationFailure(aElevationFailure); } \
NS_IMETHOD SetElevationFailure(bool aElevationFailure) override { return _to SetElevationFailure(aElevationFailure); } \
NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) override { return _to GetPatchCount(aPatchCount); } \
NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch **_retval) override { return _to GetPatchAt(index, _retval); } \
NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval) override { return _to Serialize(updates, _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_NSIUPDATE(_to) \
NS_IMETHOD GetType(nsAString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD GetName(nsAString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetDisplayVersion(nsAString& aDisplayVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayVersion(aDisplayVersion); } \
NS_IMETHOD GetAppVersion(nsAString& aAppVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppVersion(aAppVersion); } \
NS_IMETHOD GetPreviousAppVersion(nsAString& aPreviousAppVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousAppVersion(aPreviousAppVersion); } \
NS_IMETHOD GetBuildID(nsAString& aBuildID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuildID(aBuildID); } \
NS_IMETHOD GetDetailsURL(nsAString& aDetailsURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetailsURL(aDetailsURL); } \
NS_IMETHOD GetServiceURL(nsAString& aServiceURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceURL(aServiceURL); } \
NS_IMETHOD GetChannel(nsAString& aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannel(aChannel); } \
NS_IMETHOD GetUnsupported(bool *aUnsupported) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnsupported(aUnsupported); } \
NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPromptWaitTime(aPromptWaitTime); } \
NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPromptWaitTime(aPromptWaitTime); } \
NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCompleteUpdate(aIsCompleteUpdate); } \
NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsCompleteUpdate(aIsCompleteUpdate); } \
NS_IMETHOD GetInstallDate(int64_t *aInstallDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInstallDate(aInstallDate); } \
NS_IMETHOD SetInstallDate(int64_t aInstallDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInstallDate(aInstallDate); } \
NS_IMETHOD GetStatusText(nsAString& aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusText(aStatusText); } \
NS_IMETHOD SetStatusText(const nsAString& aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusText(aStatusText); } \
NS_IMETHOD GetSelectedPatch(nsIUpdatePatch **aSelectedPatch) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedPatch(aSelectedPatch); } \
NS_IMETHOD GetState(nsAString& aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
NS_IMETHOD SetState(const nsAString& aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(aState); } \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
NS_IMETHOD SetErrorCode(int32_t aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorCode(aErrorCode); } \
NS_IMETHOD GetElevationFailure(bool *aElevationFailure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElevationFailure(aElevationFailure); } \
NS_IMETHOD SetElevationFailure(bool aElevationFailure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetElevationFailure(aElevationFailure); } \
NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPatchCount(aPatchCount); } \
NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPatchAt(index, _retval); } \
NS_IMETHOD Serialize(mozilla::dom::Document *updates, mozilla::dom::Element **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(updates, _retval); }
/* starting interface: nsIUpdateCheckResult */
#define NS_IUPDATECHECKRESULT_IID_STR "bff08110-e79f-4a9f-a56c-348170f9208a"
#define NS_IUPDATECHECKRESULT_IID \
{0xbff08110, 0xe79f, 0x4a9f, \
{ 0xa5, 0x6c, 0x34, 0x81, 0x70, 0xf9, 0x20, 0x8a }}
class NS_NO_VTABLE nsIUpdateCheckResult : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATECHECKRESULT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdateCheckResult;
/* readonly attribute boolean checksAllowed; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChecksAllowed(bool *aChecksAllowed) = 0;
/* readonly attribute boolean succeeded; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSucceeded(bool *aSucceeded) = 0;
/* readonly attribute jsval request; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRequest(JS::MutableHandle<JS::Value> aRequest) = 0;
/* readonly attribute Array<nsIUpdate> updates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUpdates(nsTArray<RefPtr<nsIUpdate>>& aUpdates) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateCheckResult, NS_IUPDATECHECKRESULT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATECHECKRESULT \
NS_IMETHOD GetChecksAllowed(bool *aChecksAllowed) override; \
NS_IMETHOD GetSucceeded(bool *aSucceeded) override; \
NS_IMETHOD GetRequest(JS::MutableHandle<JS::Value> aRequest) override; \
NS_IMETHOD GetUpdates(nsTArray<RefPtr<nsIUpdate>>& aUpdates) 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_NSIUPDATECHECKRESULT \
nsresult GetChecksAllowed(bool *aChecksAllowed); \
nsresult GetSucceeded(bool *aSucceeded); \
nsresult GetRequest(JS::MutableHandle<JS::Value> aRequest); \
nsresult GetUpdates(nsTArray<RefPtr<nsIUpdate>>& aUpdates);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATECHECKRESULT(_to) \
NS_IMETHOD GetChecksAllowed(bool *aChecksAllowed) override { return _to GetChecksAllowed(aChecksAllowed); } \
NS_IMETHOD GetSucceeded(bool *aSucceeded) override { return _to GetSucceeded(aSucceeded); } \
NS_IMETHOD GetRequest(JS::MutableHandle<JS::Value> aRequest) override { return _to GetRequest(aRequest); } \
NS_IMETHOD GetUpdates(nsTArray<RefPtr<nsIUpdate>>& aUpdates) override { return _to GetUpdates(aUpdates); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIUPDATECHECKRESULT(_to) \
NS_IMETHOD GetChecksAllowed(bool *aChecksAllowed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChecksAllowed(aChecksAllowed); } \
NS_IMETHOD GetSucceeded(bool *aSucceeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSucceeded(aSucceeded); } \
NS_IMETHOD GetRequest(JS::MutableHandle<JS::Value> aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequest(aRequest); } \
NS_IMETHOD GetUpdates(nsTArray<RefPtr<nsIUpdate>>& aUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdates(aUpdates); }
/* starting interface: nsIUpdateCheck */
#define NS_IUPDATECHECK_IID_STR "2620aa24-27aa-463a-b6d2-0734695c1f7a"
#define NS_IUPDATECHECK_IID \
{0x2620aa24, 0x27aa, 0x463a, \
{ 0xb6, 0xd2, 0x07, 0x34, 0x69, 0x5c, 0x1f, 0x7a }}
class NS_NO_VTABLE nsIUpdateCheck : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATECHECK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdateCheck;
/* readonly attribute long id; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(int32_t *aId) = 0;
/* readonly attribute Promise result; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetResult(::mozilla::dom::Promise * * aResult) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateCheck, NS_IUPDATECHECK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATECHECK \
NS_IMETHOD GetId(int32_t *aId) override; \
NS_IMETHOD GetResult(::mozilla::dom::Promise * * aResult) 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_NSIUPDATECHECK \
nsresult GetId(int32_t *aId); \
nsresult GetResult(::mozilla::dom::Promise * * aResult);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATECHECK(_to) \
NS_IMETHOD GetId(int32_t *aId) override { return _to GetId(aId); } \
NS_IMETHOD GetResult(::mozilla::dom::Promise * * aResult) override { return _to GetResult(aResult); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIUPDATECHECK(_to) \
NS_IMETHOD GetId(int32_t *aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD GetResult(::mozilla::dom::Promise * * aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); }
/* starting interface: nsIUpdateChecker */
#define NS_IUPDATECHECKER_IID_STR "877ace25-8bc5-452a-8586-9c1cf2871994"
#define NS_IUPDATECHECKER_IID \
{0x877ace25, 0x8bc5, 0x452a, \
{ 0x85, 0x86, 0x9c, 0x1c, 0xf2, 0x87, 0x19, 0x94 }}
class NS_NO_VTABLE nsIUpdateChecker : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATECHECKER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdateChecker;
enum {
BACKGROUND_CHECK = 1,
FOREGROUND_CHECK = 2
};
/* nsIUpdateCheck checkForUpdates (in long checkType); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckForUpdates(int32_t checkType, nsIUpdateCheck **_retval) = 0;
/* Promise getUpdateURL (in long checkType); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUpdateURL(int32_t checkType, ::mozilla::dom::Promise * * _retval) = 0;
/* void stopCheck (in long id); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopCheck(int32_t id) = 0;
/* void stopAllChecks (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopAllChecks(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateChecker, NS_IUPDATECHECKER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATECHECKER \
NS_IMETHOD CheckForUpdates(int32_t checkType, nsIUpdateCheck **_retval) override; \
NS_IMETHOD GetUpdateURL(int32_t checkType, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD StopCheck(int32_t id) override; \
NS_IMETHOD StopAllChecks(void) 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_NSIUPDATECHECKER \
nsresult CheckForUpdates(int32_t checkType, nsIUpdateCheck **_retval); \
nsresult GetUpdateURL(int32_t checkType, ::mozilla::dom::Promise * * _retval); \
nsresult StopCheck(int32_t id); \
nsresult StopAllChecks(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATECHECKER(_to) \
NS_IMETHOD CheckForUpdates(int32_t checkType, nsIUpdateCheck **_retval) override { return _to CheckForUpdates(checkType, _retval); } \
NS_IMETHOD GetUpdateURL(int32_t checkType, ::mozilla::dom::Promise * * _retval) override { return _to GetUpdateURL(checkType, _retval); } \
NS_IMETHOD StopCheck(int32_t id) override { return _to StopCheck(id); } \
NS_IMETHOD StopAllChecks(void) override { return _to StopAllChecks(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIUPDATECHECKER(_to) \
NS_IMETHOD CheckForUpdates(int32_t checkType, nsIUpdateCheck **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForUpdates(checkType, _retval); } \
NS_IMETHOD GetUpdateURL(int32_t checkType, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdateURL(checkType, _retval); } \
NS_IMETHOD StopCheck(int32_t id) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopCheck(id); } \
NS_IMETHOD StopAllChecks(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopAllChecks(); }
/* starting interface: nsIApplicationUpdateService */
#define NS_IAPPLICATIONUPDATESERVICE_IID_STR "1107d207-a263-403a-b268-05772ec10757"
#define NS_IAPPLICATIONUPDATESERVICE_IID \
{0x1107d207, 0xa263, 0x403a, \
{ 0xb2, 0x68, 0x05, 0x77, 0x2e, 0xc1, 0x07, 0x57 }}
class NS_NO_VTABLE nsIApplicationUpdateService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONUPDATESERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIApplicationUpdateService;
/* boolean checkForBackgroundUpdates (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckForBackgroundUpdates(bool *_retval) = 0;
/* nsIUpdate selectUpdate (in Array<nsIUpdate> updates); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectUpdate(const nsTArray<RefPtr<nsIUpdate>>& updates, nsIUpdate **_retval) = 0;
/* void addDownloadListener (in nsIRequestObserver listener); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) = 0;
/* void removeDownloadListener (in nsIRequestObserver listener); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) = 0;
/* Promise downloadUpdate (in nsIUpdate update); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DownloadUpdate(nsIUpdate *update, ::mozilla::dom::Promise * * _retval) = 0;
/* Promise onCheckComplete (in nsIUpdateCheckResult result); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCheckComplete(nsIUpdateCheckResult *result, ::mozilla::dom::Promise * * _retval) = 0;
/* Promise stopDownload (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopDownload(::mozilla::dom::Promise * * _retval) = 0;
/* readonly attribute boolean disabled; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisabled(bool *aDisabled) = 0;
/* readonly attribute boolean canUsuallyCheckForUpdates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanUsuallyCheckForUpdates(bool *aCanUsuallyCheckForUpdates) = 0;
/* readonly attribute boolean canCheckForUpdates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) = 0;
/* readonly attribute boolean elevationRequired; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetElevationRequired(bool *aElevationRequired) = 0;
/* readonly attribute boolean canUsuallyApplyUpdates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanUsuallyApplyUpdates(bool *aCanUsuallyApplyUpdates) = 0;
/* readonly attribute boolean canApplyUpdates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) = 0;
/* readonly attribute boolean isOtherInstanceHandlingUpdates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) = 0;
/* readonly attribute boolean canUsuallyStageUpdates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanUsuallyStageUpdates(bool *aCanUsuallyStageUpdates) = 0;
/* readonly attribute boolean canStageUpdates; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) = 0;
/* readonly attribute boolean canUsuallyUseBits; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanUsuallyUseBits(bool *aCanUsuallyUseBits) = 0;
/* readonly attribute boolean canUseBits; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanUseBits(bool *aCanUseBits) = 0;
/* readonly attribute boolean manualUpdateOnly; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetManualUpdateOnly(bool *aManualUpdateOnly) = 0;
/* readonly attribute boolean isAppBaseDirWritable; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsAppBaseDirWritable(bool *aIsAppBaseDirWritable) = 0;
/* attribute boolean onlyDownloadUpdatesThisSession; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOnlyDownloadUpdatesThisSession(bool *aOnlyDownloadUpdatesThisSession) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOnlyDownloadUpdatesThisSession(bool aOnlyDownloadUpdatesThisSession) = 0;
enum {
STATE_IDLE = 1,
STATE_DOWNLOADING = 2,
STATE_STAGING = 4,
STATE_PENDING = 5,
STATE_SWAP = 6
};
/* AString getStateName (in long state); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStateName(int32_t state, nsAString& _retval) = 0;
/* readonly attribute long currentState; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentState(int32_t *aCurrentState) = 0;
/* readonly attribute Promise stateTransition; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStateTransition(::mozilla::dom::Promise * * aStateTransition) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationUpdateService, NS_IAPPLICATIONUPDATESERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAPPLICATIONUPDATESERVICE \
NS_IMETHOD CheckForBackgroundUpdates(bool *_retval) override; \
NS_IMETHOD SelectUpdate(const nsTArray<RefPtr<nsIUpdate>>& updates, nsIUpdate **_retval) override; \
NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) override; \
NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) override; \
NS_IMETHOD DownloadUpdate(nsIUpdate *update, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD OnCheckComplete(nsIUpdateCheckResult *result, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD StopDownload(::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD GetDisabled(bool *aDisabled) override; \
NS_IMETHOD GetCanUsuallyCheckForUpdates(bool *aCanUsuallyCheckForUpdates) override; \
NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) override; \
NS_IMETHOD GetElevationRequired(bool *aElevationRequired) override; \
NS_IMETHOD GetCanUsuallyApplyUpdates(bool *aCanUsuallyApplyUpdates) override; \
NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) override; \
NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) override; \
NS_IMETHOD GetCanUsuallyStageUpdates(bool *aCanUsuallyStageUpdates) override; \
NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) override; \
NS_IMETHOD GetCanUsuallyUseBits(bool *aCanUsuallyUseBits) override; \
NS_IMETHOD GetCanUseBits(bool *aCanUseBits) override; \
NS_IMETHOD GetManualUpdateOnly(bool *aManualUpdateOnly) override; \
NS_IMETHOD GetIsAppBaseDirWritable(bool *aIsAppBaseDirWritable) override; \
NS_IMETHOD GetOnlyDownloadUpdatesThisSession(bool *aOnlyDownloadUpdatesThisSession) override; \
NS_IMETHOD SetOnlyDownloadUpdatesThisSession(bool aOnlyDownloadUpdatesThisSession) override; \
NS_IMETHOD GetStateName(int32_t state, nsAString& _retval) override; \
NS_IMETHOD GetCurrentState(int32_t *aCurrentState) override; \
NS_IMETHOD GetStateTransition(::mozilla::dom::Promise * * aStateTransition) 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_NSIAPPLICATIONUPDATESERVICE \
nsresult CheckForBackgroundUpdates(bool *_retval); \
nsresult SelectUpdate(const nsTArray<RefPtr<nsIUpdate>>& updates, nsIUpdate **_retval); \
nsresult AddDownloadListener(nsIRequestObserver *listener); \
nsresult RemoveDownloadListener(nsIRequestObserver *listener); \
nsresult DownloadUpdate(nsIUpdate *update, ::mozilla::dom::Promise * * _retval); \
nsresult OnCheckComplete(nsIUpdateCheckResult *result, ::mozilla::dom::Promise * * _retval); \
nsresult StopDownload(::mozilla::dom::Promise * * _retval); \
nsresult GetDisabled(bool *aDisabled); \
nsresult GetCanUsuallyCheckForUpdates(bool *aCanUsuallyCheckForUpdates); \
nsresult GetCanCheckForUpdates(bool *aCanCheckForUpdates); \
nsresult GetElevationRequired(bool *aElevationRequired); \
nsresult GetCanUsuallyApplyUpdates(bool *aCanUsuallyApplyUpdates); \
nsresult GetCanApplyUpdates(bool *aCanApplyUpdates); \
nsresult GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates); \
nsresult GetCanUsuallyStageUpdates(bool *aCanUsuallyStageUpdates); \
nsresult GetCanStageUpdates(bool *aCanStageUpdates); \
nsresult GetCanUsuallyUseBits(bool *aCanUsuallyUseBits); \
nsresult GetCanUseBits(bool *aCanUseBits); \
nsresult GetManualUpdateOnly(bool *aManualUpdateOnly); \
nsresult GetIsAppBaseDirWritable(bool *aIsAppBaseDirWritable); \
nsresult GetOnlyDownloadUpdatesThisSession(bool *aOnlyDownloadUpdatesThisSession); \
nsresult SetOnlyDownloadUpdatesThisSession(bool aOnlyDownloadUpdatesThisSession); \
nsresult GetStateName(int32_t state, nsAString& _retval); \
nsresult GetCurrentState(int32_t *aCurrentState); \
nsresult GetStateTransition(::mozilla::dom::Promise * * aStateTransition);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAPPLICATIONUPDATESERVICE(_to) \
NS_IMETHOD CheckForBackgroundUpdates(bool *_retval) override { return _to CheckForBackgroundUpdates(_retval); } \
NS_IMETHOD SelectUpdate(const nsTArray<RefPtr<nsIUpdate>>& updates, nsIUpdate **_retval) override { return _to SelectUpdate(updates, _retval); } \
NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) override { return _to AddDownloadListener(listener); } \
NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) override { return _to RemoveDownloadListener(listener); } \
NS_IMETHOD DownloadUpdate(nsIUpdate *update, ::mozilla::dom::Promise * * _retval) override { return _to DownloadUpdate(update, _retval); } \
NS_IMETHOD OnCheckComplete(nsIUpdateCheckResult *result, ::mozilla::dom::Promise * * _retval) override { return _to OnCheckComplete(result, _retval); } \
NS_IMETHOD StopDownload(::mozilla::dom::Promise * * _retval) override { return _to StopDownload(_retval); } \
NS_IMETHOD GetDisabled(bool *aDisabled) override { return _to GetDisabled(aDisabled); } \
NS_IMETHOD GetCanUsuallyCheckForUpdates(bool *aCanUsuallyCheckForUpdates) override { return _to GetCanUsuallyCheckForUpdates(aCanUsuallyCheckForUpdates); } \
NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) override { return _to GetCanCheckForUpdates(aCanCheckForUpdates); } \
NS_IMETHOD GetElevationRequired(bool *aElevationRequired) override { return _to GetElevationRequired(aElevationRequired); } \
NS_IMETHOD GetCanUsuallyApplyUpdates(bool *aCanUsuallyApplyUpdates) override { return _to GetCanUsuallyApplyUpdates(aCanUsuallyApplyUpdates); } \
NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) override { return _to GetCanApplyUpdates(aCanApplyUpdates); } \
NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) override { return _to GetIsOtherInstanceHandlingUpdates(aIsOtherInstanceHandlingUpdates); } \
NS_IMETHOD GetCanUsuallyStageUpdates(bool *aCanUsuallyStageUpdates) override { return _to GetCanUsuallyStageUpdates(aCanUsuallyStageUpdates); } \
NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) override { return _to GetCanStageUpdates(aCanStageUpdates); } \
NS_IMETHOD GetCanUsuallyUseBits(bool *aCanUsuallyUseBits) override { return _to GetCanUsuallyUseBits(aCanUsuallyUseBits); } \
NS_IMETHOD GetCanUseBits(bool *aCanUseBits) override { return _to GetCanUseBits(aCanUseBits); } \
NS_IMETHOD GetManualUpdateOnly(bool *aManualUpdateOnly) override { return _to GetManualUpdateOnly(aManualUpdateOnly); } \
NS_IMETHOD GetIsAppBaseDirWritable(bool *aIsAppBaseDirWritable) override { return _to GetIsAppBaseDirWritable(aIsAppBaseDirWritable); } \
NS_IMETHOD GetOnlyDownloadUpdatesThisSession(bool *aOnlyDownloadUpdatesThisSession) override { return _to GetOnlyDownloadUpdatesThisSession(aOnlyDownloadUpdatesThisSession); } \
NS_IMETHOD SetOnlyDownloadUpdatesThisSession(bool aOnlyDownloadUpdatesThisSession) override { return _to SetOnlyDownloadUpdatesThisSession(aOnlyDownloadUpdatesThisSession); } \
NS_IMETHOD GetStateName(int32_t state, nsAString& _retval) override { return _to GetStateName(state, _retval); } \
NS_IMETHOD GetCurrentState(int32_t *aCurrentState) override { return _to GetCurrentState(aCurrentState); } \
NS_IMETHOD GetStateTransition(::mozilla::dom::Promise * * aStateTransition) override { return _to GetStateTransition(aStateTransition); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAPPLICATIONUPDATESERVICE(_to) \
NS_IMETHOD CheckForBackgroundUpdates(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForBackgroundUpdates(_retval); } \
NS_IMETHOD SelectUpdate(const nsTArray<RefPtr<nsIUpdate>>& updates, nsIUpdate **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectUpdate(updates, _retval); } \
NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDownloadListener(listener); } \
NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDownloadListener(listener); } \
NS_IMETHOD DownloadUpdate(nsIUpdate *update, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadUpdate(update, _retval); } \
NS_IMETHOD OnCheckComplete(nsIUpdateCheckResult *result, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCheckComplete(result, _retval); } \
NS_IMETHOD StopDownload(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopDownload(_retval); } \
NS_IMETHOD GetDisabled(bool *aDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
NS_IMETHOD GetCanUsuallyCheckForUpdates(bool *aCanUsuallyCheckForUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanUsuallyCheckForUpdates(aCanUsuallyCheckForUpdates); } \
NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanCheckForUpdates(aCanCheckForUpdates); } \
NS_IMETHOD GetElevationRequired(bool *aElevationRequired) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElevationRequired(aElevationRequired); } \
NS_IMETHOD GetCanUsuallyApplyUpdates(bool *aCanUsuallyApplyUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanUsuallyApplyUpdates(aCanUsuallyApplyUpdates); } \
NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanApplyUpdates(aCanApplyUpdates); } \
NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsOtherInstanceHandlingUpdates(aIsOtherInstanceHandlingUpdates); } \
NS_IMETHOD GetCanUsuallyStageUpdates(bool *aCanUsuallyStageUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanUsuallyStageUpdates(aCanUsuallyStageUpdates); } \
NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanStageUpdates(aCanStageUpdates); } \
NS_IMETHOD GetCanUsuallyUseBits(bool *aCanUsuallyUseBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanUsuallyUseBits(aCanUsuallyUseBits); } \
NS_IMETHOD GetCanUseBits(bool *aCanUseBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanUseBits(aCanUseBits); } \
NS_IMETHOD GetManualUpdateOnly(bool *aManualUpdateOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManualUpdateOnly(aManualUpdateOnly); } \
NS_IMETHOD GetIsAppBaseDirWritable(bool *aIsAppBaseDirWritable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAppBaseDirWritable(aIsAppBaseDirWritable); } \
NS_IMETHOD GetOnlyDownloadUpdatesThisSession(bool *aOnlyDownloadUpdatesThisSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlyDownloadUpdatesThisSession(aOnlyDownloadUpdatesThisSession); } \
NS_IMETHOD SetOnlyDownloadUpdatesThisSession(bool aOnlyDownloadUpdatesThisSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnlyDownloadUpdatesThisSession(aOnlyDownloadUpdatesThisSession); } \
NS_IMETHOD GetStateName(int32_t state, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStateName(state, _retval); } \
NS_IMETHOD GetCurrentState(int32_t *aCurrentState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentState(aCurrentState); } \
NS_IMETHOD GetStateTransition(::mozilla::dom::Promise * * aStateTransition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStateTransition(aStateTransition); }
/* starting interface: nsIUpdateProcessor */
#define NS_IUPDATEPROCESSOR_IID_STR "74439497-d796-4915-8cef-3dfe43027e4d"
#define NS_IUPDATEPROCESSOR_IID \
{0x74439497, 0xd796, 0x4915, \
{ 0x8c, 0xef, 0x3d, 0xfe, 0x43, 0x02, 0x7e, 0x4d }}
class NS_NO_VTABLE nsIUpdateProcessor : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATEPROCESSOR_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdateProcessor;
/* void processUpdate (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ProcessUpdate(void) = 0;
/* boolean getServiceRegKeyExists (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServiceRegKeyExists(bool *_retval) = 0;
/* long attemptAutomaticApplicationRestartWithLaunchArgs (in Array<AString> argvExtra); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AttemptAutomaticApplicationRestartWithLaunchArgs(const nsTArray<nsString >& argvExtra, int32_t *_retval) = 0;
/* void waitForProcessExit (in unsigned long pid, in unsigned long timeoutMS); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WaitForProcessExit(uint32_t pid, uint32_t timeoutMS) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateProcessor, NS_IUPDATEPROCESSOR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATEPROCESSOR \
NS_IMETHOD ProcessUpdate(void) override; \
NS_IMETHOD GetServiceRegKeyExists(bool *_retval) override; \
NS_IMETHOD AttemptAutomaticApplicationRestartWithLaunchArgs(const nsTArray<nsString >& argvExtra, int32_t *_retval) override; \
NS_IMETHOD WaitForProcessExit(uint32_t pid, uint32_t timeoutMS) 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_NSIUPDATEPROCESSOR \
nsresult ProcessUpdate(void); \
nsresult GetServiceRegKeyExists(bool *_retval); \
nsresult AttemptAutomaticApplicationRestartWithLaunchArgs(const nsTArray<nsString >& argvExtra, int32_t *_retval); \
nsresult WaitForProcessExit(uint32_t pid, uint32_t timeoutMS);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATEPROCESSOR(_to) \
NS_IMETHOD ProcessUpdate(void) override { return _to ProcessUpdate(); } \
NS_IMETHOD GetServiceRegKeyExists(bool *_retval) override { return _to GetServiceRegKeyExists(_retval); } \
NS_IMETHOD AttemptAutomaticApplicationRestartWithLaunchArgs(const nsTArray<nsString >& argvExtra, int32_t *_retval) override { return _to AttemptAutomaticApplicationRestartWithLaunchArgs(argvExtra, _retval); } \
NS_IMETHOD WaitForProcessExit(uint32_t pid, uint32_t timeoutMS) override { return _to WaitForProcessExit(pid, timeoutMS); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIUPDATEPROCESSOR(_to) \
NS_IMETHOD ProcessUpdate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessUpdate(); } \
NS_IMETHOD GetServiceRegKeyExists(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceRegKeyExists(_retval); } \
NS_IMETHOD AttemptAutomaticApplicationRestartWithLaunchArgs(const nsTArray<nsString >& argvExtra, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AttemptAutomaticApplicationRestartWithLaunchArgs(argvExtra, _retval); } \
NS_IMETHOD WaitForProcessExit(uint32_t pid, uint32_t timeoutMS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WaitForProcessExit(pid, timeoutMS); }
/* starting interface: nsIUpdateSyncManager */
#define NS_IUPDATESYNCMANAGER_IID_STR "cf4c4487-66d9-4e18-a2e9-39002245332f"
#define NS_IUPDATESYNCMANAGER_IID \
{0xcf4c4487, 0x66d9, 0x4e18, \
{ 0xa2, 0xe9, 0x39, 0x00, 0x22, 0x45, 0x33, 0x2f }}
class NS_NO_VTABLE nsIUpdateSyncManager : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATESYNCMANAGER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdateSyncManager;
/* boolean isOtherInstanceRunning (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsOtherInstanceRunning(bool *_retval) = 0;
/* void resetLock ([optional] in nsIFile anAppFile); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetLock(nsIFile *anAppFile) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateSyncManager, NS_IUPDATESYNCMANAGER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATESYNCMANAGER \
NS_IMETHOD IsOtherInstanceRunning(bool *_retval) override; \
NS_IMETHOD ResetLock(nsIFile *anAppFile) 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_NSIUPDATESYNCMANAGER \
nsresult IsOtherInstanceRunning(bool *_retval); \
nsresult ResetLock(nsIFile *anAppFile);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATESYNCMANAGER(_to) \
NS_IMETHOD IsOtherInstanceRunning(bool *_retval) override { return _to IsOtherInstanceRunning(_retval); } \
NS_IMETHOD ResetLock(nsIFile *anAppFile) override { return _to ResetLock(anAppFile); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIUPDATESYNCMANAGER(_to) \
NS_IMETHOD IsOtherInstanceRunning(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsOtherInstanceRunning(_retval); } \
NS_IMETHOD ResetLock(nsIFile *anAppFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetLock(anAppFile); }
/* starting interface: nsIUpdateManager */
#define NS_IUPDATEMANAGER_IID_STR "0f1098e9-a447-4af9-b030-6f8f35c85f89"
#define NS_IUPDATEMANAGER_IID \
{0x0f1098e9, 0xa447, 0x4af9, \
{ 0xb0, 0x30, 0x6f, 0x8f, 0x35, 0xc8, 0x5f, 0x89 }}
class NS_NO_VTABLE nsIUpdateManager : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATEMANAGER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUpdateManager;
/* nsIUpdate getUpdateAt (in long index); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate **_retval) = 0;
/* long getUpdateCount (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUpdateCount(int32_t *_retval) = 0;
/* attribute nsIUpdate readyUpdate; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReadyUpdate(nsIUpdate **aReadyUpdate) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetReadyUpdate(nsIUpdate *aReadyUpdate) = 0;
/* attribute nsIUpdate downloadingUpdate; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDownloadingUpdate(nsIUpdate **aDownloadingUpdate) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDownloadingUpdate(nsIUpdate *aDownloadingUpdate) = 0;
/* void addUpdateToHistory (in nsIUpdate update); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddUpdateToHistory(nsIUpdate *update) = 0;
/* void saveUpdates (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveUpdates(void) = 0;
/* Promise refreshUpdateStatus (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RefreshUpdateStatus(::mozilla::dom::Promise * * _retval) = 0;
/* void elevationOptedIn (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ElevationOptedIn(void) = 0;
/* void cleanupDownloadingUpdate (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CleanupDownloadingUpdate(void) = 0;
/* void cleanupReadyUpdate (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CleanupReadyUpdate(void) = 0;
/* Promise doInstallCleanup (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DoInstallCleanup(::mozilla::dom::Promise * * _retval) = 0;
/* Promise doUninstallCleanup (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DoUninstallCleanup(::mozilla::dom::Promise * * _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateManager, NS_IUPDATEMANAGER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUPDATEMANAGER \
NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate **_retval) override; \
NS_IMETHOD GetUpdateCount(int32_t *_retval) override; \
NS_IMETHOD GetReadyUpdate(nsIUpdate **aReadyUpdate) override; \
NS_IMETHOD SetReadyUpdate(nsIUpdate *aReadyUpdate) override; \
NS_IMETHOD GetDownloadingUpdate(nsIUpdate **aDownloadingUpdate) override; \
NS_IMETHOD SetDownloadingUpdate(nsIUpdate *aDownloadingUpdate) override; \
NS_IMETHOD AddUpdateToHistory(nsIUpdate *update) override; \
NS_IMETHOD SaveUpdates(void) override; \
NS_IMETHOD RefreshUpdateStatus(::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD ElevationOptedIn(void) override; \
NS_IMETHOD CleanupDownloadingUpdate(void) override; \
NS_IMETHOD CleanupReadyUpdate(void) override; \
NS_IMETHOD DoInstallCleanup(::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD DoUninstallCleanup(::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_NSIUPDATEMANAGER \
nsresult GetUpdateAt(int32_t index, nsIUpdate **_retval); \
nsresult GetUpdateCount(int32_t *_retval); \
nsresult GetReadyUpdate(nsIUpdate **aReadyUpdate); \
nsresult SetReadyUpdate(nsIUpdate *aReadyUpdate); \
nsresult GetDownloadingUpdate(nsIUpdate **aDownloadingUpdate); \
nsresult SetDownloadingUpdate(nsIUpdate *aDownloadingUpdate); \
nsresult AddUpdateToHistory(nsIUpdate *update); \
nsresult SaveUpdates(void); \
nsresult RefreshUpdateStatus(::mozilla::dom::Promise * * _retval); \
nsresult ElevationOptedIn(void); \
nsresult CleanupDownloadingUpdate(void); \
nsresult CleanupReadyUpdate(void); \
nsresult DoInstallCleanup(::mozilla::dom::Promise * * _retval); \
nsresult DoUninstallCleanup(::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUPDATEMANAGER(_to) \
NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate **_retval) override { return _to GetUpdateAt(index, _retval); } \
NS_IMETHOD GetUpdateCount(int32_t *_retval) override { return _to GetUpdateCount(_retval); } \
NS_IMETHOD GetReadyUpdate(nsIUpdate **aReadyUpdate) override { return _to GetReadyUpdate(aReadyUpdate); } \
NS_IMETHOD SetReadyUpdate(nsIUpdate *aReadyUpdate) override { return _to SetReadyUpdate(aReadyUpdate); } \
NS_IMETHOD GetDownloadingUpdate(nsIUpdate **aDownloadingUpdate) override { return _to GetDownloadingUpdate(aDownloadingUpdate); } \
NS_IMETHOD SetDownloadingUpdate(nsIUpdate *aDownloadingUpdate) override { return _to SetDownloadingUpdate(aDownloadingUpdate); } \
NS_IMETHOD AddUpdateToHistory(nsIUpdate *update) override { return _to AddUpdateToHistory(update); } \
NS_IMETHOD SaveUpdates(void) override { return _to SaveUpdates(); } \
NS_IMETHOD RefreshUpdateStatus(::mozilla::dom::Promise * * _retval) override { return _to RefreshUpdateStatus(_retval); } \
NS_IMETHOD ElevationOptedIn(void) override { return _to ElevationOptedIn(); } \
NS_IMETHOD CleanupDownloadingUpdate(void) override { return _to CleanupDownloadingUpdate(); } \
NS_IMETHOD CleanupReadyUpdate(void) override { return _to CleanupReadyUpdate(); } \
NS_IMETHOD DoInstallCleanup(::mozilla::dom::Promise * * _retval) override { return _to DoInstallCleanup(_retval); } \
NS_IMETHOD DoUninstallCleanup(::mozilla::dom::Promise * * _retval) override { return _to DoUninstallCleanup(_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_NSIUPDATEMANAGER(_to) \
NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdateAt(index, _retval); } \
NS_IMETHOD GetUpdateCount(int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdateCount(_retval); } \
NS_IMETHOD GetReadyUpdate(nsIUpdate **aReadyUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyUpdate(aReadyUpdate); } \
NS_IMETHOD SetReadyUpdate(nsIUpdate *aReadyUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadyUpdate(aReadyUpdate); } \
NS_IMETHOD GetDownloadingUpdate(nsIUpdate **aDownloadingUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadingUpdate(aDownloadingUpdate); } \
NS_IMETHOD SetDownloadingUpdate(nsIUpdate *aDownloadingUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDownloadingUpdate(aDownloadingUpdate); } \
NS_IMETHOD AddUpdateToHistory(nsIUpdate *update) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddUpdateToHistory(update); } \
NS_IMETHOD SaveUpdates(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveUpdates(); } \
NS_IMETHOD RefreshUpdateStatus(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshUpdateStatus(_retval); } \
NS_IMETHOD ElevationOptedIn(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ElevationOptedIn(); } \
NS_IMETHOD CleanupDownloadingUpdate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanupDownloadingUpdate(); } \
NS_IMETHOD CleanupReadyUpdate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanupReadyUpdate(); } \
NS_IMETHOD DoInstallCleanup(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoInstallCleanup(_retval); } \
NS_IMETHOD DoUninstallCleanup(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoUninstallCleanup(_retval); }
#endif /* __gen_nsIUpdateService_h__ */