LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIAsyncInputStream.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/nsIAsyncInputStream.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIAsyncInputStream_h__
       6                 : #define __gen_nsIAsyncInputStream_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIInputStream_h__
      10                 : #include "nsIInputStream.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 nsIInputStreamCallback; /* forward declaration */
      18                 : 
      19                 : class nsIEventTarget; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIAsyncInputStream */
      23                 : #define NS_IASYNCINPUTSTREAM_IID_STR "a5f255ab-4801-4161-8816-277ac92f6ad1"
      24                 : 
      25                 : #define NS_IASYNCINPUTSTREAM_IID \
      26                 :   {0xa5f255ab, 0x4801, 0x4161, \
      27                 :     { 0x88, 0x16, 0x27, 0x7a, 0xc9, 0x2f, 0x6a, 0xd1 }}
      28                 : 
      29           24570 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAsyncInputStream : public nsIInputStream {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASYNCINPUTSTREAM_IID)
      33                 : 
      34                 :   /* void closeWithStatus (in nsresult aStatus); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult aStatus) = 0;
      36                 : 
      37                 :   /* void asyncWait (in nsIInputStreamCallback aCallback, in unsigned long aFlags, in unsigned long aRequestedCount, in nsIEventTarget aEventTarget); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIInputStreamCallback *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(nsIAsyncInputStream, NS_IASYNCINPUTSTREAM_IID)
      47                 : 
      48                 : /* Use this macro when declaring classes that implement this interface. */
      49                 : #define NS_DECL_NSIASYNCINPUTSTREAM \
      50                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult aStatus); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIInputStreamCallback *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_NSIASYNCINPUTSTREAM(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult aStatus) { return _to CloseWithStatus(aStatus); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIInputStreamCallback *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_NSIASYNCINPUTSTREAM(_to) \
      60                 :   NS_SCRIPTABLE NS_IMETHOD CloseWithStatus(nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseWithStatus(aStatus); } \
      61                 :   NS_SCRIPTABLE NS_IMETHOD AsyncWait(nsIInputStreamCallback *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 nsAsyncInputStream : public nsIAsyncInputStream
      68                 : {
      69                 : public:
      70                 :   NS_DECL_ISUPPORTS
      71                 :   NS_DECL_NSIASYNCINPUTSTREAM
      72                 : 
      73                 :   nsAsyncInputStream();
      74                 : 
      75                 : private:
      76                 :   ~nsAsyncInputStream();
      77                 : 
      78                 : protected:
      79                 :   /* additional members */
      80                 : };
      81                 : 
      82                 : /* Implementation file */
      83                 : NS_IMPL_ISUPPORTS1(nsAsyncInputStream, nsIAsyncInputStream)
      84                 : 
      85                 : nsAsyncInputStream::nsAsyncInputStream()
      86                 : {
      87                 :   /* member initializers and constructor code */
      88                 : }
      89                 : 
      90                 : nsAsyncInputStream::~nsAsyncInputStream()
      91                 : {
      92                 :   /* destructor code */
      93                 : }
      94                 : 
      95                 : /* void closeWithStatus (in nsresult aStatus); */
      96                 : NS_IMETHODIMP nsAsyncInputStream::CloseWithStatus(nsresult aStatus)
      97                 : {
      98                 :     return NS_ERROR_NOT_IMPLEMENTED;
      99                 : }
     100                 : 
     101                 : /* void asyncWait (in nsIInputStreamCallback aCallback, in unsigned long aFlags, in unsigned long aRequestedCount, in nsIEventTarget aEventTarget); */
     102                 : NS_IMETHODIMP nsAsyncInputStream::AsyncWait(nsIInputStreamCallback *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:    nsIInputStreamCallback */
     112                 : #define NS_IINPUTSTREAMCALLBACK_IID_STR "d1f28e94-3a6e-4050-a5f5-2e81b1fc2a43"
     113                 : 
     114                 : #define NS_IINPUTSTREAMCALLBACK_IID \
     115                 :   {0xd1f28e94, 0x3a6e, 0x4050, \
     116                 :     { 0xa5, 0xf5, 0x2e, 0x81, 0xb1, 0xfc, 0x2a, 0x43 }}
     117                 : 
     118           35348 : class NS_NO_VTABLE NS_SCRIPTABLE nsIInputStreamCallback : public nsISupports {
     119                 :  public: 
     120                 : 
     121                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINPUTSTREAMCALLBACK_IID)
     122                 : 
     123                 :   /* void onInputStreamReady (in nsIAsyncInputStream aStream); */
     124                 :   NS_SCRIPTABLE NS_IMETHOD OnInputStreamReady(nsIAsyncInputStream *aStream) = 0;
     125                 : 
     126                 : };
     127                 : 
     128                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIInputStreamCallback, NS_IINPUTSTREAMCALLBACK_IID)
     129                 : 
     130                 : /* Use this macro when declaring classes that implement this interface. */
     131                 : #define NS_DECL_NSIINPUTSTREAMCALLBACK \
     132                 :   NS_SCRIPTABLE NS_IMETHOD OnInputStreamReady(nsIAsyncInputStream *aStream); 
     133                 : 
     134                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     135                 : #define NS_FORWARD_NSIINPUTSTREAMCALLBACK(_to) \
     136                 :   NS_SCRIPTABLE NS_IMETHOD OnInputStreamReady(nsIAsyncInputStream *aStream) { return _to OnInputStreamReady(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_NSIINPUTSTREAMCALLBACK(_to) \
     140                 :   NS_SCRIPTABLE NS_IMETHOD OnInputStreamReady(nsIAsyncInputStream *aStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInputStreamReady(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 nsInputStreamCallback : public nsIInputStreamCallback
     147                 : {
     148                 : public:
     149                 :   NS_DECL_ISUPPORTS
     150                 :   NS_DECL_NSIINPUTSTREAMCALLBACK
     151                 : 
     152                 :   nsInputStreamCallback();
     153                 : 
     154                 : private:
     155                 :   ~nsInputStreamCallback();
     156                 : 
     157                 : protected:
     158                 :   /* additional members */
     159                 : };
     160                 : 
     161                 : /* Implementation file */
     162                 : NS_IMPL_ISUPPORTS1(nsInputStreamCallback, nsIInputStreamCallback)
     163                 : 
     164                 : nsInputStreamCallback::nsInputStreamCallback()
     165                 : {
     166                 :   /* member initializers and constructor code */
     167                 : }
     168                 : 
     169                 : nsInputStreamCallback::~nsInputStreamCallback()
     170                 : {
     171                 :   /* destructor code */
     172                 : }
     173                 : 
     174                 : /* void onInputStreamReady (in nsIAsyncInputStream aStream); */
     175                 : NS_IMETHODIMP nsInputStreamCallback::OnInputStreamReady(nsIAsyncInputStream *aStream)
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : 
     180                 : /* End of implementation class template. */
     181                 : #endif
     182                 : 
     183                 : 
     184                 : #endif /* __gen_nsIAsyncInputStream_h__ */

Generated by: LCOV version 1.7