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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/nsIAsyncOutputStream.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIAsyncOutputStream_h__
       6                 : #define __gen_nsIAsyncOutputStream_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIOutputStream_h__
      10                 : #include "nsIOutputStream.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                 : class nsIOutputStreamCallback; /* forward declaration */
      18                 : 
      19                 : class nsIEventTarget; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIAsyncOutputStream */
      23                 : #define NS_IASYNCOUTPUTSTREAM_IID_STR "beb632d3-d77a-4e90-9134-f9ece69e8200"
      24                 : 
      25                 : #define NS_IASYNCOUTPUTSTREAM_IID \
      26                 :   {0xbeb632d3, 0xd77a, 0x4e90, \
      27                 :     { 0x91, 0x34, 0xf9, 0xec, 0xe6, 0x9e, 0x82, 0x00 }}
      28                 : 
      29           24515 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAsyncOutputStream : public nsIOutputStream {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASYNCOUTPUTSTREAM_IID)
      33                 : 
      34                 :   /* void closeWithStatus (in nsresult reason); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult reason) = 0;
      36                 : 
      37                 :   /* void asyncWait (in nsIOutputStreamCallback aCallback, in unsigned long aFlags, in unsigned long aRequestedCount, in nsIEventTarget aEventTarget); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIOutputStreamCallback *aCallback, PRUint32 aFlags, PRUint32 aRequestedCount, nsIEventTarget *aEventTarget) = 0;
      39                 : 
      40                 :   enum {
      41                 :     WAIT_CLOSURE_ONLY = 1U
      42                 :   };
      43                 : 
      44                 : };
      45                 : 
      46                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAsyncOutputStream, NS_IASYNCOUTPUTSTREAM_IID)
      47                 : 
      48                 : /* Use this macro when declaring classes that implement this interface. */
      49                 : #define NS_DECL_NSIASYNCOUTPUTSTREAM \
      50                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult reason); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIOutputStreamCallback *aCallback, PRUint32 aFlags, PRUint32 aRequestedCount, nsIEventTarget *aEventTarget); \
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_NSIASYNCOUTPUTSTREAM(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult reason) { return _to CloseWithStatus(reason); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIOutputStreamCallback *aCallback, PRUint32 aFlags, PRUint32 aRequestedCount, nsIEventTarget *aEventTarget) { return _to AsyncWait(aCallback, aFlags, aRequestedCount, aEventTarget); } \
      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_NSIASYNCOUTPUTSTREAM(_to) \
      60                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult reason) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseWithStatus(reason); } \
      61                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIOutputStreamCallback *aCallback, PRUint32 aFlags, PRUint32 aRequestedCount, nsIEventTarget *aEventTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncWait(aCallback, aFlags, aRequestedCount, aEventTarget); } \
      62                 : 
      63                 : #if 0
      64                 : /* Use the code below as a template for the implementation class for this interface. */
      65                 : 
      66                 : /* Header file */
      67                 : class nsAsyncOutputStream : public nsIAsyncOutputStream
      68                 : {
      69                 : public:
      70                 :   NS_DECL_ISUPPORTS
      71                 :   NS_DECL_NSIASYNCOUTPUTSTREAM
      72                 : 
      73                 :   nsAsyncOutputStream();
      74                 : 
      75                 : private:
      76                 :   ~nsAsyncOutputStream();
      77                 : 
      78                 : protected:
      79                 :   /* additional members */
      80                 : };
      81                 : 
      82                 : /* Implementation file */
      83                 : NS_IMPL_ISUPPORTS1(nsAsyncOutputStream, nsIAsyncOutputStream)
      84                 : 
      85                 : nsAsyncOutputStream::nsAsyncOutputStream()
      86                 : {
      87                 :   /* member initializers and constructor code */
      88                 : }
      89                 : 
      90                 : nsAsyncOutputStream::~nsAsyncOutputStream()
      91                 : {
      92                 :   /* destructor code */
      93                 : }
      94                 : 
      95                 : /* void closeWithStatus (in nsresult reason); */
      96                 : NS_IMETHODIMP nsAsyncOutputStream::CloseWithStatus(nsresult reason)
      97                 : {
      98                 :     return NS_ERROR_NOT_IMPLEMENTED;
      99                 : }
     100                 : 
     101                 : /* void asyncWait (in nsIOutputStreamCallback aCallback, in unsigned long aFlags, in unsigned long aRequestedCount, in nsIEventTarget aEventTarget); */
     102                 : NS_IMETHODIMP nsAsyncOutputStream::AsyncWait(nsIOutputStreamCallback *aCallback, PRUint32 aFlags, PRUint32 aRequestedCount, nsIEventTarget *aEventTarget)
     103                 : {
     104                 :     return NS_ERROR_NOT_IMPLEMENTED;
     105                 : }
     106                 : 
     107                 : /* End of implementation class template. */
     108                 : #endif
     109                 : 
     110                 : 
     111                 : /* starting interface:    nsIOutputStreamCallback */
     112                 : #define NS_IOUTPUTSTREAMCALLBACK_IID_STR "40dbcdff-9053-42c5-a57c-3ec910d0f148"
     113                 : 
     114                 : #define NS_IOUTPUTSTREAMCALLBACK_IID \
     115                 :   {0x40dbcdff, 0x9053, 0x42c5, \
     116                 :     { 0xa5, 0x7c, 0x3e, 0xc9, 0x10, 0xd0, 0xf1, 0x48 }}
     117                 : 
     118           33712 : class NS_NO_VTABLE NS_SCRIPTABLE nsIOutputStreamCallback : public nsISupports {
     119                 :  public: 
     120                 : 
     121                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOUTPUTSTREAMCALLBACK_IID)
     122                 : 
     123                 :   /* void onOutputStreamReady (in nsIAsyncOutputStream aStream); */
     124                 :   NS_SCRIPTABLE NS_IMETHOD OnOutputStreamReady(nsIAsyncOutputStream *aStream) = 0;
     125                 : 
     126                 : };
     127                 : 
     128                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIOutputStreamCallback, NS_IOUTPUTSTREAMCALLBACK_IID)
     129                 : 
     130                 : /* Use this macro when declaring classes that implement this interface. */
     131                 : #define NS_DECL_NSIOUTPUTSTREAMCALLBACK \
     132                 :   NS_SCRIPTABLE NS_IMETHOD OnOutputStreamReady(nsIAsyncOutputStream *aStream); 
     133                 : 
     134                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     135                 : #define NS_FORWARD_NSIOUTPUTSTREAMCALLBACK(_to) \
     136                 :   NS_SCRIPTABLE NS_IMETHOD OnOutputStreamReady(nsIAsyncOutputStream *aStream) { return _to OnOutputStreamReady(aStream); } 
     137                 : 
     138                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     139                 : #define NS_FORWARD_SAFE_NSIOUTPUTSTREAMCALLBACK(_to) \
     140                 :   NS_SCRIPTABLE NS_IMETHOD OnOutputStreamReady(nsIAsyncOutputStream *aStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnOutputStreamReady(aStream); } 
     141                 : 
     142                 : #if 0
     143                 : /* Use the code below as a template for the implementation class for this interface. */
     144                 : 
     145                 : /* Header file */
     146                 : class nsOutputStreamCallback : public nsIOutputStreamCallback
     147                 : {
     148                 : public:
     149                 :   NS_DECL_ISUPPORTS
     150                 :   NS_DECL_NSIOUTPUTSTREAMCALLBACK
     151                 : 
     152                 :   nsOutputStreamCallback();
     153                 : 
     154                 : private:
     155                 :   ~nsOutputStreamCallback();
     156                 : 
     157                 : protected:
     158                 :   /* additional members */
     159                 : };
     160                 : 
     161                 : /* Implementation file */
     162                 : NS_IMPL_ISUPPORTS1(nsOutputStreamCallback, nsIOutputStreamCallback)
     163                 : 
     164                 : nsOutputStreamCallback::nsOutputStreamCallback()
     165                 : {
     166                 :   /* member initializers and constructor code */
     167                 : }
     168                 : 
     169                 : nsOutputStreamCallback::~nsOutputStreamCallback()
     170                 : {
     171                 :   /* destructor code */
     172                 : }
     173                 : 
     174                 : /* void onOutputStreamReady (in nsIAsyncOutputStream aStream); */
     175                 : NS_IMETHODIMP nsOutputStreamCallback::OnOutputStreamReady(nsIAsyncOutputStream *aStream)
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : 
     180                 : /* End of implementation class template. */
     181                 : #endif
     182                 : 
     183                 : 
     184                 : #endif /* __gen_nsIAsyncOutputStream_h__ */

Generated by: LCOV version 1.7