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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIFileStreams.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIFileStreams_h__
       6                 : #define __gen_nsIFileStreams_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIInputStream_h__
      10                 : #include "nsIInputStream.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIOutputStream_h__
      14                 : #include "nsIOutputStream.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : class nsIFile; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIFileInputStream */
      25                 : #define NS_IFILEINPUTSTREAM_IID_STR "e3d56a20-c7ec-11d3-8cda-0060b0fc14a3"
      26                 : 
      27                 : #define NS_IFILEINPUTSTREAM_IID \
      28                 :   {0xe3d56a20, 0xc7ec, 0x11d3, \
      29                 :     { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
      30                 : 
      31           15738 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFileInputStream : public nsIInputStream {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILEINPUTSTREAM_IID)
      35                 : 
      36                 :   /* void init (in nsIFile file, in long ioFlags, in long perm, in long behaviorFlags); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) = 0;
      38                 : 
      39                 :   enum {
      40                 :     DELETE_ON_CLOSE = 2,
      41                 :     CLOSE_ON_EOF = 4,
      42                 :     REOPEN_ON_REWIND = 8,
      43                 :     DEFER_OPEN = 16
      44                 :   };
      45                 : 
      46                 : };
      47                 : 
      48                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileInputStream, NS_IFILEINPUTSTREAM_IID)
      49                 : 
      50                 : /* Use this macro when declaring classes that implement this interface. */
      51                 : #define NS_DECL_NSIFILEINPUTSTREAM \
      52                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags); \
      53                 : 
      54                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      55                 : #define NS_FORWARD_NSIFILEINPUTSTREAM(_to) \
      56                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) { return _to Init(file, ioFlags, perm, behaviorFlags); } \
      57                 : 
      58                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      59                 : #define NS_FORWARD_SAFE_NSIFILEINPUTSTREAM(_to) \
      60                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(file, ioFlags, perm, behaviorFlags); } \
      61                 : 
      62                 : #if 0
      63                 : /* Use the code below as a template for the implementation class for this interface. */
      64                 : 
      65                 : /* Header file */
      66                 : class nsFileInputStream : public nsIFileInputStream
      67                 : {
      68                 : public:
      69                 :   NS_DECL_ISUPPORTS
      70                 :   NS_DECL_NSIFILEINPUTSTREAM
      71                 : 
      72                 :   nsFileInputStream();
      73                 : 
      74                 : private:
      75                 :   ~nsFileInputStream();
      76                 : 
      77                 : protected:
      78                 :   /* additional members */
      79                 : };
      80                 : 
      81                 : /* Implementation file */
      82                 : NS_IMPL_ISUPPORTS1(nsFileInputStream, nsIFileInputStream)
      83                 : 
      84                 : nsFileInputStream::nsFileInputStream()
      85                 : {
      86                 :   /* member initializers and constructor code */
      87                 : }
      88                 : 
      89                 : nsFileInputStream::~nsFileInputStream()
      90                 : {
      91                 :   /* destructor code */
      92                 : }
      93                 : 
      94                 : /* void init (in nsIFile file, in long ioFlags, in long perm, in long behaviorFlags); */
      95                 : NS_IMETHODIMP nsFileInputStream::Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags)
      96                 : {
      97                 :     return NS_ERROR_NOT_IMPLEMENTED;
      98                 : }
      99                 : 
     100                 : /* End of implementation class template. */
     101                 : #endif
     102                 : 
     103                 : 
     104                 : /* starting interface:    nsIFileOutputStream */
     105                 : #define NS_IFILEOUTPUTSTREAM_IID_STR "e6f68040-c7ec-11d3-8cda-0060b0fc14a3"
     106                 : 
     107                 : #define NS_IFILEOUTPUTSTREAM_IID \
     108                 :   {0xe6f68040, 0xc7ec, 0x11d3, \
     109                 :     { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
     110                 : 
     111            3869 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFileOutputStream : public nsIOutputStream {
     112                 :  public: 
     113                 : 
     114                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFILEOUTPUTSTREAM_IID)
     115                 : 
     116                 :   /* void init (in nsIFile file, in long ioFlags, in long perm, in long behaviorFlags); */
     117                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) = 0;
     118                 : 
     119                 :   enum {
     120                 :     DEFER_OPEN = 1
     121                 :   };
     122                 : 
     123                 : };
     124                 : 
     125                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileOutputStream, NS_IFILEOUTPUTSTREAM_IID)
     126                 : 
     127                 : /* Use this macro when declaring classes that implement this interface. */
     128                 : #define NS_DECL_NSIFILEOUTPUTSTREAM \
     129                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags); \
     130                 : 
     131                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     132                 : #define NS_FORWARD_NSIFILEOUTPUTSTREAM(_to) \
     133                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) { return _to Init(file, ioFlags, perm, behaviorFlags); } \
     134                 : 
     135                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     136                 : #define NS_FORWARD_SAFE_NSIFILEOUTPUTSTREAM(_to) \
     137                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(file, ioFlags, perm, behaviorFlags); } \
     138                 : 
     139                 : #if 0
     140                 : /* Use the code below as a template for the implementation class for this interface. */
     141                 : 
     142                 : /* Header file */
     143                 : class nsFileOutputStream : public nsIFileOutputStream
     144                 : {
     145                 : public:
     146                 :   NS_DECL_ISUPPORTS
     147                 :   NS_DECL_NSIFILEOUTPUTSTREAM
     148                 : 
     149                 :   nsFileOutputStream();
     150                 : 
     151                 : private:
     152                 :   ~nsFileOutputStream();
     153                 : 
     154                 : protected:
     155                 :   /* additional members */
     156                 : };
     157                 : 
     158                 : /* Implementation file */
     159                 : NS_IMPL_ISUPPORTS1(nsFileOutputStream, nsIFileOutputStream)
     160                 : 
     161                 : nsFileOutputStream::nsFileOutputStream()
     162                 : {
     163                 :   /* member initializers and constructor code */
     164                 : }
     165                 : 
     166                 : nsFileOutputStream::~nsFileOutputStream()
     167                 : {
     168                 :   /* destructor code */
     169                 : }
     170                 : 
     171                 : /* void init (in nsIFile file, in long ioFlags, in long perm, in long behaviorFlags); */
     172                 : NS_IMETHODIMP nsFileOutputStream::Init(nsIFile *file, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags)
     173                 : {
     174                 :     return NS_ERROR_NOT_IMPLEMENTED;
     175                 : }
     176                 : 
     177                 : /* End of implementation class template. */
     178                 : #endif
     179                 : 
     180                 : 
     181                 : /* starting interface:    nsIPartialFileInputStream */
     182                 : #define NS_IPARTIALFILEINPUTSTREAM_IID_STR "3ce03a2f-97f7-4375-b6bb-1788a60cad3b"
     183                 : 
     184                 : #define NS_IPARTIALFILEINPUTSTREAM_IID \
     185                 :   {0x3ce03a2f, 0x97f7, 0x4375, \
     186                 :     { 0xb6, 0xbb, 0x17, 0x88, 0xa6, 0x0c, 0xad, 0x3b }}
     187                 : 
     188              62 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPartialFileInputStream : public nsISupports {
     189                 :  public: 
     190                 : 
     191                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPARTIALFILEINPUTSTREAM_IID)
     192                 : 
     193                 :   /* void init (in nsIFile file, in unsigned long long start, in unsigned long long length, in long ioFlags, in long perm, in long behaviorFlags); */
     194                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRUint64 start, PRUint64 length, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) = 0;
     195                 : 
     196                 : };
     197                 : 
     198                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPartialFileInputStream, NS_IPARTIALFILEINPUTSTREAM_IID)
     199                 : 
     200                 : /* Use this macro when declaring classes that implement this interface. */
     201                 : #define NS_DECL_NSIPARTIALFILEINPUTSTREAM \
     202                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRUint64 start, PRUint64 length, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags); 
     203                 : 
     204                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     205                 : #define NS_FORWARD_NSIPARTIALFILEINPUTSTREAM(_to) \
     206                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRUint64 start, PRUint64 length, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) { return _to Init(file, start, length, ioFlags, perm, behaviorFlags); } 
     207                 : 
     208                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     209                 : #define NS_FORWARD_SAFE_NSIPARTIALFILEINPUTSTREAM(_to) \
     210                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIFile *file, PRUint64 start, PRUint64 length, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(file, start, length, ioFlags, perm, behaviorFlags); } 
     211                 : 
     212                 : #if 0
     213                 : /* Use the code below as a template for the implementation class for this interface. */
     214                 : 
     215                 : /* Header file */
     216                 : class nsPartialFileInputStream : public nsIPartialFileInputStream
     217                 : {
     218                 : public:
     219                 :   NS_DECL_ISUPPORTS
     220                 :   NS_DECL_NSIPARTIALFILEINPUTSTREAM
     221                 : 
     222                 :   nsPartialFileInputStream();
     223                 : 
     224                 : private:
     225                 :   ~nsPartialFileInputStream();
     226                 : 
     227                 : protected:
     228                 :   /* additional members */
     229                 : };
     230                 : 
     231                 : /* Implementation file */
     232                 : NS_IMPL_ISUPPORTS1(nsPartialFileInputStream, nsIPartialFileInputStream)
     233                 : 
     234                 : nsPartialFileInputStream::nsPartialFileInputStream()
     235                 : {
     236                 :   /* member initializers and constructor code */
     237                 : }
     238                 : 
     239                 : nsPartialFileInputStream::~nsPartialFileInputStream()
     240                 : {
     241                 :   /* destructor code */
     242                 : }
     243                 : 
     244                 : /* void init (in nsIFile file, in unsigned long long start, in unsigned long long length, in long ioFlags, in long perm, in long behaviorFlags); */
     245                 : NS_IMETHODIMP nsPartialFileInputStream::Init(nsIFile *file, PRUint64 start, PRUint64 length, PRInt32 ioFlags, PRInt32 perm, PRInt32 behaviorFlags)
     246                 : {
     247                 :     return NS_ERROR_NOT_IMPLEMENTED;
     248                 : }
     249                 : 
     250                 : /* End of implementation class template. */
     251                 : #endif
     252                 : 
     253                 : 
     254                 : #endif /* __gen_nsIFileStreams_h__ */

Generated by: LCOV version 1.7