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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIGZFileWriter.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIGZFileWriter_h__
       6             : #define __gen_nsIGZFileWriter_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             : #include "nsDependentString.h"
      18             : #include <stdio.h>
      19             : class nsIFile; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIGZFileWriter */
      23             : #define NS_IGZFILEWRITER_IID_STR "6bd5642c-1b90-4499-ba4b-199f27efaba5"
      24             : 
      25             : #define NS_IGZFILEWRITER_IID \
      26             :   {0x6bd5642c, 0x1b90, 0x4499, \
      27             :     { 0xba, 0x4b, 0x19, 0x9f, 0x27, 0xef, 0xab, 0xa5 }}
      28             : 
      29           0 : class nsIGZFileWriter : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGZFILEWRITER_IID)
      33             : 
      34             :   /* [must_use] void init (in nsIFile file); */
      35             :   MOZ_MUST_USE NS_IMETHOD Init(nsIFile *file) = 0;
      36             : 
      37             :   /* [must_use,noscript] void initANSIFileDesc (in FILE file); */
      38             :   MOZ_MUST_USE NS_IMETHOD InitANSIFileDesc(FILE *file) = 0;
      39             : 
      40             :   /* [must_use] void write (in AUTF8String str); */
      41             :   MOZ_MUST_USE NS_IMETHOD Write(const nsACString & str) = 0;
      42             : 
      43             :    /**
      44             :    * Write the given char* to the file (not including the null-terminator).
      45             :    */
      46           0 :   MOZ_MUST_USE nsresult Write(const char* str)
      47             :   {
      48           0 :     return Write(str, strlen(str));
      49             :   }
      50             :   /**
      51             :    * Write |length| bytes of |str| to the file.
      52             :    */
      53           0 :   MOZ_MUST_USE nsresult Write(const char* str, uint32_t len)
      54             :   {
      55           0 :     return Write(nsDependentCString(str, len));
      56             :   }
      57             :     /* void finish (); */
      58             :   NS_IMETHOD Finish(void) = 0;
      59             : 
      60             : };
      61             : 
      62             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGZFileWriter, NS_IGZFILEWRITER_IID)
      63             : 
      64             : /* Use this macro when declaring classes that implement this interface. */
      65             : #define NS_DECL_NSIGZFILEWRITER \
      66             :   MOZ_MUST_USE NS_IMETHOD Init(nsIFile *file) override; \
      67             :   MOZ_MUST_USE NS_IMETHOD InitANSIFileDesc(FILE *file) override; \
      68             :   MOZ_MUST_USE NS_IMETHOD Write(const nsACString & str) override; \
      69             :   NS_IMETHOD Finish(void) override; 
      70             : 
      71             : /* Use this macro when declaring the members of this interface when the
      72             :    class doesn't implement the interface. This is useful for forwarding. */
      73             : #define NS_DECL_NON_VIRTUAL_NSIGZFILEWRITER \
      74             :   MOZ_MUST_USE nsresult Init(nsIFile *file); \
      75             :   MOZ_MUST_USE nsresult InitANSIFileDesc(FILE *file); \
      76             :   MOZ_MUST_USE nsresult Write(const nsACString & str); \
      77             :   nsresult Finish(void); 
      78             : 
      79             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      80             : #define NS_FORWARD_NSIGZFILEWRITER(_to) \
      81             :   MOZ_MUST_USE NS_IMETHOD Init(nsIFile *file) override { return _to Init(file); } \
      82             :   MOZ_MUST_USE NS_IMETHOD InitANSIFileDesc(FILE *file) override { return _to InitANSIFileDesc(file); } \
      83             :   MOZ_MUST_USE NS_IMETHOD Write(const nsACString & str) override { return _to Write(str); } \
      84             :   NS_IMETHOD Finish(void) override { return _to Finish(); } 
      85             : 
      86             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      87             : #define NS_FORWARD_SAFE_NSIGZFILEWRITER(_to) \
      88             :   MOZ_MUST_USE NS_IMETHOD Init(nsIFile *file) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(file); } \
      89             :   MOZ_MUST_USE NS_IMETHOD InitANSIFileDesc(FILE *file) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitANSIFileDesc(file); } \
      90             :   MOZ_MUST_USE NS_IMETHOD Write(const nsACString & str) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(str); } \
      91             :   NS_IMETHOD Finish(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(); } 
      92             : 
      93             : #if 0
      94             : /* Use the code below as a template for the implementation class for this interface. */
      95             : 
      96             : /* Header file */
      97             : class nsGZFileWriter : public nsIGZFileWriter
      98             : {
      99             : public:
     100             :   NS_DECL_ISUPPORTS
     101             :   NS_DECL_NSIGZFILEWRITER
     102             : 
     103             :   nsGZFileWriter();
     104             : 
     105             : private:
     106             :   ~nsGZFileWriter();
     107             : 
     108             : protected:
     109             :   /* additional members */
     110             : };
     111             : 
     112             : /* Implementation file */
     113             : NS_IMPL_ISUPPORTS(nsGZFileWriter, nsIGZFileWriter)
     114             : 
     115             : nsGZFileWriter::nsGZFileWriter()
     116             : {
     117             :   /* member initializers and constructor code */
     118             : }
     119             : 
     120             : nsGZFileWriter::~nsGZFileWriter()
     121             : {
     122             :   /* destructor code */
     123             : }
     124             : 
     125             : /* [must_use] void init (in nsIFile file); */
     126             : MOZ_MUST_USE NS_IMETHODIMP nsGZFileWriter::Init(nsIFile *file)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* [must_use,noscript] void initANSIFileDesc (in FILE file); */
     132             : MOZ_MUST_USE NS_IMETHODIMP nsGZFileWriter::InitANSIFileDesc(FILE *file)
     133             : {
     134             :     return NS_ERROR_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137             : /* [must_use] void write (in AUTF8String str); */
     138             : MOZ_MUST_USE NS_IMETHODIMP nsGZFileWriter::Write(const nsACString & str)
     139             : {
     140             :     return NS_ERROR_NOT_IMPLEMENTED;
     141             : }
     142             : 
     143             : /* void finish (); */
     144             : NS_IMETHODIMP nsGZFileWriter::Finish()
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* End of implementation class template. */
     150             : #endif
     151             : 
     152             : 
     153             : #endif /* __gen_nsIGZFileWriter_h__ */

Generated by: LCOV version 1.13