/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/io/nsILocalFileWin.idl */ #ifndef __gen_nsILocalFileWin_h__ #define __gen_nsILocalFileWin_h__ #include "nsIFile.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif // %{C++:9-9 struct PRFileDesc; // %} /* starting interface: nsILocalFileWin */ #define NS_ILOCALFILEWIN_IID_STR "e7a3a954-384b-4aeb-a5f7-55626b0de9be" #define NS_ILOCALFILEWIN_IID \ {0xe7a3a954, 0x384b, 0x4aeb, \ { 0xa5, 0xf7, 0x55, 0x62, 0x6b, 0x0d, 0xe9, 0xbe }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsILocalFileWin) nsILocalFileWin : public nsIFile { public: NS_INLINE_DECL_STATIC_IID(NS_ILOCALFILEWIN_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsILocalFileWin; /* void initWithCommandLine (in AString aCommandLine); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_initWithCommandLine) NS_IMETHOD InitWithCommandLine(const nsAString& aCommandLine) = 0; /* AString getVersionInfoField (in string aField); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_getVersionInfoField) NS_IMETHOD GetVersionInfoField(const char * aField, nsAString& _retval) = 0; /* [noscript] readonly attribute AString canonicalPath; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsILocalFileWin_canonicalPath) NS_IMETHOD GetCanonicalPath(nsAString& aCanonicalPath) = 0; /* attribute boolean readOnly; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsILocalFileWin_readOnly) NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsILocalFileWin_readOnly) NS_IMETHOD SetReadOnly(bool aReadOnly) = 0; /* attribute boolean useDOSDevicePathSyntax; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsILocalFileWin_useDOSDevicePathSyntax) NS_IMETHOD GetUseDOSDevicePathSyntax(bool *aUseDOSDevicePathSyntax) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsILocalFileWin_useDOSDevicePathSyntax) NS_IMETHOD SetUseDOSDevicePathSyntax(bool aUseDOSDevicePathSyntax) = 0; /* [noscript] PRFileDescStar openNSPRFileDescShareDelete (in long flags, in long mode); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_openNSPRFileDescShareDelete) NS_IMETHOD OpenNSPRFileDescShareDelete(int32_t flags, int32_t mode, PRFileDesc * * _retval) = 0; /* [noscript] unsigned long getWindowsFileAttributes (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_getWindowsFileAttributes) NS_IMETHOD GetWindowsFileAttributes(uint32_t *_retval) = 0; /* [noscript] void setWindowsFileAttributes (in unsigned long aSetAttrs, in unsigned long aClearAttrs); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_setWindowsFileAttributes) NS_IMETHOD SetWindowsFileAttributes(uint32_t aSetAttrs, uint32_t aClearAttrs) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSILOCALFILEWIN \ NS_IMETHOD InitWithCommandLine(const nsAString& aCommandLine) override; \ NS_IMETHOD GetVersionInfoField(const char * aField, nsAString& _retval) override; \ NS_IMETHOD GetCanonicalPath(nsAString& aCanonicalPath) override; \ NS_IMETHOD GetReadOnly(bool *aReadOnly) override; \ NS_IMETHOD SetReadOnly(bool aReadOnly) override; \ NS_IMETHOD GetUseDOSDevicePathSyntax(bool *aUseDOSDevicePathSyntax) override; \ NS_IMETHOD SetUseDOSDevicePathSyntax(bool aUseDOSDevicePathSyntax) override; \ NS_IMETHOD OpenNSPRFileDescShareDelete(int32_t flags, int32_t mode, PRFileDesc * * _retval) override; \ NS_IMETHOD GetWindowsFileAttributes(uint32_t *_retval) override; \ NS_IMETHOD SetWindowsFileAttributes(uint32_t aSetAttrs, uint32_t aClearAttrs) 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_NSILOCALFILEWIN \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_initWithCommandLine)\ nsresult InitWithCommandLine(const nsAString& aCommandLine); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_getVersionInfoField)\ nsresult GetVersionInfoField(const char * aField, nsAString& _retval); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsILocalFileWin_canonicalPath)\ nsresult GetCanonicalPath(nsAString& aCanonicalPath); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsILocalFileWin_readOnly)\ nsresult GetReadOnly(bool *aReadOnly); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsILocalFileWin_readOnly)\ nsresult SetReadOnly(bool aReadOnly); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsILocalFileWin_useDOSDevicePathSyntax)\ nsresult GetUseDOSDevicePathSyntax(bool *aUseDOSDevicePathSyntax); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsILocalFileWin_useDOSDevicePathSyntax)\ nsresult SetUseDOSDevicePathSyntax(bool aUseDOSDevicePathSyntax); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_openNSPRFileDescShareDelete)\ nsresult OpenNSPRFileDescShareDelete(int32_t flags, int32_t mode, PRFileDesc * * _retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_getWindowsFileAttributes)\ nsresult GetWindowsFileAttributes(uint32_t *_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsILocalFileWin_setWindowsFileAttributes)\ nsresult SetWindowsFileAttributes(uint32_t aSetAttrs, uint32_t aClearAttrs); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSILOCALFILEWIN(_to) \ NS_IMETHOD InitWithCommandLine(const nsAString& aCommandLine) override { return _to InitWithCommandLine(aCommandLine); } \ NS_IMETHOD GetVersionInfoField(const char * aField, nsAString& _retval) override { return _to GetVersionInfoField(aField, _retval); } \ NS_IMETHOD GetCanonicalPath(nsAString& aCanonicalPath) override { return _to GetCanonicalPath(aCanonicalPath); } \ NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return _to GetReadOnly(aReadOnly); } \ NS_IMETHOD SetReadOnly(bool aReadOnly) override { return _to SetReadOnly(aReadOnly); } \ NS_IMETHOD GetUseDOSDevicePathSyntax(bool *aUseDOSDevicePathSyntax) override { return _to GetUseDOSDevicePathSyntax(aUseDOSDevicePathSyntax); } \ NS_IMETHOD SetUseDOSDevicePathSyntax(bool aUseDOSDevicePathSyntax) override { return _to SetUseDOSDevicePathSyntax(aUseDOSDevicePathSyntax); } \ NS_IMETHOD OpenNSPRFileDescShareDelete(int32_t flags, int32_t mode, PRFileDesc * * _retval) override { return _to OpenNSPRFileDescShareDelete(flags, mode, _retval); } \ NS_IMETHOD GetWindowsFileAttributes(uint32_t *_retval) override { return _to GetWindowsFileAttributes(_retval); } \ NS_IMETHOD SetWindowsFileAttributes(uint32_t aSetAttrs, uint32_t aClearAttrs) override { return _to SetWindowsFileAttributes(aSetAttrs, aClearAttrs); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSILOCALFILEWIN(_to) \ NS_IMETHOD InitWithCommandLine(const nsAString& aCommandLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithCommandLine(aCommandLine); } \ NS_IMETHOD GetVersionInfoField(const char * aField, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersionInfoField(aField, _retval); } \ NS_IMETHOD GetCanonicalPath(nsAString& aCanonicalPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanonicalPath(aCanonicalPath); } \ NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \ NS_IMETHOD SetReadOnly(bool aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \ NS_IMETHOD GetUseDOSDevicePathSyntax(bool *aUseDOSDevicePathSyntax) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseDOSDevicePathSyntax(aUseDOSDevicePathSyntax); } \ NS_IMETHOD SetUseDOSDevicePathSyntax(bool aUseDOSDevicePathSyntax) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseDOSDevicePathSyntax(aUseDOSDevicePathSyntax); } \ NS_IMETHOD OpenNSPRFileDescShareDelete(int32_t flags, int32_t mode, PRFileDesc * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenNSPRFileDescShareDelete(flags, mode, _retval); } \ NS_IMETHOD GetWindowsFileAttributes(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowsFileAttributes(_retval); } \ NS_IMETHOD SetWindowsFileAttributes(uint32_t aSetAttrs, uint32_t aClearAttrs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindowsFileAttributes(aSetAttrs, aClearAttrs); } #endif /* __gen_nsILocalFileWin_h__ */