LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIStorageStream.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/nsIStorageStream.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIStorageStream_h__
       6                 : #define __gen_nsIStorageStream_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsrootidl_h__
      14                 : #include "nsrootidl.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 nsIMemory; /* forward declaration */
      22                 : 
      23                 : class nsIInputStream; /* forward declaration */
      24                 : 
      25                 : class nsIOutputStream; /* forward declaration */
      26                 : 
      27                 : 
      28                 : /* starting interface:    nsIStorageStream */
      29                 : #define NS_ISTORAGESTREAM_IID_STR "604ad9d0-753e-11d3-90ca-34278643278f"
      30                 : 
      31                 : #define NS_ISTORAGESTREAM_IID \
      32                 :   {0x604ad9d0, 0x753e, 0x11d3, \
      33                 :     { 0x90, 0xca, 0x34, 0x27, 0x86, 0x43, 0x27, 0x8f }}
      34                 : 
      35            7820 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStorageStream : public nsISupports {
      36                 :  public: 
      37                 : 
      38                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTORAGESTREAM_IID)
      39                 : 
      40                 :   /* void init (in PRUint32 segmentSize, in PRUint32 maxSize, in nsIMemory segmentAllocator); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 segmentSize, PRUint32 maxSize, nsIMemory *segmentAllocator) = 0;
      42                 : 
      43                 :   /* nsIOutputStream getOutputStream (in PRInt32 startPosition); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD GetOutputStream(PRInt32 startPosition, nsIOutputStream * *_retval NS_OUTPARAM) = 0;
      45                 : 
      46                 :   /* nsIInputStream newInputStream (in PRInt32 startPosition); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD NewInputStream(PRInt32 startPosition, nsIInputStream * *_retval NS_OUTPARAM) = 0;
      48                 : 
      49                 :   /* attribute PRUint32 length; */
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
      51                 :   NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) = 0;
      52                 : 
      53                 :   /* readonly attribute boolean writeInProgress; */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetWriteInProgress(bool *aWriteInProgress) = 0;
      55                 : 
      56                 : };
      57                 : 
      58                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStorageStream, NS_ISTORAGESTREAM_IID)
      59                 : 
      60                 : /* Use this macro when declaring classes that implement this interface. */
      61                 : #define NS_DECL_NSISTORAGESTREAM \
      62                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 segmentSize, PRUint32 maxSize, nsIMemory *segmentAllocator); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetOutputStream(PRInt32 startPosition, nsIOutputStream * *_retval NS_OUTPARAM); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD NewInputStream(PRInt32 startPosition, nsIInputStream * *_retval NS_OUTPARAM); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetWriteInProgress(bool *aWriteInProgress); 
      68                 : 
      69                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      70                 : #define NS_FORWARD_NSISTORAGESTREAM(_to) \
      71                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 segmentSize, PRUint32 maxSize, nsIMemory *segmentAllocator) { return _to Init(segmentSize, maxSize, segmentAllocator); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetOutputStream(PRInt32 startPosition, nsIOutputStream * *_retval NS_OUTPARAM) { return _to GetOutputStream(startPosition, _retval); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD NewInputStream(PRInt32 startPosition, nsIInputStream * *_retval NS_OUTPARAM) { return _to NewInputStream(startPosition, _retval); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return _to SetLength(aLength); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetWriteInProgress(bool *aWriteInProgress) { return _to GetWriteInProgress(aWriteInProgress); } 
      77                 : 
      78                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      79                 : #define NS_FORWARD_SAFE_NSISTORAGESTREAM(_to) \
      80                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 segmentSize, PRUint32 maxSize, nsIMemory *segmentAllocator) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(segmentSize, maxSize, segmentAllocator); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetOutputStream(PRInt32 startPosition, nsIOutputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutputStream(startPosition, _retval); } \
      82                 :   NS_SCRIPTABLE NS_IMETHOD NewInputStream(PRInt32 startPosition, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewInputStream(startPosition, _retval); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD SetLength(PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLength(aLength); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetWriteInProgress(bool *aWriteInProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWriteInProgress(aWriteInProgress); } 
      86                 : 
      87                 : #if 0
      88                 : /* Use the code below as a template for the implementation class for this interface. */
      89                 : 
      90                 : /* Header file */
      91                 : class nsStorageStream : public nsIStorageStream
      92                 : {
      93                 : public:
      94                 :   NS_DECL_ISUPPORTS
      95                 :   NS_DECL_NSISTORAGESTREAM
      96                 : 
      97                 :   nsStorageStream();
      98                 : 
      99                 : private:
     100                 :   ~nsStorageStream();
     101                 : 
     102                 : protected:
     103                 :   /* additional members */
     104                 : };
     105                 : 
     106                 : /* Implementation file */
     107                 : NS_IMPL_ISUPPORTS1(nsStorageStream, nsIStorageStream)
     108                 : 
     109                 : nsStorageStream::nsStorageStream()
     110                 : {
     111                 :   /* member initializers and constructor code */
     112                 : }
     113                 : 
     114                 : nsStorageStream::~nsStorageStream()
     115                 : {
     116                 :   /* destructor code */
     117                 : }
     118                 : 
     119                 : /* void init (in PRUint32 segmentSize, in PRUint32 maxSize, in nsIMemory segmentAllocator); */
     120                 : NS_IMETHODIMP nsStorageStream::Init(PRUint32 segmentSize, PRUint32 maxSize, nsIMemory *segmentAllocator)
     121                 : {
     122                 :     return NS_ERROR_NOT_IMPLEMENTED;
     123                 : }
     124                 : 
     125                 : /* nsIOutputStream getOutputStream (in PRInt32 startPosition); */
     126                 : NS_IMETHODIMP nsStorageStream::GetOutputStream(PRInt32 startPosition, nsIOutputStream * *_retval NS_OUTPARAM)
     127                 : {
     128                 :     return NS_ERROR_NOT_IMPLEMENTED;
     129                 : }
     130                 : 
     131                 : /* nsIInputStream newInputStream (in PRInt32 startPosition); */
     132                 : NS_IMETHODIMP nsStorageStream::NewInputStream(PRInt32 startPosition, nsIInputStream * *_retval NS_OUTPARAM)
     133                 : {
     134                 :     return NS_ERROR_NOT_IMPLEMENTED;
     135                 : }
     136                 : 
     137                 : /* attribute PRUint32 length; */
     138                 : NS_IMETHODIMP nsStorageStream::GetLength(PRUint32 *aLength)
     139                 : {
     140                 :     return NS_ERROR_NOT_IMPLEMENTED;
     141                 : }
     142                 : NS_IMETHODIMP nsStorageStream::SetLength(PRUint32 aLength)
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* readonly attribute boolean writeInProgress; */
     148                 : NS_IMETHODIMP nsStorageStream::GetWriteInProgress(bool *aWriteInProgress)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* End of implementation class template. */
     154                 : #endif
     155                 : 
     156                 : // Factory method
     157                 : nsresult
     158                 : NS_NewStorageStream(PRUint32 segmentSize, PRUint32 maxSize, nsIStorageStream **result);
     159                 : 
     160                 : #endif /* __gen_nsIStorageStream_h__ */

Generated by: LCOV version 1.7