LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIFile.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFile.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIFile_h__
       6             : #define __gen_nsIFile_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : struct PRFileDesc;
      18             : struct PRLibrary;
      19             : #include <stdio.h>
      20             : class nsISimpleEnumerator; /* forward declaration */
      21             : 
      22             : 
      23             : /* starting interface:    nsIFile */
      24             : #define NS_IFILE_IID_STR "2fa6884a-ae65-412a-9d4c-ce6e34544ba1"
      25             : 
      26             : #define NS_IFILE_IID \
      27             :   {0x2fa6884a, 0xae65, 0x412a, \
      28             :     { 0x9d, 0x4c, 0xce, 0x6e, 0x34, 0x54, 0x4b, 0xa1 }}
      29             : 
      30       10682 : class NS_NO_VTABLE nsIFile : public nsISupports {
      31             :  public:
      32             : 
      33             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILE_IID)
      34             : 
      35             :   enum {
      36             :     NORMAL_FILE_TYPE = 0U,
      37             :     DIRECTORY_TYPE = 1U
      38             :   };
      39             : 
      40             :   /* void append (in AString node); */
      41             :   NS_IMETHOD Append(const nsAString & node) = 0;
      42             : 
      43             :   /* [noscript] void appendNative (in ACString node); */
      44             :   NS_IMETHOD AppendNative(const nsACString & node) = 0;
      45             : 
      46             :   /* void normalize (); */
      47             :   NS_IMETHOD Normalize(void) = 0;
      48             : 
      49             :   /* [must_use] void create (in unsigned long type, in unsigned long permissions); */
      50             :   MOZ_MUST_USE NS_IMETHOD Create(uint32_t type, uint32_t permissions) = 0;
      51             : 
      52             :   /* attribute AString leafName; */
      53             :   NS_IMETHOD GetLeafName(nsAString & aLeafName) = 0;
      54             :   NS_IMETHOD SetLeafName(const nsAString & aLeafName) = 0;
      55             : 
      56             :   /* [noscript] attribute ACString nativeLeafName; */
      57             :   NS_IMETHOD GetNativeLeafName(nsACString & aNativeLeafName) = 0;
      58             :   NS_IMETHOD SetNativeLeafName(const nsACString & aNativeLeafName) = 0;
      59             : 
      60             :   /* void copyTo (in nsIFile newParentDir, in AString newName); */
      61             :   NS_IMETHOD CopyTo(nsIFile *newParentDir, const nsAString & newName) = 0;
      62             : 
      63             :   /* [noscript] void CopyToNative (in nsIFile newParentDir, in ACString newName); */
      64             :   NS_IMETHOD CopyToNative(nsIFile *newParentDir, const nsACString & newName) = 0;
      65             : 
      66             :   /* void copyToFollowingLinks (in nsIFile newParentDir, in AString newName); */
      67             :   NS_IMETHOD CopyToFollowingLinks(nsIFile *newParentDir, const nsAString & newName) = 0;
      68             : 
      69             :   /* [noscript] void copyToFollowingLinksNative (in nsIFile newParentDir, in ACString newName); */
      70             :   NS_IMETHOD CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString & newName) = 0;
      71             : 
      72             :   /* void moveTo (in nsIFile newParentDir, in AString newName); */
      73             :   NS_IMETHOD MoveTo(nsIFile *newParentDir, const nsAString & newName) = 0;
      74             : 
      75             :   /* [noscript] void moveToNative (in nsIFile newParentDir, in ACString newName); */
      76             :   NS_IMETHOD MoveToNative(nsIFile *newParentDir, const nsACString & newName) = 0;
      77             : 
      78             :   /* void renameTo (in nsIFile newParentDir, in AString newName); */
      79             :   NS_IMETHOD RenameTo(nsIFile *newParentDir, const nsAString & newName) = 0;
      80             : 
      81             :   /* [noscript] void renameToNative (in nsIFile newParentDir, in ACString newName); */
      82             :   NS_IMETHOD RenameToNative(nsIFile *newParentDir, const nsACString & newName) = 0;
      83             : 
      84             :   /* void remove (in boolean recursive); */
      85             :   NS_IMETHOD Remove(bool recursive) = 0;
      86             : 
      87             :   /* attribute unsigned long permissions; */
      88             :   NS_IMETHOD GetPermissions(uint32_t *aPermissions) = 0;
      89             :   NS_IMETHOD SetPermissions(uint32_t aPermissions) = 0;
      90             : 
      91             :   /* attribute unsigned long permissionsOfLink; */
      92             :   NS_IMETHOD GetPermissionsOfLink(uint32_t *aPermissionsOfLink) = 0;
      93             :   NS_IMETHOD SetPermissionsOfLink(uint32_t aPermissionsOfLink) = 0;
      94             : 
      95             :   /* attribute PRTime lastModifiedTime; */
      96             :   NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) = 0;
      97             :   NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime) = 0;
      98             : 
      99             :   /* attribute PRTime lastModifiedTimeOfLink; */
     100             :   NS_IMETHOD GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink) = 0;
     101             :   NS_IMETHOD SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink) = 0;
     102             : 
     103             :   /* attribute int64_t fileSize; */
     104             :   NS_IMETHOD GetFileSize(int64_t *aFileSize) = 0;
     105             :   NS_IMETHOD SetFileSize(int64_t aFileSize) = 0;
     106             : 
     107             :   /* readonly attribute int64_t fileSizeOfLink; */
     108             :   NS_IMETHOD GetFileSizeOfLink(int64_t *aFileSizeOfLink) = 0;
     109             : 
     110             :   /* readonly attribute AString target; */
     111             :   NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
     112             : 
     113             :   /* [noscript] readonly attribute ACString nativeTarget; */
     114             :   NS_IMETHOD GetNativeTarget(nsACString & aNativeTarget) = 0;
     115             : 
     116             :   /* readonly attribute AString path; */
     117             :   NS_IMETHOD GetPath(nsAString & aPath) = 0;
     118             : 
     119             :   /* [noscript] readonly attribute ACString nativePath; */
     120             :   NS_IMETHOD GetNativePath(nsACString & aNativePath) = 0;
     121             : 
     122             :   /* boolean exists (); */
     123             :   NS_IMETHOD Exists(bool *_retval) = 0;
     124             : 
     125             :   /* boolean isWritable (); */
     126             :   NS_IMETHOD IsWritable(bool *_retval) = 0;
     127             : 
     128             :   /* boolean isReadable (); */
     129             :   NS_IMETHOD IsReadable(bool *_retval) = 0;
     130             : 
     131             :   /* boolean isExecutable (); */
     132             :   NS_IMETHOD IsExecutable(bool *_retval) = 0;
     133             : 
     134             :   /* boolean isHidden (); */
     135             :   NS_IMETHOD IsHidden(bool *_retval) = 0;
     136             : 
     137             :   /* boolean isDirectory (); */
     138             :   NS_IMETHOD IsDirectory(bool *_retval) = 0;
     139             : 
     140             :   /* boolean isFile (); */
     141             :   NS_IMETHOD IsFile(bool *_retval) = 0;
     142             : 
     143             :   /* boolean isSymlink (); */
     144             :   NS_IMETHOD IsSymlink(bool *_retval) = 0;
     145             : 
     146             :   /* boolean isSpecial (); */
     147             :   NS_IMETHOD IsSpecial(bool *_retval) = 0;
     148             : 
     149             :   /* [must_use] void createUnique (in unsigned long type, in unsigned long permissions); */
     150             :   MOZ_MUST_USE NS_IMETHOD CreateUnique(uint32_t type, uint32_t permissions) = 0;
     151             : 
     152             :   /* nsIFile clone (); */
     153             :   NS_IMETHOD Clone(nsIFile * *_retval) = 0;
     154             : 
     155             :   /* boolean equals (in nsIFile inFile); */
     156             :   NS_IMETHOD Equals(nsIFile *inFile, bool *_retval) = 0;
     157             : 
     158             :   /* boolean contains (in nsIFile inFile); */
     159             :   NS_IMETHOD Contains(nsIFile *inFile, bool *_retval) = 0;
     160             : 
     161             :   /* readonly attribute nsIFile parent; */
     162             :   NS_IMETHOD GetParent(nsIFile * *aParent) = 0;
     163             : 
     164             :   /* readonly attribute nsISimpleEnumerator directoryEntries; */
     165             :   NS_IMETHOD GetDirectoryEntries(nsISimpleEnumerator * *aDirectoryEntries) = 0;
     166             : 
     167             :   /* void initWithPath (in AString filePath); */
     168             :   NS_IMETHOD InitWithPath(const nsAString & filePath) = 0;
     169             : 
     170             :   /* [noscript] void initWithNativePath (in ACString filePath); */
     171             :   NS_IMETHOD InitWithNativePath(const nsACString & filePath) = 0;
     172             : 
     173             :   /* void initWithFile (in nsIFile aFile); */
     174             :   NS_IMETHOD InitWithFile(nsIFile *aFile) = 0;
     175             : 
     176             :   /* attribute boolean followLinks; */
     177             :   NS_IMETHOD GetFollowLinks(bool *aFollowLinks) = 0;
     178             :   NS_IMETHOD SetFollowLinks(bool aFollowLinks) = 0;
     179             : 
     180             :   enum {
     181             :     OS_READAHEAD = 1073741824U,
     182             :     DELETE_ON_CLOSE = 2147483648U
     183             :   };
     184             : 
     185             :   /* [must_use,noscript] PRFileDescStar openNSPRFileDesc (in long flags, in long mode); */
     186             :   MOZ_MUST_USE NS_IMETHOD OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval) = 0;
     187             : 
     188             :   /* [must_use,noscript] FILE openANSIFileDesc (in string mode); */
     189             :   MOZ_MUST_USE NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval) = 0;
     190             : 
     191             :   /* [must_use,noscript] PRLibraryStar load (); */
     192             :   MOZ_MUST_USE NS_IMETHOD Load(PRLibrary **_retval) = 0;
     193             : 
     194             :   /* [must_use] readonly attribute int64_t diskSpaceAvailable; */
     195             :   MOZ_MUST_USE NS_IMETHOD GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable) = 0;
     196             : 
     197             :   /* void appendRelativePath (in AString relativeFilePath); */
     198             :   NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath) = 0;
     199             : 
     200             :   /* [noscript] void appendRelativeNativePath (in ACString relativeFilePath); */
     201             :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath) = 0;
     202             : 
     203             :   /* [must_use] attribute ACString persistentDescriptor; */
     204             :   MOZ_MUST_USE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor) = 0;
     205             :   MOZ_MUST_USE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor) = 0;
     206             : 
     207             :   /* [must_use] void reveal (); */
     208             :   MOZ_MUST_USE NS_IMETHOD Reveal(void) = 0;
     209             : 
     210             :   /* [must_use] void launch (); */
     211             :   MOZ_MUST_USE NS_IMETHOD Launch(void) = 0;
     212             : 
     213             :   /* [must_use] ACString getRelativeDescriptor (in nsIFile fromFile); */
     214             :   MOZ_MUST_USE NS_IMETHOD GetRelativeDescriptor(nsIFile *fromFile, nsACString & _retval) = 0;
     215             : 
     216             :   /* [must_use] void setRelativeDescriptor (in nsIFile fromFile, in ACString relativeDesc); */
     217             :   MOZ_MUST_USE NS_IMETHOD SetRelativeDescriptor(nsIFile *fromFile, const nsACString & relativeDesc) = 0;
     218             : 
     219             :   /* [must_use] AUTF8String getRelativePath (in nsIFile fromFile); */
     220             :   MOZ_MUST_USE NS_IMETHOD GetRelativePath(nsIFile *fromFile, nsACString & _retval) = 0;
     221             : 
     222             :   /* [must_use] void setRelativePath (in nsIFile fromFile, in AUTF8String relativeDesc); */
     223             :   MOZ_MUST_USE NS_IMETHOD SetRelativePath(nsIFile *fromFile, const nsACString & relativeDesc) = 0;
     224             : 
     225             : };
     226             : 
     227             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIFile, NS_IFILE_IID)
     228             : 
     229             : /* Use this macro when declaring classes that implement this interface. */
     230             : #define NS_DECL_NSIFILE \
     231             :   NS_IMETHOD Append(const nsAString & node) override; \
     232             :   NS_IMETHOD AppendNative(const nsACString & node) override; \
     233             :   NS_IMETHOD Normalize(void) override; \
     234             :   MOZ_MUST_USE NS_IMETHOD Create(uint32_t type, uint32_t permissions) override; \
     235             :   NS_IMETHOD GetLeafName(nsAString & aLeafName) override; \
     236             :   NS_IMETHOD SetLeafName(const nsAString & aLeafName) override; \
     237             :   NS_IMETHOD GetNativeLeafName(nsACString & aNativeLeafName) override; \
     238             :   NS_IMETHOD SetNativeLeafName(const nsACString & aNativeLeafName) override; \
     239             :   NS_IMETHOD CopyTo(nsIFile *newParentDir, const nsAString & newName) override; \
     240             :   NS_IMETHOD CopyToNative(nsIFile *newParentDir, const nsACString & newName) override; \
     241             :   NS_IMETHOD CopyToFollowingLinks(nsIFile *newParentDir, const nsAString & newName) override; \
     242             :   NS_IMETHOD CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString & newName) override; \
     243             :   NS_IMETHOD MoveTo(nsIFile *newParentDir, const nsAString & newName) override; \
     244             :   NS_IMETHOD MoveToNative(nsIFile *newParentDir, const nsACString & newName) override; \
     245             :   NS_IMETHOD RenameTo(nsIFile *newParentDir, const nsAString & newName) override; \
     246             :   NS_IMETHOD RenameToNative(nsIFile *newParentDir, const nsACString & newName) override; \
     247             :   NS_IMETHOD Remove(bool recursive) override; \
     248             :   NS_IMETHOD GetPermissions(uint32_t *aPermissions) override; \
     249             :   NS_IMETHOD SetPermissions(uint32_t aPermissions) override; \
     250             :   NS_IMETHOD GetPermissionsOfLink(uint32_t *aPermissionsOfLink) override; \
     251             :   NS_IMETHOD SetPermissionsOfLink(uint32_t aPermissionsOfLink) override; \
     252             :   NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override; \
     253             :   NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime) override; \
     254             :   NS_IMETHOD GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink) override; \
     255             :   NS_IMETHOD SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink) override; \
     256             :   NS_IMETHOD GetFileSize(int64_t *aFileSize) override; \
     257             :   NS_IMETHOD SetFileSize(int64_t aFileSize) override; \
     258             :   NS_IMETHOD GetFileSizeOfLink(int64_t *aFileSizeOfLink) override; \
     259             :   NS_IMETHOD GetTarget(nsAString & aTarget) override; \
     260             :   NS_IMETHOD GetNativeTarget(nsACString & aNativeTarget) override; \
     261             :   NS_IMETHOD GetPath(nsAString & aPath) override; \
     262             :   NS_IMETHOD GetNativePath(nsACString & aNativePath) override; \
     263             :   NS_IMETHOD Exists(bool *_retval) override; \
     264             :   NS_IMETHOD IsWritable(bool *_retval) override; \
     265             :   NS_IMETHOD IsReadable(bool *_retval) override; \
     266             :   NS_IMETHOD IsExecutable(bool *_retval) override; \
     267             :   NS_IMETHOD IsHidden(bool *_retval) override; \
     268             :   NS_IMETHOD IsDirectory(bool *_retval) override; \
     269             :   NS_IMETHOD IsFile(bool *_retval) override; \
     270             :   NS_IMETHOD IsSymlink(bool *_retval) override; \
     271             :   NS_IMETHOD IsSpecial(bool *_retval) override; \
     272             :   MOZ_MUST_USE NS_IMETHOD CreateUnique(uint32_t type, uint32_t permissions) override; \
     273             :   NS_IMETHOD Clone(nsIFile * *_retval) override; \
     274             :   NS_IMETHOD Equals(nsIFile *inFile, bool *_retval) override; \
     275             :   NS_IMETHOD Contains(nsIFile *inFile, bool *_retval) override; \
     276             :   NS_IMETHOD GetParent(nsIFile * *aParent) override; \
     277             :   NS_IMETHOD GetDirectoryEntries(nsISimpleEnumerator * *aDirectoryEntries) override; \
     278             :   NS_IMETHOD InitWithPath(const nsAString & filePath) override; \
     279             :   NS_IMETHOD InitWithNativePath(const nsACString & filePath) override; \
     280             :   NS_IMETHOD InitWithFile(nsIFile *aFile) override; \
     281             :   NS_IMETHOD GetFollowLinks(bool *aFollowLinks) override; \
     282             :   NS_IMETHOD SetFollowLinks(bool aFollowLinks) override; \
     283             :   MOZ_MUST_USE NS_IMETHOD OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval) override; \
     284             :   MOZ_MUST_USE NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval) override; \
     285             :   MOZ_MUST_USE NS_IMETHOD Load(PRLibrary **_retval) override; \
     286             :   MOZ_MUST_USE NS_IMETHOD GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable) override; \
     287             :   NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath) override; \
     288             :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath) override; \
     289             :   MOZ_MUST_USE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor) override; \
     290             :   MOZ_MUST_USE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor) override; \
     291             :   MOZ_MUST_USE NS_IMETHOD Reveal(void) override; \
     292             :   MOZ_MUST_USE NS_IMETHOD Launch(void) override; \
     293             :   MOZ_MUST_USE NS_IMETHOD GetRelativeDescriptor(nsIFile *fromFile, nsACString & _retval) override; \
     294             :   MOZ_MUST_USE NS_IMETHOD SetRelativeDescriptor(nsIFile *fromFile, const nsACString & relativeDesc) override; \
     295             :   MOZ_MUST_USE NS_IMETHOD GetRelativePath(nsIFile *fromFile, nsACString & _retval) override; \
     296             :   MOZ_MUST_USE NS_IMETHOD SetRelativePath(nsIFile *fromFile, const nsACString & relativeDesc) override; 
     297             : 
     298             : /* Use this macro when declaring the members of this interface when the
     299             :    class doesn't implement the interface. This is useful for forwarding. */
     300             : #define NS_DECL_NON_VIRTUAL_NSIFILE \
     301             :   nsresult Append(const nsAString & node); \
     302             :   nsresult AppendNative(const nsACString & node); \
     303             :   nsresult Normalize(void); \
     304             :   MOZ_MUST_USE nsresult Create(uint32_t type, uint32_t permissions); \
     305             :   nsresult GetLeafName(nsAString & aLeafName); \
     306             :   nsresult SetLeafName(const nsAString & aLeafName); \
     307             :   nsresult GetNativeLeafName(nsACString & aNativeLeafName); \
     308             :   nsresult SetNativeLeafName(const nsACString & aNativeLeafName); \
     309             :   nsresult CopyTo(nsIFile *newParentDir, const nsAString & newName); \
     310             :   nsresult CopyToNative(nsIFile *newParentDir, const nsACString & newName); \
     311             :   nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString & newName); \
     312             :   nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString & newName); \
     313             :   nsresult MoveTo(nsIFile *newParentDir, const nsAString & newName); \
     314             :   nsresult MoveToNative(nsIFile *newParentDir, const nsACString & newName); \
     315             :   nsresult RenameTo(nsIFile *newParentDir, const nsAString & newName); \
     316             :   nsresult RenameToNative(nsIFile *newParentDir, const nsACString & newName); \
     317             :   nsresult Remove(bool recursive); \
     318             :   nsresult GetPermissions(uint32_t *aPermissions); \
     319             :   nsresult SetPermissions(uint32_t aPermissions); \
     320             :   nsresult GetPermissionsOfLink(uint32_t *aPermissionsOfLink); \
     321             :   nsresult SetPermissionsOfLink(uint32_t aPermissionsOfLink); \
     322             :   nsresult GetLastModifiedTime(PRTime *aLastModifiedTime); \
     323             :   nsresult SetLastModifiedTime(PRTime aLastModifiedTime); \
     324             :   nsresult GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink); \
     325             :   nsresult SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink); \
     326             :   nsresult GetFileSize(int64_t *aFileSize); \
     327             :   nsresult SetFileSize(int64_t aFileSize); \
     328             :   nsresult GetFileSizeOfLink(int64_t *aFileSizeOfLink); \
     329             :   nsresult GetTarget(nsAString & aTarget); \
     330             :   nsresult GetNativeTarget(nsACString & aNativeTarget); \
     331             :   nsresult GetPath(nsAString & aPath); \
     332             :   nsresult GetNativePath(nsACString & aNativePath); \
     333             :   nsresult Exists(bool *_retval); \
     334             :   nsresult IsWritable(bool *_retval); \
     335             :   nsresult IsReadable(bool *_retval); \
     336             :   nsresult IsExecutable(bool *_retval); \
     337             :   nsresult IsHidden(bool *_retval); \
     338             :   nsresult IsDirectory(bool *_retval); \
     339             :   nsresult IsFile(bool *_retval); \
     340             :   nsresult IsSymlink(bool *_retval); \
     341             :   nsresult IsSpecial(bool *_retval); \
     342             :   MOZ_MUST_USE nsresult CreateUnique(uint32_t type, uint32_t permissions); \
     343             :   nsresult Clone(nsIFile * *_retval); \
     344             :   nsresult Equals(nsIFile *inFile, bool *_retval); \
     345             :   nsresult Contains(nsIFile *inFile, bool *_retval); \
     346             :   nsresult GetParent(nsIFile * *aParent); \
     347             :   nsresult GetDirectoryEntries(nsISimpleEnumerator * *aDirectoryEntries); \
     348             :   nsresult InitWithPath(const nsAString & filePath); \
     349             :   nsresult InitWithNativePath(const nsACString & filePath); \
     350             :   nsresult InitWithFile(nsIFile *aFile); \
     351             :   nsresult GetFollowLinks(bool *aFollowLinks); \
     352             :   nsresult SetFollowLinks(bool aFollowLinks); \
     353             :   MOZ_MUST_USE nsresult OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval); \
     354             :   MOZ_MUST_USE nsresult OpenANSIFileDesc(const char * mode, FILE **_retval); \
     355             :   MOZ_MUST_USE nsresult Load(PRLibrary **_retval); \
     356             :   MOZ_MUST_USE nsresult GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable); \
     357             :   nsresult AppendRelativePath(const nsAString & relativeFilePath); \
     358             :   nsresult AppendRelativeNativePath(const nsACString & relativeFilePath); \
     359             :   MOZ_MUST_USE nsresult GetPersistentDescriptor(nsACString & aPersistentDescriptor); \
     360             :   MOZ_MUST_USE nsresult SetPersistentDescriptor(const nsACString & aPersistentDescriptor); \
     361             :   MOZ_MUST_USE nsresult Reveal(void); \
     362             :   MOZ_MUST_USE nsresult Launch(void); \
     363             :   MOZ_MUST_USE nsresult GetRelativeDescriptor(nsIFile *fromFile, nsACString & _retval); \
     364             :   MOZ_MUST_USE nsresult SetRelativeDescriptor(nsIFile *fromFile, const nsACString & relativeDesc); \
     365             :   MOZ_MUST_USE nsresult GetRelativePath(nsIFile *fromFile, nsACString & _retval); \
     366             :   MOZ_MUST_USE nsresult SetRelativePath(nsIFile *fromFile, const nsACString & relativeDesc); 
     367             : 
     368             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     369             : #define NS_FORWARD_NSIFILE(_to) \
     370             :   NS_IMETHOD Append(const nsAString & node) override { return _to Append(node); } \
     371             :   NS_IMETHOD AppendNative(const nsACString & node) override { return _to AppendNative(node); } \
     372             :   NS_IMETHOD Normalize(void) override { return _to Normalize(); } \
     373             :   MOZ_MUST_USE NS_IMETHOD Create(uint32_t type, uint32_t permissions) override { return _to Create(type, permissions); } \
     374             :   NS_IMETHOD GetLeafName(nsAString & aLeafName) override { return _to GetLeafName(aLeafName); } \
     375             :   NS_IMETHOD SetLeafName(const nsAString & aLeafName) override { return _to SetLeafName(aLeafName); } \
     376             :   NS_IMETHOD GetNativeLeafName(nsACString & aNativeLeafName) override { return _to GetNativeLeafName(aNativeLeafName); } \
     377             :   NS_IMETHOD SetNativeLeafName(const nsACString & aNativeLeafName) override { return _to SetNativeLeafName(aNativeLeafName); } \
     378             :   NS_IMETHOD CopyTo(nsIFile *newParentDir, const nsAString & newName) override { return _to CopyTo(newParentDir, newName); } \
     379             :   NS_IMETHOD CopyToNative(nsIFile *newParentDir, const nsACString & newName) override { return _to CopyToNative(newParentDir, newName); } \
     380             :   NS_IMETHOD CopyToFollowingLinks(nsIFile *newParentDir, const nsAString & newName) override { return _to CopyToFollowingLinks(newParentDir, newName); } \
     381             :   NS_IMETHOD CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString & newName) override { return _to CopyToFollowingLinksNative(newParentDir, newName); } \
     382             :   NS_IMETHOD MoveTo(nsIFile *newParentDir, const nsAString & newName) override { return _to MoveTo(newParentDir, newName); } \
     383             :   NS_IMETHOD MoveToNative(nsIFile *newParentDir, const nsACString & newName) override { return _to MoveToNative(newParentDir, newName); } \
     384             :   NS_IMETHOD RenameTo(nsIFile *newParentDir, const nsAString & newName) override { return _to RenameTo(newParentDir, newName); } \
     385             :   NS_IMETHOD RenameToNative(nsIFile *newParentDir, const nsACString & newName) override { return _to RenameToNative(newParentDir, newName); } \
     386             :   NS_IMETHOD Remove(bool recursive) override { return _to Remove(recursive); } \
     387             :   NS_IMETHOD GetPermissions(uint32_t *aPermissions) override { return _to GetPermissions(aPermissions); } \
     388             :   NS_IMETHOD SetPermissions(uint32_t aPermissions) override { return _to SetPermissions(aPermissions); } \
     389             :   NS_IMETHOD GetPermissionsOfLink(uint32_t *aPermissionsOfLink) override { return _to GetPermissionsOfLink(aPermissionsOfLink); } \
     390             :   NS_IMETHOD SetPermissionsOfLink(uint32_t aPermissionsOfLink) override { return _to SetPermissionsOfLink(aPermissionsOfLink); } \
     391             :   NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return _to GetLastModifiedTime(aLastModifiedTime); } \
     392             :   NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime) override { return _to SetLastModifiedTime(aLastModifiedTime); } \
     393             :   NS_IMETHOD GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink) override { return _to GetLastModifiedTimeOfLink(aLastModifiedTimeOfLink); } \
     394             :   NS_IMETHOD SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink) override { return _to SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink); } \
     395             :   NS_IMETHOD GetFileSize(int64_t *aFileSize) override { return _to GetFileSize(aFileSize); } \
     396             :   NS_IMETHOD SetFileSize(int64_t aFileSize) override { return _to SetFileSize(aFileSize); } \
     397             :   NS_IMETHOD GetFileSizeOfLink(int64_t *aFileSizeOfLink) override { return _to GetFileSizeOfLink(aFileSizeOfLink); } \
     398             :   NS_IMETHOD GetTarget(nsAString & aTarget) override { return _to GetTarget(aTarget); } \
     399             :   NS_IMETHOD GetNativeTarget(nsACString & aNativeTarget) override { return _to GetNativeTarget(aNativeTarget); } \
     400             :   NS_IMETHOD GetPath(nsAString & aPath) override { return _to GetPath(aPath); } \
     401             :   NS_IMETHOD GetNativePath(nsACString & aNativePath) override { return _to GetNativePath(aNativePath); } \
     402             :   NS_IMETHOD Exists(bool *_retval) override { return _to Exists(_retval); } \
     403             :   NS_IMETHOD IsWritable(bool *_retval) override { return _to IsWritable(_retval); } \
     404             :   NS_IMETHOD IsReadable(bool *_retval) override { return _to IsReadable(_retval); } \
     405             :   NS_IMETHOD IsExecutable(bool *_retval) override { return _to IsExecutable(_retval); } \
     406             :   NS_IMETHOD IsHidden(bool *_retval) override { return _to IsHidden(_retval); } \
     407             :   NS_IMETHOD IsDirectory(bool *_retval) override { return _to IsDirectory(_retval); } \
     408             :   NS_IMETHOD IsFile(bool *_retval) override { return _to IsFile(_retval); } \
     409             :   NS_IMETHOD IsSymlink(bool *_retval) override { return _to IsSymlink(_retval); } \
     410             :   NS_IMETHOD IsSpecial(bool *_retval) override { return _to IsSpecial(_retval); } \
     411             :   MOZ_MUST_USE NS_IMETHOD CreateUnique(uint32_t type, uint32_t permissions) override { return _to CreateUnique(type, permissions); } \
     412             :   NS_IMETHOD Clone(nsIFile * *_retval) override { return _to Clone(_retval); } \
     413             :   NS_IMETHOD Equals(nsIFile *inFile, bool *_retval) override { return _to Equals(inFile, _retval); } \
     414             :   NS_IMETHOD Contains(nsIFile *inFile, bool *_retval) override { return _to Contains(inFile, _retval); } \
     415             :   NS_IMETHOD GetParent(nsIFile * *aParent) override { return _to GetParent(aParent); } \
     416             :   NS_IMETHOD GetDirectoryEntries(nsISimpleEnumerator * *aDirectoryEntries) override { return _to GetDirectoryEntries(aDirectoryEntries); } \
     417             :   NS_IMETHOD InitWithPath(const nsAString & filePath) override { return _to InitWithPath(filePath); } \
     418             :   NS_IMETHOD InitWithNativePath(const nsACString & filePath) override { return _to InitWithNativePath(filePath); } \
     419             :   NS_IMETHOD InitWithFile(nsIFile *aFile) override { return _to InitWithFile(aFile); } \
     420             :   NS_IMETHOD GetFollowLinks(bool *aFollowLinks) override { return _to GetFollowLinks(aFollowLinks); } \
     421             :   NS_IMETHOD SetFollowLinks(bool aFollowLinks) override { return _to SetFollowLinks(aFollowLinks); } \
     422             :   MOZ_MUST_USE NS_IMETHOD OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval) override { return _to OpenNSPRFileDesc(flags, mode, _retval); } \
     423             :   MOZ_MUST_USE NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval) override { return _to OpenANSIFileDesc(mode, _retval); } \
     424             :   MOZ_MUST_USE NS_IMETHOD Load(PRLibrary **_retval) override { return _to Load(_retval); } \
     425             :   MOZ_MUST_USE NS_IMETHOD GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable) override { return _to GetDiskSpaceAvailable(aDiskSpaceAvailable); } \
     426             :   NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath) override { return _to AppendRelativePath(relativeFilePath); } \
     427             :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath) override { return _to AppendRelativeNativePath(relativeFilePath); } \
     428             :   MOZ_MUST_USE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor) override { return _to GetPersistentDescriptor(aPersistentDescriptor); } \
     429             :   MOZ_MUST_USE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor) override { return _to SetPersistentDescriptor(aPersistentDescriptor); } \
     430             :   MOZ_MUST_USE NS_IMETHOD Reveal(void) override { return _to Reveal(); } \
     431             :   MOZ_MUST_USE NS_IMETHOD Launch(void) override { return _to Launch(); } \
     432             :   MOZ_MUST_USE NS_IMETHOD GetRelativeDescriptor(nsIFile *fromFile, nsACString & _retval) override { return _to GetRelativeDescriptor(fromFile, _retval); } \
     433             :   MOZ_MUST_USE NS_IMETHOD SetRelativeDescriptor(nsIFile *fromFile, const nsACString & relativeDesc) override { return _to SetRelativeDescriptor(fromFile, relativeDesc); } \
     434             :   MOZ_MUST_USE NS_IMETHOD GetRelativePath(nsIFile *fromFile, nsACString & _retval) override { return _to GetRelativePath(fromFile, _retval); } \
     435             :   MOZ_MUST_USE NS_IMETHOD SetRelativePath(nsIFile *fromFile, const nsACString & relativeDesc) override { return _to SetRelativePath(fromFile, relativeDesc); } 
     436             : 
     437             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     438             : #define NS_FORWARD_SAFE_NSIFILE(_to) \
     439             :   NS_IMETHOD Append(const nsAString & node) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Append(node); } \
     440             :   NS_IMETHOD AppendNative(const nsACString & node) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendNative(node); } \
     441             :   NS_IMETHOD Normalize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Normalize(); } \
     442             :   MOZ_MUST_USE NS_IMETHOD Create(uint32_t type, uint32_t permissions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Create(type, permissions); } \
     443             :   NS_IMETHOD GetLeafName(nsAString & aLeafName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLeafName(aLeafName); } \
     444             :   NS_IMETHOD SetLeafName(const nsAString & aLeafName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLeafName(aLeafName); } \
     445             :   NS_IMETHOD GetNativeLeafName(nsACString & aNativeLeafName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNativeLeafName(aNativeLeafName); } \
     446             :   NS_IMETHOD SetNativeLeafName(const nsACString & aNativeLeafName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNativeLeafName(aNativeLeafName); } \
     447             :   NS_IMETHOD CopyTo(nsIFile *newParentDir, const nsAString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyTo(newParentDir, newName); } \
     448             :   NS_IMETHOD CopyToNative(nsIFile *newParentDir, const nsACString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyToNative(newParentDir, newName); } \
     449             :   NS_IMETHOD CopyToFollowingLinks(nsIFile *newParentDir, const nsAString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyToFollowingLinks(newParentDir, newName); } \
     450             :   NS_IMETHOD CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyToFollowingLinksNative(newParentDir, newName); } \
     451             :   NS_IMETHOD MoveTo(nsIFile *newParentDir, const nsAString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(newParentDir, newName); } \
     452             :   NS_IMETHOD MoveToNative(nsIFile *newParentDir, const nsACString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveToNative(newParentDir, newName); } \
     453             :   NS_IMETHOD RenameTo(nsIFile *newParentDir, const nsAString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RenameTo(newParentDir, newName); } \
     454             :   NS_IMETHOD RenameToNative(nsIFile *newParentDir, const nsACString & newName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RenameToNative(newParentDir, newName); } \
     455             :   NS_IMETHOD Remove(bool recursive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(recursive); } \
     456             :   NS_IMETHOD GetPermissions(uint32_t *aPermissions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPermissions(aPermissions); } \
     457             :   NS_IMETHOD SetPermissions(uint32_t aPermissions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPermissions(aPermissions); } \
     458             :   NS_IMETHOD GetPermissionsOfLink(uint32_t *aPermissionsOfLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPermissionsOfLink(aPermissionsOfLink); } \
     459             :   NS_IMETHOD SetPermissionsOfLink(uint32_t aPermissionsOfLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPermissionsOfLink(aPermissionsOfLink); } \
     460             :   NS_IMETHOD GetLastModifiedTime(PRTime *aLastModifiedTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedTime(aLastModifiedTime); } \
     461             :   NS_IMETHOD SetLastModifiedTime(PRTime aLastModifiedTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModifiedTime(aLastModifiedTime); } \
     462             :   NS_IMETHOD GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedTimeOfLink(aLastModifiedTimeOfLink); } \
     463             :   NS_IMETHOD SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink); } \
     464             :   NS_IMETHOD GetFileSize(int64_t *aFileSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileSize(aFileSize); } \
     465             :   NS_IMETHOD SetFileSize(int64_t aFileSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileSize(aFileSize); } \
     466             :   NS_IMETHOD GetFileSizeOfLink(int64_t *aFileSizeOfLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileSizeOfLink(aFileSizeOfLink); } \
     467             :   NS_IMETHOD GetTarget(nsAString & aTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
     468             :   NS_IMETHOD GetNativeTarget(nsACString & aNativeTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNativeTarget(aNativeTarget); } \
     469             :   NS_IMETHOD GetPath(nsAString & aPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
     470             :   NS_IMETHOD GetNativePath(nsACString & aNativePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNativePath(aNativePath); } \
     471             :   NS_IMETHOD Exists(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Exists(_retval); } \
     472             :   NS_IMETHOD IsWritable(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsWritable(_retval); } \
     473             :   NS_IMETHOD IsReadable(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsReadable(_retval); } \
     474             :   NS_IMETHOD IsExecutable(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsExecutable(_retval); } \
     475             :   NS_IMETHOD IsHidden(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsHidden(_retval); } \
     476             :   NS_IMETHOD IsDirectory(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDirectory(_retval); } \
     477             :   NS_IMETHOD IsFile(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFile(_retval); } \
     478             :   NS_IMETHOD IsSymlink(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSymlink(_retval); } \
     479             :   NS_IMETHOD IsSpecial(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSpecial(_retval); } \
     480             :   MOZ_MUST_USE NS_IMETHOD CreateUnique(uint32_t type, uint32_t permissions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateUnique(type, permissions); } \
     481             :   NS_IMETHOD Clone(nsIFile * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
     482             :   NS_IMETHOD Equals(nsIFile *inFile, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(inFile, _retval); } \
     483             :   NS_IMETHOD Contains(nsIFile *inFile, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Contains(inFile, _retval); } \
     484             :   NS_IMETHOD GetParent(nsIFile * *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \
     485             :   NS_IMETHOD GetDirectoryEntries(nsISimpleEnumerator * *aDirectoryEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectoryEntries(aDirectoryEntries); } \
     486             :   NS_IMETHOD InitWithPath(const nsAString & filePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithPath(filePath); } \
     487             :   NS_IMETHOD InitWithNativePath(const nsACString & filePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithNativePath(filePath); } \
     488             :   NS_IMETHOD InitWithFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithFile(aFile); } \
     489             :   NS_IMETHOD GetFollowLinks(bool *aFollowLinks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFollowLinks(aFollowLinks); } \
     490             :   NS_IMETHOD SetFollowLinks(bool aFollowLinks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFollowLinks(aFollowLinks); } \
     491             :   MOZ_MUST_USE NS_IMETHOD OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenNSPRFileDesc(flags, mode, _retval); } \
     492             :   MOZ_MUST_USE NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenANSIFileDesc(mode, _retval); } \
     493             :   MOZ_MUST_USE NS_IMETHOD Load(PRLibrary **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(_retval); } \
     494             :   MOZ_MUST_USE NS_IMETHOD GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDiskSpaceAvailable(aDiskSpaceAvailable); } \
     495             :   NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendRelativePath(relativeFilePath); } \
     496             :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendRelativeNativePath(relativeFilePath); } \
     497             :   MOZ_MUST_USE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersistentDescriptor(aPersistentDescriptor); } \
     498             :   MOZ_MUST_USE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPersistentDescriptor(aPersistentDescriptor); } \
     499             :   MOZ_MUST_USE NS_IMETHOD Reveal(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reveal(); } \
     500             :   MOZ_MUST_USE NS_IMETHOD Launch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Launch(); } \
     501             :   MOZ_MUST_USE NS_IMETHOD GetRelativeDescriptor(nsIFile *fromFile, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelativeDescriptor(fromFile, _retval); } \
     502             :   MOZ_MUST_USE NS_IMETHOD SetRelativeDescriptor(nsIFile *fromFile, const nsACString & relativeDesc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRelativeDescriptor(fromFile, relativeDesc); } \
     503             :   MOZ_MUST_USE NS_IMETHOD GetRelativePath(nsIFile *fromFile, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelativePath(fromFile, _retval); } \
     504             :   MOZ_MUST_USE NS_IMETHOD SetRelativePath(nsIFile *fromFile, const nsACString & relativeDesc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRelativePath(fromFile, relativeDesc); } 
     505             : 
     506             : #if 0
     507             : /* Use the code below as a template for the implementation class for this interface. */
     508             : 
     509             : /* Header file */
     510             : class nsFile : public nsIFile
     511             : {
     512             : public:
     513             :   NS_DECL_ISUPPORTS
     514             :   NS_DECL_NSIFILE
     515             : 
     516             :   nsFile();
     517             : 
     518             : private:
     519             :   ~nsFile();
     520             : 
     521             : protected:
     522             :   /* additional members */
     523             : };
     524             : 
     525             : /* Implementation file */
     526             : NS_IMPL_ISUPPORTS(nsFile, nsIFile)
     527             : 
     528             : nsFile::nsFile()
     529             : {
     530             :   /* member initializers and constructor code */
     531             : }
     532             : 
     533             : nsFile::~nsFile()
     534             : {
     535             :   /* destructor code */
     536             : }
     537             : 
     538             : /* void append (in AString node); */
     539             : NS_IMETHODIMP nsFile::Append(const nsAString & node)
     540             : {
     541             :     return NS_ERROR_NOT_IMPLEMENTED;
     542             : }
     543             : 
     544             : /* [noscript] void appendNative (in ACString node); */
     545             : NS_IMETHODIMP nsFile::AppendNative(const nsACString & node)
     546             : {
     547             :     return NS_ERROR_NOT_IMPLEMENTED;
     548             : }
     549             : 
     550             : /* void normalize (); */
     551             : NS_IMETHODIMP nsFile::Normalize()
     552             : {
     553             :     return NS_ERROR_NOT_IMPLEMENTED;
     554             : }
     555             : 
     556             : /* [must_use] void create (in unsigned long type, in unsigned long permissions); */
     557             : MOZ_MUST_USE NS_IMETHODIMP nsFile::Create(uint32_t type, uint32_t permissions)
     558             : {
     559             :     return NS_ERROR_NOT_IMPLEMENTED;
     560             : }
     561             : 
     562             : /* attribute AString leafName; */
     563             : NS_IMETHODIMP nsFile::GetLeafName(nsAString & aLeafName)
     564             : {
     565             :     return NS_ERROR_NOT_IMPLEMENTED;
     566             : }
     567             : NS_IMETHODIMP nsFile::SetLeafName(const nsAString & aLeafName)
     568             : {
     569             :     return NS_ERROR_NOT_IMPLEMENTED;
     570             : }
     571             : 
     572             : /* [noscript] attribute ACString nativeLeafName; */
     573             : NS_IMETHODIMP nsFile::GetNativeLeafName(nsACString & aNativeLeafName)
     574             : {
     575             :     return NS_ERROR_NOT_IMPLEMENTED;
     576             : }
     577             : NS_IMETHODIMP nsFile::SetNativeLeafName(const nsACString & aNativeLeafName)
     578             : {
     579             :     return NS_ERROR_NOT_IMPLEMENTED;
     580             : }
     581             : 
     582             : /* void copyTo (in nsIFile newParentDir, in AString newName); */
     583             : NS_IMETHODIMP nsFile::CopyTo(nsIFile *newParentDir, const nsAString & newName)
     584             : {
     585             :     return NS_ERROR_NOT_IMPLEMENTED;
     586             : }
     587             : 
     588             : /* [noscript] void CopyToNative (in nsIFile newParentDir, in ACString newName); */
     589             : NS_IMETHODIMP nsFile::CopyToNative(nsIFile *newParentDir, const nsACString & newName)
     590             : {
     591             :     return NS_ERROR_NOT_IMPLEMENTED;
     592             : }
     593             : 
     594             : /* void copyToFollowingLinks (in nsIFile newParentDir, in AString newName); */
     595             : NS_IMETHODIMP nsFile::CopyToFollowingLinks(nsIFile *newParentDir, const nsAString & newName)
     596             : {
     597             :     return NS_ERROR_NOT_IMPLEMENTED;
     598             : }
     599             : 
     600             : /* [noscript] void copyToFollowingLinksNative (in nsIFile newParentDir, in ACString newName); */
     601             : NS_IMETHODIMP nsFile::CopyToFollowingLinksNative(nsIFile *newParentDir, const nsACString & newName)
     602             : {
     603             :     return NS_ERROR_NOT_IMPLEMENTED;
     604             : }
     605             : 
     606             : /* void moveTo (in nsIFile newParentDir, in AString newName); */
     607             : NS_IMETHODIMP nsFile::MoveTo(nsIFile *newParentDir, const nsAString & newName)
     608             : {
     609             :     return NS_ERROR_NOT_IMPLEMENTED;
     610             : }
     611             : 
     612             : /* [noscript] void moveToNative (in nsIFile newParentDir, in ACString newName); */
     613             : NS_IMETHODIMP nsFile::MoveToNative(nsIFile *newParentDir, const nsACString & newName)
     614             : {
     615             :     return NS_ERROR_NOT_IMPLEMENTED;
     616             : }
     617             : 
     618             : /* void renameTo (in nsIFile newParentDir, in AString newName); */
     619             : NS_IMETHODIMP nsFile::RenameTo(nsIFile *newParentDir, const nsAString & newName)
     620             : {
     621             :     return NS_ERROR_NOT_IMPLEMENTED;
     622             : }
     623             : 
     624             : /* [noscript] void renameToNative (in nsIFile newParentDir, in ACString newName); */
     625             : NS_IMETHODIMP nsFile::RenameToNative(nsIFile *newParentDir, const nsACString & newName)
     626             : {
     627             :     return NS_ERROR_NOT_IMPLEMENTED;
     628             : }
     629             : 
     630             : /* void remove (in boolean recursive); */
     631             : NS_IMETHODIMP nsFile::Remove(bool recursive)
     632             : {
     633             :     return NS_ERROR_NOT_IMPLEMENTED;
     634             : }
     635             : 
     636             : /* attribute unsigned long permissions; */
     637             : NS_IMETHODIMP nsFile::GetPermissions(uint32_t *aPermissions)
     638             : {
     639             :     return NS_ERROR_NOT_IMPLEMENTED;
     640             : }
     641             : NS_IMETHODIMP nsFile::SetPermissions(uint32_t aPermissions)
     642             : {
     643             :     return NS_ERROR_NOT_IMPLEMENTED;
     644             : }
     645             : 
     646             : /* attribute unsigned long permissionsOfLink; */
     647             : NS_IMETHODIMP nsFile::GetPermissionsOfLink(uint32_t *aPermissionsOfLink)
     648             : {
     649             :     return NS_ERROR_NOT_IMPLEMENTED;
     650             : }
     651             : NS_IMETHODIMP nsFile::SetPermissionsOfLink(uint32_t aPermissionsOfLink)
     652             : {
     653             :     return NS_ERROR_NOT_IMPLEMENTED;
     654             : }
     655             : 
     656             : /* attribute PRTime lastModifiedTime; */
     657             : NS_IMETHODIMP nsFile::GetLastModifiedTime(PRTime *aLastModifiedTime)
     658             : {
     659             :     return NS_ERROR_NOT_IMPLEMENTED;
     660             : }
     661             : NS_IMETHODIMP nsFile::SetLastModifiedTime(PRTime aLastModifiedTime)
     662             : {
     663             :     return NS_ERROR_NOT_IMPLEMENTED;
     664             : }
     665             : 
     666             : /* attribute PRTime lastModifiedTimeOfLink; */
     667             : NS_IMETHODIMP nsFile::GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink)
     668             : {
     669             :     return NS_ERROR_NOT_IMPLEMENTED;
     670             : }
     671             : NS_IMETHODIMP nsFile::SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink)
     672             : {
     673             :     return NS_ERROR_NOT_IMPLEMENTED;
     674             : }
     675             : 
     676             : /* attribute int64_t fileSize; */
     677             : NS_IMETHODIMP nsFile::GetFileSize(int64_t *aFileSize)
     678             : {
     679             :     return NS_ERROR_NOT_IMPLEMENTED;
     680             : }
     681             : NS_IMETHODIMP nsFile::SetFileSize(int64_t aFileSize)
     682             : {
     683             :     return NS_ERROR_NOT_IMPLEMENTED;
     684             : }
     685             : 
     686             : /* readonly attribute int64_t fileSizeOfLink; */
     687             : NS_IMETHODIMP nsFile::GetFileSizeOfLink(int64_t *aFileSizeOfLink)
     688             : {
     689             :     return NS_ERROR_NOT_IMPLEMENTED;
     690             : }
     691             : 
     692             : /* readonly attribute AString target; */
     693             : NS_IMETHODIMP nsFile::GetTarget(nsAString & aTarget)
     694             : {
     695             :     return NS_ERROR_NOT_IMPLEMENTED;
     696             : }
     697             : 
     698             : /* [noscript] readonly attribute ACString nativeTarget; */
     699             : NS_IMETHODIMP nsFile::GetNativeTarget(nsACString & aNativeTarget)
     700             : {
     701             :     return NS_ERROR_NOT_IMPLEMENTED;
     702             : }
     703             : 
     704             : /* readonly attribute AString path; */
     705             : NS_IMETHODIMP nsFile::GetPath(nsAString & aPath)
     706             : {
     707             :     return NS_ERROR_NOT_IMPLEMENTED;
     708             : }
     709             : 
     710             : /* [noscript] readonly attribute ACString nativePath; */
     711             : NS_IMETHODIMP nsFile::GetNativePath(nsACString & aNativePath)
     712             : {
     713             :     return NS_ERROR_NOT_IMPLEMENTED;
     714             : }
     715             : 
     716             : /* boolean exists (); */
     717             : NS_IMETHODIMP nsFile::Exists(bool *_retval)
     718             : {
     719             :     return NS_ERROR_NOT_IMPLEMENTED;
     720             : }
     721             : 
     722             : /* boolean isWritable (); */
     723             : NS_IMETHODIMP nsFile::IsWritable(bool *_retval)
     724             : {
     725             :     return NS_ERROR_NOT_IMPLEMENTED;
     726             : }
     727             : 
     728             : /* boolean isReadable (); */
     729             : NS_IMETHODIMP nsFile::IsReadable(bool *_retval)
     730             : {
     731             :     return NS_ERROR_NOT_IMPLEMENTED;
     732             : }
     733             : 
     734             : /* boolean isExecutable (); */
     735             : NS_IMETHODIMP nsFile::IsExecutable(bool *_retval)
     736             : {
     737             :     return NS_ERROR_NOT_IMPLEMENTED;
     738             : }
     739             : 
     740             : /* boolean isHidden (); */
     741             : NS_IMETHODIMP nsFile::IsHidden(bool *_retval)
     742             : {
     743             :     return NS_ERROR_NOT_IMPLEMENTED;
     744             : }
     745             : 
     746             : /* boolean isDirectory (); */
     747             : NS_IMETHODIMP nsFile::IsDirectory(bool *_retval)
     748             : {
     749             :     return NS_ERROR_NOT_IMPLEMENTED;
     750             : }
     751             : 
     752             : /* boolean isFile (); */
     753             : NS_IMETHODIMP nsFile::IsFile(bool *_retval)
     754             : {
     755             :     return NS_ERROR_NOT_IMPLEMENTED;
     756             : }
     757             : 
     758             : /* boolean isSymlink (); */
     759             : NS_IMETHODIMP nsFile::IsSymlink(bool *_retval)
     760             : {
     761             :     return NS_ERROR_NOT_IMPLEMENTED;
     762             : }
     763             : 
     764             : /* boolean isSpecial (); */
     765             : NS_IMETHODIMP nsFile::IsSpecial(bool *_retval)
     766             : {
     767             :     return NS_ERROR_NOT_IMPLEMENTED;
     768             : }
     769             : 
     770             : /* [must_use] void createUnique (in unsigned long type, in unsigned long permissions); */
     771             : MOZ_MUST_USE NS_IMETHODIMP nsFile::CreateUnique(uint32_t type, uint32_t permissions)
     772             : {
     773             :     return NS_ERROR_NOT_IMPLEMENTED;
     774             : }
     775             : 
     776             : /* nsIFile clone (); */
     777             : NS_IMETHODIMP nsFile::Clone(nsIFile * *_retval)
     778             : {
     779             :     return NS_ERROR_NOT_IMPLEMENTED;
     780             : }
     781             : 
     782             : /* boolean equals (in nsIFile inFile); */
     783             : NS_IMETHODIMP nsFile::Equals(nsIFile *inFile, bool *_retval)
     784             : {
     785             :     return NS_ERROR_NOT_IMPLEMENTED;
     786             : }
     787             : 
     788             : /* boolean contains (in nsIFile inFile); */
     789             : NS_IMETHODIMP nsFile::Contains(nsIFile *inFile, bool *_retval)
     790             : {
     791             :     return NS_ERROR_NOT_IMPLEMENTED;
     792             : }
     793             : 
     794             : /* readonly attribute nsIFile parent; */
     795             : NS_IMETHODIMP nsFile::GetParent(nsIFile * *aParent)
     796             : {
     797             :     return NS_ERROR_NOT_IMPLEMENTED;
     798             : }
     799             : 
     800             : /* readonly attribute nsISimpleEnumerator directoryEntries; */
     801             : NS_IMETHODIMP nsFile::GetDirectoryEntries(nsISimpleEnumerator * *aDirectoryEntries)
     802             : {
     803             :     return NS_ERROR_NOT_IMPLEMENTED;
     804             : }
     805             : 
     806             : /* void initWithPath (in AString filePath); */
     807             : NS_IMETHODIMP nsFile::InitWithPath(const nsAString & filePath)
     808             : {
     809             :     return NS_ERROR_NOT_IMPLEMENTED;
     810             : }
     811             : 
     812             : /* [noscript] void initWithNativePath (in ACString filePath); */
     813             : NS_IMETHODIMP nsFile::InitWithNativePath(const nsACString & filePath)
     814             : {
     815             :     return NS_ERROR_NOT_IMPLEMENTED;
     816             : }
     817             : 
     818             : /* void initWithFile (in nsIFile aFile); */
     819             : NS_IMETHODIMP nsFile::InitWithFile(nsIFile *aFile)
     820             : {
     821             :     return NS_ERROR_NOT_IMPLEMENTED;
     822             : }
     823             : 
     824             : /* attribute boolean followLinks; */
     825             : NS_IMETHODIMP nsFile::GetFollowLinks(bool *aFollowLinks)
     826             : {
     827             :     return NS_ERROR_NOT_IMPLEMENTED;
     828             : }
     829             : NS_IMETHODIMP nsFile::SetFollowLinks(bool aFollowLinks)
     830             : {
     831             :     return NS_ERROR_NOT_IMPLEMENTED;
     832             : }
     833             : 
     834             : /* [must_use,noscript] PRFileDescStar openNSPRFileDesc (in long flags, in long mode); */
     835             : MOZ_MUST_USE NS_IMETHODIMP nsFile::OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval)
     836             : {
     837             :     return NS_ERROR_NOT_IMPLEMENTED;
     838             : }
     839             : 
     840             : /* [must_use,noscript] FILE openANSIFileDesc (in string mode); */
     841             : MOZ_MUST_USE NS_IMETHODIMP nsFile::OpenANSIFileDesc(const char * mode, FILE **_retval)
     842             : {
     843             :     return NS_ERROR_NOT_IMPLEMENTED;
     844             : }
     845             : 
     846             : /* [must_use,noscript] PRLibraryStar load (); */
     847             : MOZ_MUST_USE NS_IMETHODIMP nsFile::Load(PRLibrary **_retval)
     848             : {
     849             :     return NS_ERROR_NOT_IMPLEMENTED;
     850             : }
     851             : 
     852             : /* [must_use] readonly attribute int64_t diskSpaceAvailable; */
     853             : MOZ_MUST_USE NS_IMETHODIMP nsFile::GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable)
     854             : {
     855             :     return NS_ERROR_NOT_IMPLEMENTED;
     856             : }
     857             : 
     858             : /* void appendRelativePath (in AString relativeFilePath); */
     859             : NS_IMETHODIMP nsFile::AppendRelativePath(const nsAString & relativeFilePath)
     860             : {
     861             :     return NS_ERROR_NOT_IMPLEMENTED;
     862             : }
     863             : 
     864             : /* [noscript] void appendRelativeNativePath (in ACString relativeFilePath); */
     865             : NS_IMETHODIMP nsFile::AppendRelativeNativePath(const nsACString & relativeFilePath)
     866             : {
     867             :     return NS_ERROR_NOT_IMPLEMENTED;
     868             : }
     869             : 
     870             : /* [must_use] attribute ACString persistentDescriptor; */
     871             : MOZ_MUST_USE NS_IMETHODIMP nsFile::GetPersistentDescriptor(nsACString & aPersistentDescriptor)
     872             : {
     873             :     return NS_ERROR_NOT_IMPLEMENTED;
     874             : }
     875             : MOZ_MUST_USE NS_IMETHODIMP nsFile::SetPersistentDescriptor(const nsACString & aPersistentDescriptor)
     876             : {
     877             :     return NS_ERROR_NOT_IMPLEMENTED;
     878             : }
     879             : 
     880             : /* [must_use] void reveal (); */
     881             : MOZ_MUST_USE NS_IMETHODIMP nsFile::Reveal()
     882             : {
     883             :     return NS_ERROR_NOT_IMPLEMENTED;
     884             : }
     885             : 
     886             : /* [must_use] void launch (); */
     887             : MOZ_MUST_USE NS_IMETHODIMP nsFile::Launch()
     888             : {
     889             :     return NS_ERROR_NOT_IMPLEMENTED;
     890             : }
     891             : 
     892             : /* [must_use] ACString getRelativeDescriptor (in nsIFile fromFile); */
     893             : MOZ_MUST_USE NS_IMETHODIMP nsFile::GetRelativeDescriptor(nsIFile *fromFile, nsACString & _retval)
     894             : {
     895             :     return NS_ERROR_NOT_IMPLEMENTED;
     896             : }
     897             : 
     898             : /* [must_use] void setRelativeDescriptor (in nsIFile fromFile, in ACString relativeDesc); */
     899             : MOZ_MUST_USE NS_IMETHODIMP nsFile::SetRelativeDescriptor(nsIFile *fromFile, const nsACString & relativeDesc)
     900             : {
     901             :     return NS_ERROR_NOT_IMPLEMENTED;
     902             : }
     903             : 
     904             : /* [must_use] AUTF8String getRelativePath (in nsIFile fromFile); */
     905             : MOZ_MUST_USE NS_IMETHODIMP nsFile::GetRelativePath(nsIFile *fromFile, nsACString & _retval)
     906             : {
     907             :     return NS_ERROR_NOT_IMPLEMENTED;
     908             : }
     909             : 
     910             : /* [must_use] void setRelativePath (in nsIFile fromFile, in AUTF8String relativeDesc); */
     911             : MOZ_MUST_USE NS_IMETHODIMP nsFile::SetRelativePath(nsIFile *fromFile, const nsACString & relativeDesc)
     912             : {
     913             :     return NS_ERROR_NOT_IMPLEMENTED;
     914             : }
     915             : 
     916             : /* End of implementation class template. */
     917             : #endif
     918             : 
     919             : #ifdef MOZILLA_INTERNAL_API
     920             : #include "nsDirectoryServiceUtils.h"
     921             : #endif
     922             : 
     923             : #endif /* __gen_nsIFile_h__ */

Generated by: LCOV version 1.13