Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/remote/nsIRemoteService.idl
*/
#ifndef __gen_nsIRemoteService_h__
#define __gen_nsIRemoteService_h__
#include "nsISupports.h"
#include "nsTArray.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIRemoteService */
#define NS_IREMOTESERVICE_IID_STR "f4ef671b-838c-48fd-bc44-0f6cf63bce91"
#define NS_IREMOTESERVICE_IID \
{0xf4ef671b, 0x838c, 0x48fd, \
{ 0xbc, 0x44, 0x0f, 0x6c, 0xf6, 0x3b, 0xce, 0x91 }}
class NS_NO_VTABLE nsIRemoteService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREMOTESERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIRemoteService;
/* void sendCommandLine (in ACString aProfile, in Array<ACString> aArgs, [optional] in boolean aRaise); */
NS_IMETHOD SendCommandLine(const nsACString& aProfile, const nsTArray<nsCString >& aArgs, bool aRaise) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIRemoteService, NS_IREMOTESERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIREMOTESERVICE \
NS_IMETHOD SendCommandLine(const nsACString& aProfile, const nsTArray<nsCString >& aArgs, bool aRaise) 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_NSIREMOTESERVICE \
nsresult SendCommandLine(const nsACString& aProfile, const nsTArray<nsCString >& aArgs, bool aRaise);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIREMOTESERVICE(_to) \
NS_IMETHOD SendCommandLine(const nsACString& aProfile, const nsTArray<nsCString >& aArgs, bool aRaise) override { return _to SendCommandLine(aProfile, aArgs, aRaise); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIREMOTESERVICE(_to) \
NS_IMETHOD SendCommandLine(const nsACString& aProfile, const nsTArray<nsCString >& aArgs, bool aRaise) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendCommandLine(aProfile, aArgs, aRaise); }
#endif /* __gen_nsIRemoteService_h__ */