Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/browser/components/shell/nsIGNOMEShellService.idl
*/
#ifndef __gen_nsIGNOMEShellService_h__
#define __gen_nsIGNOMEShellService_h__
#include "nsIShellService.h"
#include "js/Value.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 nsIINIParserWriter; /* forward declaration */
class mozIDOMWindowProxy; /* forward declaration */
/* starting interface: nsIGNOMEShellService */
#define NS_IGNOMESHELLSERVICE_IID_STR "2ce5c803-edcd-443d-98eb-ceba86d02d13"
#define NS_IGNOMESHELLSERVICE_IID \
{0x2ce5c803, 0xedcd, 0x443d, \
{ 0x98, 0xeb, 0xce, 0xba, 0x86, 0xd0, 0x2d, 0x13 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIGNOMEShellService) nsIGNOMEShellService : public nsIShellService {
public:
NS_INLINE_DECL_STATIC_IID(NS_IGNOMESHELLSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGNOMEShellService;
/* readonly attribute boolean canSetDesktopBackground; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGNOMEShellService_canSetDesktopBackground)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanSetDesktopBackground(bool *aCanSetDesktopBackground) = 0;
/* boolean isDefaultForScheme (in AUTF8String aScheme); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_isDefaultForScheme)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsDefaultForScheme(const nsACString& aScheme, bool *_retval) = 0;
/* AUTF8String getGSettingsString (in AUTF8String aScheme, in AUTF8String aKey); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getGSettingsString)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGSettingsString(const nsACString& aScheme, const nsACString& aKey, nsACString& _retval) = 0;
/* void setGSettingsString (in AUTF8String aScheme, in AUTF8String aKey, in AUTF8String aValue); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_setGSettingsString)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetGSettingsString(const nsACString& aScheme, const nsACString& aKey, const nsACString& aValue) = 0;
/* ACString getArgv0 (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getArgv0)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetArgv0(nsACString& _retval) = 0;
/* ACString getGlibPrgname (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getGlibPrgname)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGlibPrgname(nsACString& _retval) = 0;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIGNOMEShellService_DesktopEntryStatus) DesktopEntryStatus : uint8_t {
DESKTOP_ENTRY_ABSENT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIGNOMEShellService_DesktopEntryStatus_DESKTOP_ENTRY_ABSENT) = 0,
DESKTOP_ENTRY_INVISIBLE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIGNOMEShellService_DesktopEntryStatus_DESKTOP_ENTRY_INVISIBLE) = 1,
DESKTOP_ENTRY_VISIBLE MOZ_BINDING(binding_to, idl, const, XPIDL_nsIGNOMEShellService_DesktopEntryStatus_DESKTOP_ENTRY_VISIBLE) = 2,
};
/* nsIGNOMEShellService_DesktopEntryStatus getDesktopEntryStatus (in AUTF8String aEntryId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getDesktopEntryStatus)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDesktopEntryStatus(const nsACString& aEntryId, nsIGNOMEShellService::DesktopEntryStatus *_retval) = 0;
/* [implicit_jscontext] Promise requestInstallDynamicLauncher (in AUTF8String aEntryId, in nsIINIParserWriter aDesktopEntry, in mozIDOMWindowProxy aWindow); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_requestInstallDynamicLauncher)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RequestInstallDynamicLauncher(const nsACString& aEntryId, nsIINIParserWriter *aDesktopEntry, mozIDOMWindowProxy *aWindow, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise requestUninstallDynamicLauncher (in AUTF8String aEntryId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_requestUninstallDynamicLauncher)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RequestUninstallDynamicLauncher(const nsACString& aEntryId, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGNOMESHELLSERVICE \
NS_IMETHOD GetCanSetDesktopBackground(bool *aCanSetDesktopBackground) override; \
NS_IMETHOD IsDefaultForScheme(const nsACString& aScheme, bool *_retval) override; \
NS_IMETHOD GetGSettingsString(const nsACString& aScheme, const nsACString& aKey, nsACString& _retval) override; \
NS_IMETHOD SetGSettingsString(const nsACString& aScheme, const nsACString& aKey, const nsACString& aValue) override; \
NS_IMETHOD GetArgv0(nsACString& _retval) override; \
NS_IMETHOD GetGlibPrgname(nsACString& _retval) override; \
NS_IMETHOD GetDesktopEntryStatus(const nsACString& aEntryId, nsIGNOMEShellService::DesktopEntryStatus *_retval) override; \
NS_IMETHOD RequestInstallDynamicLauncher(const nsACString& aEntryId, nsIINIParserWriter *aDesktopEntry, mozIDOMWindowProxy *aWindow, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD RequestUninstallDynamicLauncher(const nsACString& aEntryId, JSContext* cx, ::mozilla::dom::Promise * * _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_NSIGNOMESHELLSERVICE \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGNOMEShellService_canSetDesktopBackground)\
nsresult GetCanSetDesktopBackground(bool *aCanSetDesktopBackground); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_isDefaultForScheme)\
nsresult IsDefaultForScheme(const nsACString& aScheme, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getGSettingsString)\
nsresult GetGSettingsString(const nsACString& aScheme, const nsACString& aKey, nsACString& _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_setGSettingsString)\
nsresult SetGSettingsString(const nsACString& aScheme, const nsACString& aKey, const nsACString& aValue); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getArgv0)\
nsresult GetArgv0(nsACString& _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getGlibPrgname)\
nsresult GetGlibPrgname(nsACString& _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_getDesktopEntryStatus)\
nsresult GetDesktopEntryStatus(const nsACString& aEntryId, nsIGNOMEShellService::DesktopEntryStatus *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_requestInstallDynamicLauncher)\
nsresult RequestInstallDynamicLauncher(const nsACString& aEntryId, nsIINIParserWriter *aDesktopEntry, mozIDOMWindowProxy *aWindow, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGNOMEShellService_requestUninstallDynamicLauncher)\
nsresult RequestUninstallDynamicLauncher(const nsACString& aEntryId, JSContext* cx, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGNOMESHELLSERVICE(_to) \
NS_IMETHOD GetCanSetDesktopBackground(bool *aCanSetDesktopBackground) override { return _to GetCanSetDesktopBackground(aCanSetDesktopBackground); } \
NS_IMETHOD IsDefaultForScheme(const nsACString& aScheme, bool *_retval) override { return _to IsDefaultForScheme(aScheme, _retval); } \
NS_IMETHOD GetGSettingsString(const nsACString& aScheme, const nsACString& aKey, nsACString& _retval) override { return _to GetGSettingsString(aScheme, aKey, _retval); } \
NS_IMETHOD SetGSettingsString(const nsACString& aScheme, const nsACString& aKey, const nsACString& aValue) override { return _to SetGSettingsString(aScheme, aKey, aValue); } \
NS_IMETHOD GetArgv0(nsACString& _retval) override { return _to GetArgv0(_retval); } \
NS_IMETHOD GetGlibPrgname(nsACString& _retval) override { return _to GetGlibPrgname(_retval); } \
NS_IMETHOD GetDesktopEntryStatus(const nsACString& aEntryId, nsIGNOMEShellService::DesktopEntryStatus *_retval) override { return _to GetDesktopEntryStatus(aEntryId, _retval); } \
NS_IMETHOD RequestInstallDynamicLauncher(const nsACString& aEntryId, nsIINIParserWriter *aDesktopEntry, mozIDOMWindowProxy *aWindow, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to RequestInstallDynamicLauncher(aEntryId, aDesktopEntry, aWindow, cx, _retval); } \
NS_IMETHOD RequestUninstallDynamicLauncher(const nsACString& aEntryId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to RequestUninstallDynamicLauncher(aEntryId, cx, _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_NSIGNOMESHELLSERVICE(_to) \
NS_IMETHOD GetCanSetDesktopBackground(bool *aCanSetDesktopBackground) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanSetDesktopBackground(aCanSetDesktopBackground); } \
NS_IMETHOD IsDefaultForScheme(const nsACString& aScheme, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultForScheme(aScheme, _retval); } \
NS_IMETHOD GetGSettingsString(const nsACString& aScheme, const nsACString& aKey, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGSettingsString(aScheme, aKey, _retval); } \
NS_IMETHOD SetGSettingsString(const nsACString& aScheme, const nsACString& aKey, const nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGSettingsString(aScheme, aKey, aValue); } \
NS_IMETHOD GetArgv0(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArgv0(_retval); } \
NS_IMETHOD GetGlibPrgname(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlibPrgname(_retval); } \
NS_IMETHOD GetDesktopEntryStatus(const nsACString& aEntryId, nsIGNOMEShellService::DesktopEntryStatus *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesktopEntryStatus(aEntryId, _retval); } \
NS_IMETHOD RequestInstallDynamicLauncher(const nsACString& aEntryId, nsIINIParserWriter *aDesktopEntry, mozIDOMWindowProxy *aWindow, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestInstallDynamicLauncher(aEntryId, aDesktopEntry, aWindow, cx, _retval); } \
NS_IMETHOD RequestUninstallDynamicLauncher(const nsACString& aEntryId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestUninstallDynamicLauncher(aEntryId, cx, _retval); }
#endif /* __gen_nsIGNOMEShellService_h__ */