Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/windows/nsIAlertsServiceRust.idl
*/
#ifndef __gen_nsIAlertsServiceRust_h__
#define __gen_nsIAlertsServiceRust_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: nsIAlertsServiceRust */
#define NS_IALERTSSERVICERUST_IID_STR "a732b9d7-36cd-491d-b2d4-f157a63f524b"
#define NS_IALERTSSERVICERUST_IID \
{0xa732b9d7, 0x36cd, 0x491d, \
{ 0xb2, 0xd4, 0xf1, 0x57, 0xa6, 0x3f, 0x52, 0x4b }}
class NS_NO_VTABLE nsIAlertsServiceRust : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IALERTSSERVICERUST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAlertsServiceRust;
/* Array<AString> getHistory (in AString aAumid); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHistory(const nsAString& aAumid, nsTArray<nsString >& _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIALERTSSERVICERUST \
NS_IMETHOD GetHistory(const nsAString& aAumid, nsTArray<nsString >& _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_NSIALERTSSERVICERUST \
nsresult GetHistory(const nsAString& aAumid, nsTArray<nsString >& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIALERTSSERVICERUST(_to) \
NS_IMETHOD GetHistory(const nsAString& aAumid, nsTArray<nsString >& _retval) override { return _to GetHistory(aAumid, _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_NSIALERTSSERVICERUST(_to) \
NS_IMETHOD GetHistory(const nsAString& aAumid, nsTArray<nsString >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHistory(aAumid, _retval); }
#endif /* __gen_nsIAlertsServiceRust_h__ */