Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/remote/components/nsIRemoteAgent.idl
*/
#ifndef __gen_nsIRemoteAgent_h__
#define __gen_nsIRemoteAgent_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: nsIRemoteAgent */
#define NS_IREMOTEAGENT_IID_STR "8f685a9d-8181-46d6-a71d-869289099c6d"
#define NS_IREMOTEAGENT_IID \
{0x8f685a9d, 0x8181, 0x46d6, \
{ 0xa7, 0x1d, 0x86, 0x92, 0x89, 0x09, 0x9c, 0x6d }}
class NS_NO_VTABLE nsIRemoteAgent : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREMOTEAGENT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIRemoteAgent;
/* readonly attribute AString debuggerAddress; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDebuggerAddress(nsAString& aDebuggerAddress) = 0;
/* readonly attribute boolean running; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRunning(bool *aRunning) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIRemoteAgent, NS_IREMOTEAGENT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIREMOTEAGENT \
NS_IMETHOD GetDebuggerAddress(nsAString& aDebuggerAddress) override; \
NS_IMETHOD GetRunning(bool *aRunning) 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_NSIREMOTEAGENT \
nsresult GetDebuggerAddress(nsAString& aDebuggerAddress); \
nsresult GetRunning(bool *aRunning);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIREMOTEAGENT(_to) \
NS_IMETHOD GetDebuggerAddress(nsAString& aDebuggerAddress) override { return _to GetDebuggerAddress(aDebuggerAddress); } \
NS_IMETHOD GetRunning(bool *aRunning) override { return _to GetRunning(aRunning); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIREMOTEAGENT(_to) \
NS_IMETHOD GetDebuggerAddress(nsAString& aDebuggerAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDebuggerAddress(aDebuggerAddress); } \
NS_IMETHOD GetRunning(bool *aRunning) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRunning(aRunning); }
#define NS_REMOTEAGENT_CONTRACTID "@mozilla.org/remote/agent;1"
#endif /* __gen_nsIRemoteAgent_h__ */