LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIScriptableInputStream.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScriptableInputStream.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIScriptableInputStream_h__
       6             : #define __gen_nsIScriptableInputStream_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.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 nsIInputStream; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsIScriptableInputStream */
      21             : #define NS_ISCRIPTABLEINPUTSTREAM_IID_STR "3fce9015-472a-4080-ac3e-cd875dbe361e"
      22             : 
      23             : #define NS_ISCRIPTABLEINPUTSTREAM_IID \
      24             :   {0x3fce9015, 0x472a, 0x4080, \
      25             :     { 0xac, 0x3e, 0xcd, 0x87, 0x5d, 0xbe, 0x36, 0x1e }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIScriptableInputStream : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEINPUTSTREAM_IID)
      31             : 
      32             :   /* void close (); */
      33             :   NS_IMETHOD Close(void) = 0;
      34             : 
      35             :   /* void init (in nsIInputStream aInputStream); */
      36             :   NS_IMETHOD Init(nsIInputStream *aInputStream) = 0;
      37             : 
      38             :   /* unsigned long long available (); */
      39             :   NS_IMETHOD Available(uint64_t *_retval) = 0;
      40             : 
      41             :   /* string read (in unsigned long aCount); */
      42             :   NS_IMETHOD Read(uint32_t aCount, char * *_retval) = 0;
      43             : 
      44             :   /* ACString readBytes (in unsigned long aCount); */
      45             :   NS_IMETHOD ReadBytes(uint32_t aCount, nsACString & _retval) = 0;
      46             : 
      47             : };
      48             : 
      49             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableInputStream, NS_ISCRIPTABLEINPUTSTREAM_IID)
      50             : 
      51             : /* Use this macro when declaring classes that implement this interface. */
      52             : #define NS_DECL_NSISCRIPTABLEINPUTSTREAM \
      53             :   NS_IMETHOD Close(void) override; \
      54             :   NS_IMETHOD Init(nsIInputStream *aInputStream) override; \
      55             :   NS_IMETHOD Available(uint64_t *_retval) override; \
      56             :   NS_IMETHOD Read(uint32_t aCount, char * *_retval) override; \
      57             :   NS_IMETHOD ReadBytes(uint32_t aCount, nsACString & _retval) override; 
      58             : 
      59             : /* Use this macro when declaring the members of this interface when the
      60             :    class doesn't implement the interface. This is useful for forwarding. */
      61             : #define NS_DECL_NON_VIRTUAL_NSISCRIPTABLEINPUTSTREAM \
      62             :   nsresult Close(void); \
      63             :   nsresult Init(nsIInputStream *aInputStream); \
      64             :   nsresult Available(uint64_t *_retval); \
      65             :   nsresult Read(uint32_t aCount, char * *_retval); \
      66             :   nsresult ReadBytes(uint32_t aCount, nsACString & _retval); 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      69             : #define NS_FORWARD_NSISCRIPTABLEINPUTSTREAM(_to) \
      70             :   NS_IMETHOD Close(void) override { return _to Close(); } \
      71             :   NS_IMETHOD Init(nsIInputStream *aInputStream) override { return _to Init(aInputStream); } \
      72             :   NS_IMETHOD Available(uint64_t *_retval) override { return _to Available(_retval); } \
      73             :   NS_IMETHOD Read(uint32_t aCount, char * *_retval) override { return _to Read(aCount, _retval); } \
      74             :   NS_IMETHOD ReadBytes(uint32_t aCount, nsACString & _retval) override { return _to ReadBytes(aCount, _retval); } 
      75             : 
      76             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      77             : #define NS_FORWARD_SAFE_NSISCRIPTABLEINPUTSTREAM(_to) \
      78             :   NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
      79             :   NS_IMETHOD Init(nsIInputStream *aInputStream) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aInputStream); } \
      80             :   NS_IMETHOD Available(uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Available(_retval); } \
      81             :   NS_IMETHOD Read(uint32_t aCount, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Read(aCount, _retval); } \
      82             :   NS_IMETHOD ReadBytes(uint32_t aCount, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadBytes(aCount, _retval); } 
      83             : 
      84             : #if 0
      85             : /* Use the code below as a template for the implementation class for this interface. */
      86             : 
      87             : /* Header file */
      88             : class nsScriptableInputStream : public nsIScriptableInputStream
      89             : {
      90             : public:
      91             :   NS_DECL_ISUPPORTS
      92             :   NS_DECL_NSISCRIPTABLEINPUTSTREAM
      93             : 
      94             :   nsScriptableInputStream();
      95             : 
      96             : private:
      97             :   ~nsScriptableInputStream();
      98             : 
      99             : protected:
     100             :   /* additional members */
     101             : };
     102             : 
     103             : /* Implementation file */
     104             : NS_IMPL_ISUPPORTS(nsScriptableInputStream, nsIScriptableInputStream)
     105             : 
     106             : nsScriptableInputStream::nsScriptableInputStream()
     107             : {
     108             :   /* member initializers and constructor code */
     109             : }
     110             : 
     111             : nsScriptableInputStream::~nsScriptableInputStream()
     112             : {
     113             :   /* destructor code */
     114             : }
     115             : 
     116             : /* void close (); */
     117             : NS_IMETHODIMP nsScriptableInputStream::Close()
     118             : {
     119             :     return NS_ERROR_NOT_IMPLEMENTED;
     120             : }
     121             : 
     122             : /* void init (in nsIInputStream aInputStream); */
     123             : NS_IMETHODIMP nsScriptableInputStream::Init(nsIInputStream *aInputStream)
     124             : {
     125             :     return NS_ERROR_NOT_IMPLEMENTED;
     126             : }
     127             : 
     128             : /* unsigned long long available (); */
     129             : NS_IMETHODIMP nsScriptableInputStream::Available(uint64_t *_retval)
     130             : {
     131             :     return NS_ERROR_NOT_IMPLEMENTED;
     132             : }
     133             : 
     134             : /* string read (in unsigned long aCount); */
     135             : NS_IMETHODIMP nsScriptableInputStream::Read(uint32_t aCount, char * *_retval)
     136             : {
     137             :     return NS_ERROR_NOT_IMPLEMENTED;
     138             : }
     139             : 
     140             : /* ACString readBytes (in unsigned long aCount); */
     141             : NS_IMETHODIMP nsScriptableInputStream::ReadBytes(uint32_t aCount, nsACString & _retval)
     142             : {
     143             :     return NS_ERROR_NOT_IMPLEMENTED;
     144             : }
     145             : 
     146             : /* End of implementation class template. */
     147             : #endif
     148             : 
     149             : 
     150             : #endif /* __gen_nsIScriptableInputStream_h__ */

Generated by: LCOV version 1.13