LCOV - code coverage report
Current view: directory - objdir/dist/include - nsILocalFile.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/nsILocalFile.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsILocalFile_h__
       6                 : #define __gen_nsILocalFile_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIFile_h__
      10                 : #include "nsIFile.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                 : #include "prio.h"
      18                 : #include "prlink.h"
      19                 : #include <stdio.h>
      20                 : 
      21                 : /* starting interface:    nsILocalFile */
      22                 : #define NS_ILOCALFILE_IID_STR "aa610f20-a889-11d3-8c81-000064657374"
      23                 : 
      24                 : #define NS_ILOCALFILE_IID \
      25                 :   {0xaa610f20, 0xa889, 0x11d3, \
      26                 :     { 0x8c, 0x81, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
      27                 : 
      28          797548 : class NS_NO_VTABLE NS_SCRIPTABLE nsILocalFile : public nsIFile {
      29                 :  public: 
      30                 : 
      31                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALFILE_IID)
      32                 : 
      33                 :   /* void initWithPath (in AString filePath); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD InitWithPath(const nsAString & filePath) = 0;
      35                 : 
      36                 :   /* [noscript] void initWithNativePath (in ACString filePath); */
      37                 :   NS_IMETHOD InitWithNativePath(const nsACString & filePath) = 0;
      38                 : 
      39                 :   /* void initWithFile (in nsILocalFile aFile); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD InitWithFile(nsILocalFile *aFile) = 0;
      41                 : 
      42                 :   /* attribute boolean followLinks; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetFollowLinks(bool *aFollowLinks) = 0;
      44                 :   NS_SCRIPTABLE NS_IMETHOD SetFollowLinks(bool aFollowLinks) = 0;
      45                 : 
      46                 :   enum {
      47                 :     OS_READAHEAD = 1073741824U,
      48                 :     DELETE_ON_CLOSE = 2147483648U
      49                 :   };
      50                 : 
      51                 :   /* [noscript] PRFileDescStar openNSPRFileDesc (in long flags, in long mode); */
      52                 :   NS_IMETHOD OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* [noscript] FILE openANSIFileDesc (in string mode); */
      55                 :   NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval NS_OUTPARAM) = 0;
      56                 : 
      57                 :   /* [noscript] PRLibraryStar load (); */
      58                 :   NS_IMETHOD Load(PRLibrary **_retval NS_OUTPARAM) = 0;
      59                 : 
      60                 :   /* readonly attribute PRInt64 diskSpaceAvailable; */
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable) = 0;
      62                 : 
      63                 :   /* void appendRelativePath (in AString relativeFilePath); */
      64                 :   NS_SCRIPTABLE NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath) = 0;
      65                 : 
      66                 :   /* [noscript] void appendRelativeNativePath (in ACString relativeFilePath); */
      67                 :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath) = 0;
      68                 : 
      69                 :   /* attribute ACString persistentDescriptor; */
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor) = 0;
      71                 :   NS_SCRIPTABLE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor) = 0;
      72                 : 
      73                 :   /* void reveal (); */
      74                 :   NS_SCRIPTABLE NS_IMETHOD Reveal(void) = 0;
      75                 : 
      76                 :   /* void launch (); */
      77                 :   NS_SCRIPTABLE NS_IMETHOD Launch(void) = 0;
      78                 : 
      79                 :   /* ACString getRelativeDescriptor (in nsILocalFile fromFile); */
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeDescriptor(nsILocalFile *fromFile, nsACString & _retval NS_OUTPARAM) = 0;
      81                 : 
      82                 :   /* void setRelativeDescriptor (in nsILocalFile fromFile, in ACString relativeDesc); */
      83                 :   NS_SCRIPTABLE NS_IMETHOD SetRelativeDescriptor(nsILocalFile *fromFile, const nsACString & relativeDesc) = 0;
      84                 : 
      85                 : };
      86                 : 
      87                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalFile, NS_ILOCALFILE_IID)
      88                 : 
      89                 : /* Use this macro when declaring classes that implement this interface. */
      90                 : #define NS_DECL_NSILOCALFILE \
      91                 :   NS_SCRIPTABLE NS_IMETHOD InitWithPath(const nsAString & filePath); \
      92                 :   NS_IMETHOD InitWithNativePath(const nsACString & filePath); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD InitWithFile(nsILocalFile *aFile); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetFollowLinks(bool *aFollowLinks); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD SetFollowLinks(bool aFollowLinks); \
      96                 :   NS_IMETHOD OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval NS_OUTPARAM); \
      97                 :   NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval NS_OUTPARAM); \
      98                 :   NS_IMETHOD Load(PRLibrary **_retval NS_OUTPARAM); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath); \
     101                 :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD Reveal(void); \
     105                 :   NS_SCRIPTABLE NS_IMETHOD Launch(void); \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeDescriptor(nsILocalFile *fromFile, nsACString & _retval NS_OUTPARAM); \
     107                 :   NS_SCRIPTABLE NS_IMETHOD SetRelativeDescriptor(nsILocalFile *fromFile, const nsACString & relativeDesc); 
     108                 : 
     109                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     110                 : #define NS_FORWARD_NSILOCALFILE(_to) \
     111                 :   NS_SCRIPTABLE NS_IMETHOD InitWithPath(const nsAString & filePath) { return _to InitWithPath(filePath); } \
     112                 :   NS_IMETHOD InitWithNativePath(const nsACString & filePath) { return _to InitWithNativePath(filePath); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD InitWithFile(nsILocalFile *aFile) { return _to InitWithFile(aFile); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetFollowLinks(bool *aFollowLinks) { return _to GetFollowLinks(aFollowLinks); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD SetFollowLinks(bool aFollowLinks) { return _to SetFollowLinks(aFollowLinks); } \
     116                 :   NS_IMETHOD OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval NS_OUTPARAM) { return _to OpenNSPRFileDesc(flags, mode, _retval); } \
     117                 :   NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval NS_OUTPARAM) { return _to OpenANSIFileDesc(mode, _retval); } \
     118                 :   NS_IMETHOD Load(PRLibrary **_retval NS_OUTPARAM) { return _to Load(_retval); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable) { return _to GetDiskSpaceAvailable(aDiskSpaceAvailable); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath) { return _to AppendRelativePath(relativeFilePath); } \
     121                 :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath) { return _to AppendRelativeNativePath(relativeFilePath); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor) { return _to GetPersistentDescriptor(aPersistentDescriptor); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor) { return _to SetPersistentDescriptor(aPersistentDescriptor); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD Reveal(void) { return _to Reveal(); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD Launch(void) { return _to Launch(); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeDescriptor(nsILocalFile *fromFile, nsACString & _retval NS_OUTPARAM) { return _to GetRelativeDescriptor(fromFile, _retval); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD SetRelativeDescriptor(nsILocalFile *fromFile, const nsACString & relativeDesc) { return _to SetRelativeDescriptor(fromFile, relativeDesc); } 
     128                 : 
     129                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     130                 : #define NS_FORWARD_SAFE_NSILOCALFILE(_to) \
     131                 :   NS_SCRIPTABLE NS_IMETHOD InitWithPath(const nsAString & filePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithPath(filePath); } \
     132                 :   NS_IMETHOD InitWithNativePath(const nsACString & filePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithNativePath(filePath); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD InitWithFile(nsILocalFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithFile(aFile); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetFollowLinks(bool *aFollowLinks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFollowLinks(aFollowLinks); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD SetFollowLinks(bool aFollowLinks) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFollowLinks(aFollowLinks); } \
     136                 :   NS_IMETHOD OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenNSPRFileDesc(flags, mode, _retval); } \
     137                 :   NS_IMETHOD OpenANSIFileDesc(const char * mode, FILE **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenANSIFileDesc(mode, _retval); } \
     138                 :   NS_IMETHOD Load(PRLibrary **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(_retval); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDiskSpaceAvailable(aDiskSpaceAvailable); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD AppendRelativePath(const nsAString & relativeFilePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendRelativePath(relativeFilePath); } \
     141                 :   NS_IMETHOD AppendRelativeNativePath(const nsACString & relativeFilePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendRelativeNativePath(relativeFilePath); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetPersistentDescriptor(nsACString & aPersistentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersistentDescriptor(aPersistentDescriptor); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD SetPersistentDescriptor(const nsACString & aPersistentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPersistentDescriptor(aPersistentDescriptor); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD Reveal(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reveal(); } \
     145                 :   NS_SCRIPTABLE NS_IMETHOD Launch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Launch(); } \
     146                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeDescriptor(nsILocalFile *fromFile, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelativeDescriptor(fromFile, _retval); } \
     147                 :   NS_SCRIPTABLE NS_IMETHOD SetRelativeDescriptor(nsILocalFile *fromFile, const nsACString & relativeDesc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRelativeDescriptor(fromFile, relativeDesc); } 
     148                 : 
     149                 : #if 0
     150                 : /* Use the code below as a template for the implementation class for this interface. */
     151                 : 
     152                 : /* Header file */
     153                 : class nsLocalFile : public nsILocalFile
     154                 : {
     155                 : public:
     156                 :   NS_DECL_ISUPPORTS
     157                 :   NS_DECL_NSILOCALFILE
     158                 : 
     159                 :   nsLocalFile();
     160                 : 
     161                 : private:
     162                 :   ~nsLocalFile();
     163                 : 
     164                 : protected:
     165                 :   /* additional members */
     166                 : };
     167                 : 
     168                 : /* Implementation file */
     169                 : NS_IMPL_ISUPPORTS1(nsLocalFile, nsILocalFile)
     170                 : 
     171                 : nsLocalFile::nsLocalFile()
     172                 : {
     173                 :   /* member initializers and constructor code */
     174                 : }
     175                 : 
     176                 : nsLocalFile::~nsLocalFile()
     177                 : {
     178                 :   /* destructor code */
     179                 : }
     180                 : 
     181                 : /* void initWithPath (in AString filePath); */
     182                 : NS_IMETHODIMP nsLocalFile::InitWithPath(const nsAString & filePath)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* [noscript] void initWithNativePath (in ACString filePath); */
     188                 : NS_IMETHODIMP nsLocalFile::InitWithNativePath(const nsACString & filePath)
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* void initWithFile (in nsILocalFile aFile); */
     194                 : NS_IMETHODIMP nsLocalFile::InitWithFile(nsILocalFile *aFile)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* attribute boolean followLinks; */
     200                 : NS_IMETHODIMP nsLocalFile::GetFollowLinks(bool *aFollowLinks)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : NS_IMETHODIMP nsLocalFile::SetFollowLinks(bool aFollowLinks)
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* [noscript] PRFileDescStar openNSPRFileDesc (in long flags, in long mode); */
     210                 : NS_IMETHODIMP nsLocalFile::OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval NS_OUTPARAM)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : 
     215                 : /* [noscript] FILE openANSIFileDesc (in string mode); */
     216                 : NS_IMETHODIMP nsLocalFile::OpenANSIFileDesc(const char * mode, FILE **_retval NS_OUTPARAM)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* [noscript] PRLibraryStar load (); */
     222                 : NS_IMETHODIMP nsLocalFile::Load(PRLibrary **_retval NS_OUTPARAM)
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : 
     227                 : /* readonly attribute PRInt64 diskSpaceAvailable; */
     228                 : NS_IMETHODIMP nsLocalFile::GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable)
     229                 : {
     230                 :     return NS_ERROR_NOT_IMPLEMENTED;
     231                 : }
     232                 : 
     233                 : /* void appendRelativePath (in AString relativeFilePath); */
     234                 : NS_IMETHODIMP nsLocalFile::AppendRelativePath(const nsAString & relativeFilePath)
     235                 : {
     236                 :     return NS_ERROR_NOT_IMPLEMENTED;
     237                 : }
     238                 : 
     239                 : /* [noscript] void appendRelativeNativePath (in ACString relativeFilePath); */
     240                 : NS_IMETHODIMP nsLocalFile::AppendRelativeNativePath(const nsACString & relativeFilePath)
     241                 : {
     242                 :     return NS_ERROR_NOT_IMPLEMENTED;
     243                 : }
     244                 : 
     245                 : /* attribute ACString persistentDescriptor; */
     246                 : NS_IMETHODIMP nsLocalFile::GetPersistentDescriptor(nsACString & aPersistentDescriptor)
     247                 : {
     248                 :     return NS_ERROR_NOT_IMPLEMENTED;
     249                 : }
     250                 : NS_IMETHODIMP nsLocalFile::SetPersistentDescriptor(const nsACString & aPersistentDescriptor)
     251                 : {
     252                 :     return NS_ERROR_NOT_IMPLEMENTED;
     253                 : }
     254                 : 
     255                 : /* void reveal (); */
     256                 : NS_IMETHODIMP nsLocalFile::Reveal()
     257                 : {
     258                 :     return NS_ERROR_NOT_IMPLEMENTED;
     259                 : }
     260                 : 
     261                 : /* void launch (); */
     262                 : NS_IMETHODIMP nsLocalFile::Launch()
     263                 : {
     264                 :     return NS_ERROR_NOT_IMPLEMENTED;
     265                 : }
     266                 : 
     267                 : /* ACString getRelativeDescriptor (in nsILocalFile fromFile); */
     268                 : NS_IMETHODIMP nsLocalFile::GetRelativeDescriptor(nsILocalFile *fromFile, nsACString & _retval NS_OUTPARAM)
     269                 : {
     270                 :     return NS_ERROR_NOT_IMPLEMENTED;
     271                 : }
     272                 : 
     273                 : /* void setRelativeDescriptor (in nsILocalFile fromFile, in ACString relativeDesc); */
     274                 : NS_IMETHODIMP nsLocalFile::SetRelativeDescriptor(nsILocalFile *fromFile, const nsACString & relativeDesc)
     275                 : {
     276                 :     return NS_ERROR_NOT_IMPLEMENTED;
     277                 : }
     278                 : 
     279                 : /* End of implementation class template. */
     280                 : #endif
     281                 : 
     282                 : 
     283                 : #endif /* __gen_nsILocalFile_h__ */

Generated by: LCOV version 1.7