LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsISaveAsCharset.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/nsISaveAsCharset.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISaveAsCharset_h__
       6             : #define __gen_nsISaveAsCharset_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIEntityConverter_h__
      14             : #include "nsIEntityConverter.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : #define NS_SAVEASCHARSET_CID { 0xcd233e0, 0x7a86, 0x11d3, { 0x91, 0x5c, 0x0, 0x60, 0x8, 0xa6, 0xed, 0xf6 } }
      22             : #define NS_SAVEASCHARSET_CONTRACTID "@mozilla.org/intl/saveascharset;1"
      23             : 
      24             : /* starting interface:    nsISaveAsCharset */
      25             : #define NS_ISAVEASCHARSET_IID_STR "b3b8124f-0abb-460e-88ac-3cf1a0134b2d"
      26             : 
      27             : #define NS_ISAVEASCHARSET_IID \
      28             :   {0xb3b8124f, 0x0abb, 0x460e, \
      29             :     { 0x88, 0xac, 0x3c, 0xf1, 0xa0, 0x13, 0x4b, 0x2d }}
      30             : 
      31           0 : class NS_NO_VTABLE nsISaveAsCharset : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISAVEASCHARSET_IID)
      35             : 
      36             :   enum {
      37             :     mask_Fallback = 255U,
      38             :     mask_Entity = 768U,
      39             :     mask_CharsetFallback = 1024U,
      40             :     attr_FallbackNone = 0U,
      41             :     attr_FallbackQuestionMark = 1U,
      42             :     attr_FallbackEscapeU = 2U,
      43             :     attr_FallbackDecimalNCR = 3U,
      44             :     attr_FallbackHexNCR = 4U,
      45             :     attr_EntityNone = 0U,
      46             :     attr_EntityBeforeCharsetConv = 256U,
      47             :     attr_EntityAfterCharsetConv = 512U,
      48             :     attr_CharsetFallback = 1024U,
      49             :     attr_plainTextDefault = 0U,
      50             :     attr_htmlTextDefault = 259U
      51             :   };
      52             : 
      53             :   /* readonly attribute AUTF8String charset; */
      54             :   NS_IMETHOD GetCharset(nsACString & aCharset) = 0;
      55             : 
      56             :   /* void Init (in AUTF8String charset, in unsigned long ignored, in unsigned long alsoIgnored); */
      57             :   NS_IMETHOD Init(const nsACString & charset, uint32_t ignored, uint32_t alsoIgnored) = 0;
      58             : 
      59             :   /* ACString Convert (in AString inString); */
      60             :   NS_IMETHOD Convert(const nsAString & inString, nsACString & _retval) = 0;
      61             : 
      62             : };
      63             : 
      64             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISaveAsCharset, NS_ISAVEASCHARSET_IID)
      65             : 
      66             : /* Use this macro when declaring classes that implement this interface. */
      67             : #define NS_DECL_NSISAVEASCHARSET \
      68             :   NS_IMETHOD GetCharset(nsACString & aCharset) override; \
      69             :   NS_IMETHOD Init(const nsACString & charset, uint32_t ignored, uint32_t alsoIgnored) override; \
      70             :   NS_IMETHOD Convert(const nsAString & inString, nsACString & _retval) override; 
      71             : 
      72             : /* Use this macro when declaring the members of this interface when the
      73             :    class doesn't implement the interface. This is useful for forwarding. */
      74             : #define NS_DECL_NON_VIRTUAL_NSISAVEASCHARSET \
      75             :   nsresult GetCharset(nsACString & aCharset); \
      76             :   nsresult Init(const nsACString & charset, uint32_t ignored, uint32_t alsoIgnored); \
      77             :   nsresult Convert(const nsAString & inString, nsACString & _retval); 
      78             : 
      79             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      80             : #define NS_FORWARD_NSISAVEASCHARSET(_to) \
      81             :   NS_IMETHOD GetCharset(nsACString & aCharset) override { return _to GetCharset(aCharset); } \
      82             :   NS_IMETHOD Init(const nsACString & charset, uint32_t ignored, uint32_t alsoIgnored) override { return _to Init(charset, ignored, alsoIgnored); } \
      83             :   NS_IMETHOD Convert(const nsAString & inString, nsACString & _retval) override { return _to Convert(inString, _retval); } 
      84             : 
      85             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      86             : #define NS_FORWARD_SAFE_NSISAVEASCHARSET(_to) \
      87             :   NS_IMETHOD GetCharset(nsACString & aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
      88             :   NS_IMETHOD Init(const nsACString & charset, uint32_t ignored, uint32_t alsoIgnored) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(charset, ignored, alsoIgnored); } \
      89             :   NS_IMETHOD Convert(const nsAString & inString, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Convert(inString, _retval); } 
      90             : 
      91             : #if 0
      92             : /* Use the code below as a template for the implementation class for this interface. */
      93             : 
      94             : /* Header file */
      95             : class nsSaveAsCharset : public nsISaveAsCharset
      96             : {
      97             : public:
      98             :   NS_DECL_ISUPPORTS
      99             :   NS_DECL_NSISAVEASCHARSET
     100             : 
     101             :   nsSaveAsCharset();
     102             : 
     103             : private:
     104             :   ~nsSaveAsCharset();
     105             : 
     106             : protected:
     107             :   /* additional members */
     108             : };
     109             : 
     110             : /* Implementation file */
     111             : NS_IMPL_ISUPPORTS(nsSaveAsCharset, nsISaveAsCharset)
     112             : 
     113             : nsSaveAsCharset::nsSaveAsCharset()
     114             : {
     115             :   /* member initializers and constructor code */
     116             : }
     117             : 
     118             : nsSaveAsCharset::~nsSaveAsCharset()
     119             : {
     120             :   /* destructor code */
     121             : }
     122             : 
     123             : /* readonly attribute AUTF8String charset; */
     124             : NS_IMETHODIMP nsSaveAsCharset::GetCharset(nsACString & aCharset)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* void Init (in AUTF8String charset, in unsigned long ignored, in unsigned long alsoIgnored); */
     130             : NS_IMETHODIMP nsSaveAsCharset::Init(const nsACString & charset, uint32_t ignored, uint32_t alsoIgnored)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* ACString Convert (in AString inString); */
     136             : NS_IMETHODIMP nsSaveAsCharset::Convert(const nsAString & inString, nsACString & _retval)
     137             : {
     138             :     return NS_ERROR_NOT_IMPLEMENTED;
     139             : }
     140             : 
     141             : /* End of implementation class template. */
     142             : #endif
     143             : 
     144             : 
     145             : #endif /* __gen_nsISaveAsCharset_h__ */

Generated by: LCOV version 1.13