Copy as Markdown

Other Tools

/*
* 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
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 nsILocalFileWin : public nsIFile {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALFILEWIN_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILocalFileWin;
/* void initWithCommandLine (in AString aCommandLine); */
NS_IMETHOD InitWithCommandLine(const nsAString& aCommandLine) = 0;
/* AString getVersionInfoField (in string aField); */
NS_IMETHOD GetVersionInfoField(const char * aField, nsAString& _retval) = 0;
/* [noscript] readonly attribute AString canonicalPath; */
NS_IMETHOD GetCanonicalPath(nsAString& aCanonicalPath) = 0;
/* attribute boolean readOnly; */
NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;
/* attribute boolean useDOSDevicePathSyntax; */
NS_IMETHOD GetUseDOSDevicePathSyntax(bool *aUseDOSDevicePathSyntax) = 0;
NS_IMETHOD SetUseDOSDevicePathSyntax(bool aUseDOSDevicePathSyntax) = 0;
/* [noscript] PRFileDescStar openNSPRFileDescShareDelete (in long flags, in long mode); */
NS_IMETHOD OpenNSPRFileDescShareDelete(int32_t flags, int32_t mode, PRFileDesc * * _retval) = 0;
/* [noscript] unsigned long getWindowsFileAttributes (); */
NS_IMETHOD GetWindowsFileAttributes(uint32_t *_retval) = 0;
/* [noscript] void setWindowsFileAttributes (in unsigned long aSetAttrs, in unsigned long aClearAttrs); */
NS_IMETHOD SetWindowsFileAttributes(uint32_t aSetAttrs, uint32_t aClearAttrs) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalFileWin, NS_ILOCALFILEWIN_IID)
/* 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 \
nsresult InitWithCommandLine(const nsAString& aCommandLine); \
nsresult GetVersionInfoField(const char * aField, nsAString& _retval); \
nsresult GetCanonicalPath(nsAString& aCanonicalPath); \
nsresult GetReadOnly(bool *aReadOnly); \
nsresult SetReadOnly(bool aReadOnly); \
nsresult GetUseDOSDevicePathSyntax(bool *aUseDOSDevicePathSyntax); \
nsresult SetUseDOSDevicePathSyntax(bool aUseDOSDevicePathSyntax); \
nsresult OpenNSPRFileDescShareDelete(int32_t flags, int32_t mode, PRFileDesc * * _retval); \
nsresult GetWindowsFileAttributes(uint32_t *_retval); \
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__ */