Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIMacWebAppUtils.idl
*/
#ifndef __gen_nsIMacWebAppUtils_h__
#define __gen_nsIMacWebAppUtils_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
class nsIMacWebAppUtils; /* forward declaration */
/* starting interface: nsITrashAppCallback */
#define NS_ITRASHAPPCALLBACK_IID_STR "8c899c4f-58c1-4b74-9034-3bb64e484b68"
#define NS_ITRASHAPPCALLBACK_IID \
{0x8c899c4f, 0x58c1, 0x4b74, \
{ 0x90, 0x34, 0x3b, 0xb6, 0x4e, 0x48, 0x4b, 0x68 }}
class NS_NO_VTABLE nsITrashAppCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRASHAPPCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITrashAppCallback;
/* void trashAppFinished (in nsresult rv); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TrashAppFinished(nsresult rv) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITrashAppCallback, NS_ITRASHAPPCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITRASHAPPCALLBACK \
NS_IMETHOD TrashAppFinished(nsresult rv) 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_NSITRASHAPPCALLBACK \
nsresult TrashAppFinished(nsresult rv);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITRASHAPPCALLBACK(_to) \
NS_IMETHOD TrashAppFinished(nsresult rv) override { return _to TrashAppFinished(rv); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITRASHAPPCALLBACK(_to) \
NS_IMETHOD TrashAppFinished(nsresult rv) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TrashAppFinished(rv); }
/* starting interface: nsIMacWebAppUtils */
#define NS_IMACWEBAPPUTILS_IID_STR "c69cf343-ea41-428b-b161-4655fd54d8e7"
#define NS_IMACWEBAPPUTILS_IID \
{0xc69cf343, 0xea41, 0x428b, \
{ 0xb1, 0x61, 0x46, 0x55, 0xfd, 0x54, 0xd8, 0xe7 }}
class NS_NO_VTABLE nsIMacWebAppUtils : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMACWEBAPPUTILS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMacWebAppUtils;
/* AString pathForAppWithIdentifier (in AString bundleIdentifier); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PathForAppWithIdentifier(const nsAString& bundleIdentifier, nsAString& _retval) = 0;
/* void launchAppWithIdentifier (in AString bundleIdentifier); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LaunchAppWithIdentifier(const nsAString& bundleIdentifier) = 0;
/* void trashApp (in AString path, in nsITrashAppCallback callback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TrashApp(const nsAString& path, nsITrashAppCallback *callback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMacWebAppUtils, NS_IMACWEBAPPUTILS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMACWEBAPPUTILS \
NS_IMETHOD PathForAppWithIdentifier(const nsAString& bundleIdentifier, nsAString& _retval) override; \
NS_IMETHOD LaunchAppWithIdentifier(const nsAString& bundleIdentifier) override; \
NS_IMETHOD TrashApp(const nsAString& path, nsITrashAppCallback *callback) 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_NSIMACWEBAPPUTILS \
nsresult PathForAppWithIdentifier(const nsAString& bundleIdentifier, nsAString& _retval); \
nsresult LaunchAppWithIdentifier(const nsAString& bundleIdentifier); \
nsresult TrashApp(const nsAString& path, nsITrashAppCallback *callback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMACWEBAPPUTILS(_to) \
NS_IMETHOD PathForAppWithIdentifier(const nsAString& bundleIdentifier, nsAString& _retval) override { return _to PathForAppWithIdentifier(bundleIdentifier, _retval); } \
NS_IMETHOD LaunchAppWithIdentifier(const nsAString& bundleIdentifier) override { return _to LaunchAppWithIdentifier(bundleIdentifier); } \
NS_IMETHOD TrashApp(const nsAString& path, nsITrashAppCallback *callback) override { return _to TrashApp(path, callback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMACWEBAPPUTILS(_to) \
NS_IMETHOD PathForAppWithIdentifier(const nsAString& bundleIdentifier, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PathForAppWithIdentifier(bundleIdentifier, _retval); } \
NS_IMETHOD LaunchAppWithIdentifier(const nsAString& bundleIdentifier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchAppWithIdentifier(bundleIdentifier); } \
NS_IMETHOD TrashApp(const nsAString& path, nsITrashAppCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TrashApp(path, callback); }
#endif /* __gen_nsIMacWebAppUtils_h__ */