Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIMacFinderProgress.idl
*/
#ifndef __gen_nsIMacFinderProgress_h__
#define __gen_nsIMacFinderProgress_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: nsIMacFinderProgressCanceledCallback */
#define NS_IMACFINDERPROGRESSCANCELEDCALLBACK_IID_STR "6bae6d1c-7ffd-4354-8d7b-64697e98a801"
#define NS_IMACFINDERPROGRESSCANCELEDCALLBACK_IID \
{0x6bae6d1c, 0x7ffd, 0x4354, \
{ 0x8d, 0x7b, 0x64, 0x69, 0x7e, 0x98, 0xa8, 0x01 }}
class NS_NO_VTABLE nsIMacFinderProgressCanceledCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMACFINDERPROGRESSCANCELEDCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMacFinderProgressCanceledCallback;
/* void canceled (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Canceled(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMacFinderProgressCanceledCallback, NS_IMACFINDERPROGRESSCANCELEDCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMACFINDERPROGRESSCANCELEDCALLBACK \
NS_IMETHOD Canceled(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_NSIMACFINDERPROGRESSCANCELEDCALLBACK \
nsresult Canceled(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMACFINDERPROGRESSCANCELEDCALLBACK(_to) \
NS_IMETHOD Canceled(void) override { return _to Canceled(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMACFINDERPROGRESSCANCELEDCALLBACK(_to) \
NS_IMETHOD Canceled(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Canceled(); }
/* starting interface: nsIMacFinderProgress */
#define NS_IMACFINDERPROGRESS_IID_STR "25a0b01f-54d4-4aef-b2bf-c5764cdc68a8"
#define NS_IMACFINDERPROGRESS_IID \
{0x25a0b01f, 0x54d4, 0x4aef, \
{ 0xb2, 0xbf, 0xc5, 0x76, 0x4c, 0xdc, 0x68, 0xa8 }}
class NS_NO_VTABLE nsIMacFinderProgress : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMACFINDERPROGRESS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMacFinderProgress;
/* void init (in AString path, in nsIMacFinderProgressCanceledCallback canceledCallback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(const nsAString& path, nsIMacFinderProgressCanceledCallback *canceledCallback) = 0;
/* void updateProgress (in unsigned long long currentProgress, in unsigned long long totalProgress); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateProgress(uint64_t currentProgress, uint64_t totalProgress) = 0;
/* void end (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD End(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMacFinderProgress, NS_IMACFINDERPROGRESS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMACFINDERPROGRESS \
NS_IMETHOD Init(const nsAString& path, nsIMacFinderProgressCanceledCallback *canceledCallback) override; \
NS_IMETHOD UpdateProgress(uint64_t currentProgress, uint64_t totalProgress) override; \
NS_IMETHOD End(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_NSIMACFINDERPROGRESS \
nsresult Init(const nsAString& path, nsIMacFinderProgressCanceledCallback *canceledCallback); \
nsresult UpdateProgress(uint64_t currentProgress, uint64_t totalProgress); \
nsresult End(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMACFINDERPROGRESS(_to) \
NS_IMETHOD Init(const nsAString& path, nsIMacFinderProgressCanceledCallback *canceledCallback) override { return _to Init(path, canceledCallback); } \
NS_IMETHOD UpdateProgress(uint64_t currentProgress, uint64_t totalProgress) override { return _to UpdateProgress(currentProgress, totalProgress); } \
NS_IMETHOD End(void) override { return _to End(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMACFINDERPROGRESS(_to) \
NS_IMETHOD Init(const nsAString& path, nsIMacFinderProgressCanceledCallback *canceledCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(path, canceledCallback); } \
NS_IMETHOD UpdateProgress(uint64_t currentProgress, uint64_t totalProgress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateProgress(currentProgress, totalProgress); } \
NS_IMETHOD End(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->End(); }
#endif /* __gen_nsIMacFinderProgress_h__ */