/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/system/nsIGIOService.idl */ #ifndef __gen_nsIGIOService_h__ #define __gen_nsIGIOService_h__ #include "nsISupports.h" #include "nsIMIMEInfo.h" #include "js/GCAnnotations.h" #include "mozilla/AlreadyAddRefed.h" #include "mozilla/Assertions.h" #include "mozilla/DebugOnly.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsIUTF8StringEnumerator; /* forward declaration */ class nsIURI; /* forward declaration */ class nsIFile; /* forward declaration */ class nsIMutableArray; /* forward declaration */ /* starting interface: nsIGIOHandlerApp */ #define NS_IGIOHANDLERAPP_IID_STR "eb5a6937-addc-4d5d-85e6-f11798f90a0a" #define NS_IGIOHANDLERAPP_IID \ {0xeb5a6937, 0xaddc, 0x4d5d, \ { 0x85, 0xe6, 0xf1, 0x17, 0x98, 0xf9, 0x0a, 0x0a }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIGIOHandlerApp) nsIGIOHandlerApp : public nsIHandlerApp { public: NS_INLINE_DECL_STATIC_IID(NS_IGIOHANDLERAPP_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIGIOHandlerApp; /* readonly attribute AUTF8String id; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOHandlerApp_id) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(nsACString& aId) = 0; /* void launchFile (in AUTF8String fileName); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOHandlerApp_launchFile) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LaunchFile(const nsACString& fileName) = 0; /* AUTF8String getMozIconURL (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOHandlerApp_getMozIconURL) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMozIconURL(nsACString& _retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIGIOHANDLERAPP \ NS_IMETHOD GetId(nsACString& aId) override; \ NS_IMETHOD LaunchFile(const nsACString& fileName) override; \ NS_IMETHOD GetMozIconURL(nsACString& _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_NSIGIOHANDLERAPP \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOHandlerApp_id)\ nsresult GetId(nsACString& aId); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOHandlerApp_launchFile)\ nsresult LaunchFile(const nsACString& fileName); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOHandlerApp_getMozIconURL)\ nsresult GetMozIconURL(nsACString& _retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIGIOHANDLERAPP(_to) \ NS_IMETHOD GetId(nsACString& aId) override { return _to GetId(aId); } \ NS_IMETHOD LaunchFile(const nsACString& fileName) override { return _to LaunchFile(fileName); } \ NS_IMETHOD GetMozIconURL(nsACString& _retval) override { return _to GetMozIconURL(_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_NSIGIOHANDLERAPP(_to) \ NS_IMETHOD GetId(nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \ NS_IMETHOD LaunchFile(const nsACString& fileName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchFile(fileName); } \ NS_IMETHOD GetMozIconURL(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozIconURL(_retval); } /* starting interface: nsIGIOMimeApp */ #define NS_IGIOMIMEAPP_IID_STR "ca6bad0c-8a48-48ac-82c7-27bb8f510fbe" #define NS_IGIOMIMEAPP_IID \ {0xca6bad0c, 0x8a48, 0x48ac, \ { 0x82, 0xc7, 0x27, 0xbb, 0x8f, 0x51, 0x0f, 0xbe }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIGIOMimeApp) nsIGIOMimeApp : public nsIHandlerApp { public: NS_INLINE_DECL_STATIC_IID(NS_IGIOMIMEAPP_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIGIOMimeApp; enum { EXPECTS_URIS MOZ_BINDING(binding_to, idl, const, XPIDL_nsIGIOMimeApp_EXPECTS_URIS) = 0, EXPECTS_PATHS MOZ_BINDING(binding_to, idl, const, XPIDL_nsIGIOMimeApp_EXPECTS_PATHS) = 1, EXPECTS_URIS_FOR_NON_FILES MOZ_BINDING(binding_to, idl, const, XPIDL_nsIGIOMimeApp_EXPECTS_URIS_FOR_NON_FILES) = 2 }; /* readonly attribute AUTF8String id; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_id) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(nsACString& aId) = 0; /* readonly attribute AUTF8String command; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_command) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCommand(nsACString& aCommand) = 0; /* readonly attribute long expectsURIs; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_expectsURIs) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetExpectsURIs(int32_t *aExpectsURIs) = 0; /* readonly attribute nsIUTF8StringEnumerator supportedURISchemes; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_supportedURISchemes) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator **aSupportedURISchemes) = 0; /* void setAsDefaultForMimeType (in AUTF8String mimeType); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOMimeApp_setAsDefaultForMimeType) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAsDefaultForMimeType(const nsACString& mimeType) = 0; /* void setAsDefaultForFileExtensions (in AUTF8String extensions); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOMimeApp_setAsDefaultForFileExtensions) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAsDefaultForFileExtensions(const nsACString& extensions) = 0; /* void setAsDefaultForURIScheme (in AUTF8String uriScheme); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOMimeApp_setAsDefaultForURIScheme) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAsDefaultForURIScheme(const nsACString& uriScheme) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIGIOMIMEAPP \ NS_IMETHOD GetId(nsACString& aId) override; \ NS_IMETHOD GetCommand(nsACString& aCommand) override; \ NS_IMETHOD GetExpectsURIs(int32_t *aExpectsURIs) override; \ NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator **aSupportedURISchemes) override; \ NS_IMETHOD SetAsDefaultForMimeType(const nsACString& mimeType) override; \ NS_IMETHOD SetAsDefaultForFileExtensions(const nsACString& extensions) override; \ NS_IMETHOD SetAsDefaultForURIScheme(const nsACString& uriScheme) 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_NSIGIOMIMEAPP \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_id)\ nsresult GetId(nsACString& aId); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_command)\ nsresult GetCommand(nsACString& aCommand); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_expectsURIs)\ nsresult GetExpectsURIs(int32_t *aExpectsURIs); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOMimeApp_supportedURISchemes)\ nsresult GetSupportedURISchemes(nsIUTF8StringEnumerator **aSupportedURISchemes); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOMimeApp_setAsDefaultForMimeType)\ nsresult SetAsDefaultForMimeType(const nsACString& mimeType); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOMimeApp_setAsDefaultForFileExtensions)\ nsresult SetAsDefaultForFileExtensions(const nsACString& extensions); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOMimeApp_setAsDefaultForURIScheme)\ nsresult SetAsDefaultForURIScheme(const nsACString& uriScheme); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIGIOMIMEAPP(_to) \ NS_IMETHOD GetId(nsACString& aId) override { return _to GetId(aId); } \ NS_IMETHOD GetCommand(nsACString& aCommand) override { return _to GetCommand(aCommand); } \ NS_IMETHOD GetExpectsURIs(int32_t *aExpectsURIs) override { return _to GetExpectsURIs(aExpectsURIs); } \ NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator **aSupportedURISchemes) override { return _to GetSupportedURISchemes(aSupportedURISchemes); } \ NS_IMETHOD SetAsDefaultForMimeType(const nsACString& mimeType) override { return _to SetAsDefaultForMimeType(mimeType); } \ NS_IMETHOD SetAsDefaultForFileExtensions(const nsACString& extensions) override { return _to SetAsDefaultForFileExtensions(extensions); } \ NS_IMETHOD SetAsDefaultForURIScheme(const nsACString& uriScheme) override { return _to SetAsDefaultForURIScheme(uriScheme); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIGIOMIMEAPP(_to) \ NS_IMETHOD GetId(nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \ NS_IMETHOD GetCommand(nsACString& aCommand) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommand(aCommand); } \ NS_IMETHOD GetExpectsURIs(int32_t *aExpectsURIs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpectsURIs(aExpectsURIs); } \ NS_IMETHOD GetSupportedURISchemes(nsIUTF8StringEnumerator **aSupportedURISchemes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedURISchemes(aSupportedURISchemes); } \ NS_IMETHOD SetAsDefaultForMimeType(const nsACString& mimeType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsDefaultForMimeType(mimeType); } \ NS_IMETHOD SetAsDefaultForFileExtensions(const nsACString& extensions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsDefaultForFileExtensions(extensions); } \ NS_IMETHOD SetAsDefaultForURIScheme(const nsACString& uriScheme) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsDefaultForURIScheme(uriScheme); } /* starting interface: nsIGIOService */ #define NS_IGIOSERVICE_IID_STR "51583703-cafc-4769-9ff1-edb349151930" #define NS_IGIOSERVICE_IID \ {0x51583703, 0xcafc, 0x4769, \ { 0x9f, 0xf1, 0xed, 0xb3, 0x49, 0x15, 0x19, 0x30 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIGIOService) nsIGIOService : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IGIOSERVICE_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIGIOService; /* AUTF8String getMimeTypeFromExtension (in AUTF8String extension); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getMimeTypeFromExtension) NS_IMETHOD GetMimeTypeFromExtension(const nsACString& extension, nsACString& _retval) = 0; /* nsIHandlerApp getAppForURIScheme (in AUTF8String aURIScheme); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getAppForURIScheme) NS_IMETHOD GetAppForURIScheme(const nsACString& aURIScheme, nsIHandlerApp **_retval) = 0; /* nsIMutableArray getAppsForURIScheme (in AUTF8String aURIScheme); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getAppsForURIScheme) NS_IMETHOD GetAppsForURIScheme(const nsACString& aURIScheme, nsIMutableArray **_retval) = 0; /* nsIHandlerApp getAppForMimeType (in AUTF8String mimeType); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getAppForMimeType) NS_IMETHOD GetAppForMimeType(const nsACString& mimeType, nsIHandlerApp **_retval) = 0; /* nsIGIOHandlerApp createHandlerAppFromAppId (in string appId); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_createHandlerAppFromAppId) NS_IMETHOD CreateHandlerAppFromAppId(const char * appId, nsIGIOHandlerApp **_retval) = 0; /* nsIGIOMimeApp createAppFromCommand (in AUTF8String cmd, in AUTF8String appName); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_createAppFromCommand) NS_IMETHOD CreateAppFromCommand(const nsACString& cmd, const nsACString& appName, nsIGIOMimeApp **_retval) = 0; /* nsIGIOMimeApp findAppFromCommand (in AUTF8String cmd); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_findAppFromCommand) NS_IMETHOD FindAppFromCommand(const nsACString& cmd, nsIGIOMimeApp **_retval) = 0; /* AUTF8String getDescriptionForMimeType (in AUTF8String mimeType); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getDescriptionForMimeType) NS_IMETHOD GetDescriptionForMimeType(const nsACString& mimeType, nsACString& _retval) = 0; /* [infallible] readonly attribute boolean isRunningUnderFlatpak; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOService_isRunningUnderFlatpak) NS_IMETHOD GetIsRunningUnderFlatpak(bool *aIsRunningUnderFlatpak) = 0; inline bool GetIsRunningUnderFlatpak() { bool result; mozilla::DebugOnly rv = GetIsRunningUnderFlatpak(&result); MOZ_ASSERT(NS_SUCCEEDED(rv)); return result; } /* [infallible] readonly attribute boolean isRunningUnderSnap; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOService_isRunningUnderSnap) NS_IMETHOD GetIsRunningUnderSnap(bool *aIsRunningUnderSnap) = 0; inline bool GetIsRunningUnderSnap() { bool result; mozilla::DebugOnly rv = GetIsRunningUnderSnap(&result); MOZ_ASSERT(NS_SUCCEEDED(rv)); return result; } /* [noscript] void showURI (in nsIURI uri); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_showURI) NS_IMETHOD ShowURI(nsIURI *uri) = 0; /* [noscript] void revealFile (in nsIFile file); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_revealFile) NS_IMETHOD RevealFile(nsIFile *file) = 0; /* [noscript] void launchFile (in ACString path); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_launchFile) NS_IMETHOD LaunchFile(const nsACString& path) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIGIOSERVICE \ NS_IMETHOD GetMimeTypeFromExtension(const nsACString& extension, nsACString& _retval) override; \ NS_IMETHOD GetAppForURIScheme(const nsACString& aURIScheme, nsIHandlerApp **_retval) override; \ NS_IMETHOD GetAppsForURIScheme(const nsACString& aURIScheme, nsIMutableArray **_retval) override; \ NS_IMETHOD GetAppForMimeType(const nsACString& mimeType, nsIHandlerApp **_retval) override; \ NS_IMETHOD CreateHandlerAppFromAppId(const char * appId, nsIGIOHandlerApp **_retval) override; \ NS_IMETHOD CreateAppFromCommand(const nsACString& cmd, const nsACString& appName, nsIGIOMimeApp **_retval) override; \ NS_IMETHOD FindAppFromCommand(const nsACString& cmd, nsIGIOMimeApp **_retval) override; \ NS_IMETHOD GetDescriptionForMimeType(const nsACString& mimeType, nsACString& _retval) override; \ using nsIGIOService::GetIsRunningUnderFlatpak; \ NS_IMETHOD GetIsRunningUnderFlatpak(bool *aIsRunningUnderFlatpak) override; \ using nsIGIOService::GetIsRunningUnderSnap; \ NS_IMETHOD GetIsRunningUnderSnap(bool *aIsRunningUnderSnap) override; \ NS_IMETHOD ShowURI(nsIURI *uri) override; \ NS_IMETHOD RevealFile(nsIFile *file) override; \ NS_IMETHOD LaunchFile(const nsACString& path) 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_NSIGIOSERVICE \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getMimeTypeFromExtension)\ nsresult GetMimeTypeFromExtension(const nsACString& extension, nsACString& _retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getAppForURIScheme)\ nsresult GetAppForURIScheme(const nsACString& aURIScheme, nsIHandlerApp **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getAppsForURIScheme)\ nsresult GetAppsForURIScheme(const nsACString& aURIScheme, nsIMutableArray **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getAppForMimeType)\ nsresult GetAppForMimeType(const nsACString& mimeType, nsIHandlerApp **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_createHandlerAppFromAppId)\ nsresult CreateHandlerAppFromAppId(const char * appId, nsIGIOHandlerApp **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_createAppFromCommand)\ nsresult CreateAppFromCommand(const nsACString& cmd, const nsACString& appName, nsIGIOMimeApp **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_findAppFromCommand)\ nsresult FindAppFromCommand(const nsACString& cmd, nsIGIOMimeApp **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_getDescriptionForMimeType)\ nsresult GetDescriptionForMimeType(const nsACString& mimeType, nsACString& _retval); \ using nsIGIOService::GetIsRunningUnderFlatpak; \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOService_isRunningUnderFlatpak)\ nsresult GetIsRunningUnderFlatpak(bool *aIsRunningUnderFlatpak); \ using nsIGIOService::GetIsRunningUnderSnap; \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIGIOService_isRunningUnderSnap)\ nsresult GetIsRunningUnderSnap(bool *aIsRunningUnderSnap); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_showURI)\ nsresult ShowURI(nsIURI *uri); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_revealFile)\ nsresult RevealFile(nsIFile *file); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIGIOService_launchFile)\ nsresult LaunchFile(const nsACString& path); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIGIOSERVICE(_to) \ NS_IMETHOD GetMimeTypeFromExtension(const nsACString& extension, nsACString& _retval) override { return _to GetMimeTypeFromExtension(extension, _retval); } \ NS_IMETHOD GetAppForURIScheme(const nsACString& aURIScheme, nsIHandlerApp **_retval) override { return _to GetAppForURIScheme(aURIScheme, _retval); } \ NS_IMETHOD GetAppsForURIScheme(const nsACString& aURIScheme, nsIMutableArray **_retval) override { return _to GetAppsForURIScheme(aURIScheme, _retval); } \ NS_IMETHOD GetAppForMimeType(const nsACString& mimeType, nsIHandlerApp **_retval) override { return _to GetAppForMimeType(mimeType, _retval); } \ NS_IMETHOD CreateHandlerAppFromAppId(const char * appId, nsIGIOHandlerApp **_retval) override { return _to CreateHandlerAppFromAppId(appId, _retval); } \ NS_IMETHOD CreateAppFromCommand(const nsACString& cmd, const nsACString& appName, nsIGIOMimeApp **_retval) override { return _to CreateAppFromCommand(cmd, appName, _retval); } \ NS_IMETHOD FindAppFromCommand(const nsACString& cmd, nsIGIOMimeApp **_retval) override { return _to FindAppFromCommand(cmd, _retval); } \ NS_IMETHOD GetDescriptionForMimeType(const nsACString& mimeType, nsACString& _retval) override { return _to GetDescriptionForMimeType(mimeType, _retval); } \ using nsIGIOService::GetIsRunningUnderFlatpak; \ NS_IMETHOD GetIsRunningUnderFlatpak(bool *aIsRunningUnderFlatpak) override { return _to GetIsRunningUnderFlatpak(aIsRunningUnderFlatpak); } \ using nsIGIOService::GetIsRunningUnderSnap; \ NS_IMETHOD GetIsRunningUnderSnap(bool *aIsRunningUnderSnap) override { return _to GetIsRunningUnderSnap(aIsRunningUnderSnap); } \ NS_IMETHOD ShowURI(nsIURI *uri) override { return _to ShowURI(uri); } \ NS_IMETHOD RevealFile(nsIFile *file) override { return _to RevealFile(file); } \ NS_IMETHOD LaunchFile(const nsACString& path) override { return _to LaunchFile(path); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIGIOSERVICE(_to) \ NS_IMETHOD GetMimeTypeFromExtension(const nsACString& extension, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeTypeFromExtension(extension, _retval); } \ NS_IMETHOD GetAppForURIScheme(const nsACString& aURIScheme, nsIHandlerApp **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppForURIScheme(aURIScheme, _retval); } \ NS_IMETHOD GetAppsForURIScheme(const nsACString& aURIScheme, nsIMutableArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppsForURIScheme(aURIScheme, _retval); } \ NS_IMETHOD GetAppForMimeType(const nsACString& mimeType, nsIHandlerApp **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppForMimeType(mimeType, _retval); } \ NS_IMETHOD CreateHandlerAppFromAppId(const char * appId, nsIGIOHandlerApp **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateHandlerAppFromAppId(appId, _retval); } \ NS_IMETHOD CreateAppFromCommand(const nsACString& cmd, const nsACString& appName, nsIGIOMimeApp **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAppFromCommand(cmd, appName, _retval); } \ NS_IMETHOD FindAppFromCommand(const nsACString& cmd, nsIGIOMimeApp **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAppFromCommand(cmd, _retval); } \ NS_IMETHOD GetDescriptionForMimeType(const nsACString& mimeType, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescriptionForMimeType(mimeType, _retval); } \ NS_IMETHOD GetIsRunningUnderFlatpak(bool *aIsRunningUnderFlatpak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRunningUnderFlatpak(aIsRunningUnderFlatpak); } \ NS_IMETHOD GetIsRunningUnderSnap(bool *aIsRunningUnderSnap) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRunningUnderSnap(aIsRunningUnderSnap); } \ NS_IMETHOD ShowURI(nsIURI *uri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowURI(uri); } \ NS_IMETHOD RevealFile(nsIFile *file) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RevealFile(file); } \ NS_IMETHOD LaunchFile(const nsACString& path) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchFile(path); } // %{C++:99-99 #define NS_GIOSERVICE_CONTRACTID "@mozilla.org/gio-service;1" // %} #endif /* __gen_nsIGIOService_h__ */