Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/streamconv/nsIDirIndexListener.idl
*/
#ifndef __gen_nsIDirIndexListener_h__
#define __gen_nsIDirIndexListener_h__
#include "nsIStreamListener.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 nsIDirIndex; /* forward declaration */
/* starting interface: nsIDirIndexListener */
#define NS_IDIRINDEXLISTENER_IID_STR "fae4e9a8-1dd1-11b2-b53c-8f3aa1bbf8f5"
#define NS_IDIRINDEXLISTENER_IID \
{0xfae4e9a8, 0x1dd1, 0x11b2, \
{ 0xb5, 0x3c, 0x8f, 0x3a, 0xa1, 0xbb, 0xf8, 0xf5 }}
class NS_NO_VTABLE nsIDirIndexListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRINDEXLISTENER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIDirIndexListener;
/* void onIndexAvailable (in nsIRequest aRequest, in nsIDirIndex aIndex); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsIDirIndex *aIndex) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirIndexListener, NS_IDIRINDEXLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDIRINDEXLISTENER \
NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsIDirIndex *aIndex) 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_NSIDIRINDEXLISTENER \
nsresult OnIndexAvailable(nsIRequest *aRequest, nsIDirIndex *aIndex);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDIRINDEXLISTENER(_to) \
NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsIDirIndex *aIndex) override { return _to OnIndexAvailable(aRequest, aIndex); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDIRINDEXLISTENER(_to) \
NS_IMETHOD OnIndexAvailable(nsIRequest *aRequest, nsIDirIndex *aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnIndexAvailable(aRequest, aIndex); }
/* starting interface: nsIDirIndexParser */
#define NS_IDIRINDEXPARSER_IID_STR "38e3066c-1dd2-11b2-9b59-8be515c1ee3f"
#define NS_IDIRINDEXPARSER_IID \
{0x38e3066c, 0x1dd2, 0x11b2, \
{ 0x9b, 0x59, 0x8b, 0xe5, 0x15, 0xc1, 0xee, 0x3f }}
class NS_NO_VTABLE nsIDirIndexParser : public nsIStreamListener {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRINDEXPARSER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIDirIndexParser;
/* attribute nsIDirIndexListener listener; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetListener(nsIDirIndexListener **aListener) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetListener(nsIDirIndexListener *aListener) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirIndexParser, NS_IDIRINDEXPARSER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDIRINDEXPARSER \
NS_IMETHOD GetListener(nsIDirIndexListener **aListener) override; \
NS_IMETHOD SetListener(nsIDirIndexListener *aListener) 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_NSIDIRINDEXPARSER \
nsresult GetListener(nsIDirIndexListener **aListener); \
nsresult SetListener(nsIDirIndexListener *aListener);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDIRINDEXPARSER(_to) \
NS_IMETHOD GetListener(nsIDirIndexListener **aListener) override { return _to GetListener(aListener); } \
NS_IMETHOD SetListener(nsIDirIndexListener *aListener) override { return _to SetListener(aListener); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDIRINDEXPARSER(_to) \
NS_IMETHOD GetListener(nsIDirIndexListener **aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
NS_IMETHOD SetListener(nsIDirIndexListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); }
#endif /* __gen_nsIDirIndexListener_h__ */