LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIUnicharOutputStream.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/nsIUnicharOutputStream.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIUnicharOutputStream_h__
       6             : #define __gen_nsIUnicharOutputStream_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             : 
      18             : /* starting interface:    nsIUnicharOutputStream */
      19             : #define NS_IUNICHAROUTPUTSTREAM_IID_STR "2d00b1bb-8b21-4a63-bcc6-7213f513ac2e"
      20             : 
      21             : #define NS_IUNICHAROUTPUTSTREAM_IID \
      22             :   {0x2d00b1bb, 0x8b21, 0x4a63, \
      23             :     { 0xbc, 0xc6, 0x72, 0x13, 0xf5, 0x13, 0xac, 0x2e }}
      24             : 
      25           0 : class NS_NO_VTABLE nsIUnicharOutputStream : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUNICHAROUTPUTSTREAM_IID)
      29             : 
      30             :   /* boolean write (in unsigned long aCount, [array, size_is (aCount), const] in char16_t c); */
      31             :   NS_IMETHOD Write(uint32_t aCount, const char16_t *c, bool *_retval) = 0;
      32             : 
      33             :   /* boolean writeString (in AString str); */
      34             :   NS_IMETHOD WriteString(const nsAString & str, bool *_retval) = 0;
      35             : 
      36             :   /* void flush (); */
      37             :   NS_IMETHOD Flush(void) = 0;
      38             : 
      39             :   /* void close (); */
      40             :   NS_IMETHOD Close(void) = 0;
      41             : 
      42             : };
      43             : 
      44             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUnicharOutputStream, NS_IUNICHAROUTPUTSTREAM_IID)
      45             : 
      46             : /* Use this macro when declaring classes that implement this interface. */
      47             : #define NS_DECL_NSIUNICHAROUTPUTSTREAM \
      48             :   NS_IMETHOD Write(uint32_t aCount, const char16_t *c, bool *_retval) override; \
      49             :   NS_IMETHOD WriteString(const nsAString & str, bool *_retval) override; \
      50             :   NS_IMETHOD Flush(void) override; \
      51             :   NS_IMETHOD Close(void) override; 
      52             : 
      53             : /* Use this macro when declaring the members of this interface when the
      54             :    class doesn't implement the interface. This is useful for forwarding. */
      55             : #define NS_DECL_NON_VIRTUAL_NSIUNICHAROUTPUTSTREAM \
      56             :   nsresult Write(uint32_t aCount, const char16_t *c, bool *_retval); \
      57             :   nsresult WriteString(const nsAString & str, bool *_retval); \
      58             :   nsresult Flush(void); \
      59             :   nsresult Close(void); 
      60             : 
      61             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62             : #define NS_FORWARD_NSIUNICHAROUTPUTSTREAM(_to) \
      63             :   NS_IMETHOD Write(uint32_t aCount, const char16_t *c, bool *_retval) override { return _to Write(aCount, c, _retval); } \
      64             :   NS_IMETHOD WriteString(const nsAString & str, bool *_retval) override { return _to WriteString(str, _retval); } \
      65             :   NS_IMETHOD Flush(void) override { return _to Flush(); } \
      66             :   NS_IMETHOD Close(void) override { return _to Close(); } 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      69             : #define NS_FORWARD_SAFE_NSIUNICHAROUTPUTSTREAM(_to) \
      70             :   NS_IMETHOD Write(uint32_t aCount, const char16_t *c, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(aCount, c, _retval); } \
      71             :   NS_IMETHOD WriteString(const nsAString & str, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteString(str, _retval); } \
      72             :   NS_IMETHOD Flush(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(); } \
      73             :   NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } 
      74             : 
      75             : #if 0
      76             : /* Use the code below as a template for the implementation class for this interface. */
      77             : 
      78             : /* Header file */
      79             : class nsUnicharOutputStream : public nsIUnicharOutputStream
      80             : {
      81             : public:
      82             :   NS_DECL_ISUPPORTS
      83             :   NS_DECL_NSIUNICHAROUTPUTSTREAM
      84             : 
      85             :   nsUnicharOutputStream();
      86             : 
      87             : private:
      88             :   ~nsUnicharOutputStream();
      89             : 
      90             : protected:
      91             :   /* additional members */
      92             : };
      93             : 
      94             : /* Implementation file */
      95             : NS_IMPL_ISUPPORTS(nsUnicharOutputStream, nsIUnicharOutputStream)
      96             : 
      97             : nsUnicharOutputStream::nsUnicharOutputStream()
      98             : {
      99             :   /* member initializers and constructor code */
     100             : }
     101             : 
     102             : nsUnicharOutputStream::~nsUnicharOutputStream()
     103             : {
     104             :   /* destructor code */
     105             : }
     106             : 
     107             : /* boolean write (in unsigned long aCount, [array, size_is (aCount), const] in char16_t c); */
     108             : NS_IMETHODIMP nsUnicharOutputStream::Write(uint32_t aCount, const char16_t *c, bool *_retval)
     109             : {
     110             :     return NS_ERROR_NOT_IMPLEMENTED;
     111             : }
     112             : 
     113             : /* boolean writeString (in AString str); */
     114             : NS_IMETHODIMP nsUnicharOutputStream::WriteString(const nsAString & str, bool *_retval)
     115             : {
     116             :     return NS_ERROR_NOT_IMPLEMENTED;
     117             : }
     118             : 
     119             : /* void flush (); */
     120             : NS_IMETHODIMP nsUnicharOutputStream::Flush()
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : 
     125             : /* void close (); */
     126             : NS_IMETHODIMP nsUnicharOutputStream::Close()
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* End of implementation class template. */
     132             : #endif
     133             : 
     134             : 
     135             : #endif /* __gen_nsIUnicharOutputStream_h__ */

Generated by: LCOV version 1.13