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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIExpatSink.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIExpatSink_h__
       6             : #define __gen_nsIExpatSink_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 nsIScriptError; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsIExpatSink */
      21             : #define NS_IEXPATSINK_IID_STR "01f681af-0f22-4725-a914-0d396114daf0"
      22             : 
      23             : #define NS_IEXPATSINK_IID \
      24             :   {0x01f681af, 0x0f22, 0x4725, \
      25             :     { 0xa9, 0x14, 0x0d, 0x39, 0x61, 0x14, 0xda, 0xf0 }}
      26             : 
      27          22 : class NS_NO_VTABLE nsIExpatSink : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXPATSINK_IID)
      31             : 
      32             :   /* void HandleStartElement (in wstring aName, [array, size_is (aAttsCount)] in wstring aAtts, in unsigned long aAttsCount, in unsigned long aLineNumber); */
      33             :   NS_IMETHOD HandleStartElement(const char16_t * aName, const char16_t * *aAtts, uint32_t aAttsCount, uint32_t aLineNumber) = 0;
      34             : 
      35             :   /* void HandleEndElement (in wstring aName); */
      36             :   NS_IMETHOD HandleEndElement(const char16_t * aName) = 0;
      37             : 
      38             :   /* void HandleComment (in wstring aCommentText); */
      39             :   NS_IMETHOD HandleComment(const char16_t * aCommentText) = 0;
      40             : 
      41             :   /* void HandleCDataSection ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
      42             :   NS_IMETHOD HandleCDataSection(const char16_t * aData, uint32_t aLength) = 0;
      43             : 
      44             :   /* void HandleDoctypeDecl (in AString aSubset, in AString aName, in AString aSystemId, in AString aPublicId, in nsISupports aCatalogData); */
      45             :   NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData) = 0;
      46             : 
      47             :   /* void HandleCharacterData ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
      48             :   NS_IMETHOD HandleCharacterData(const char16_t * aData, uint32_t aLength) = 0;
      49             : 
      50             :   /* void HandleProcessingInstruction (in wstring aTarget, in wstring aData); */
      51             :   NS_IMETHOD HandleProcessingInstruction(const char16_t * aTarget, const char16_t * aData) = 0;
      52             : 
      53             :   /* void HandleXMLDeclaration (in wstring aVersion, in wstring aEncoding, in long aStandalone); */
      54             :   NS_IMETHOD HandleXMLDeclaration(const char16_t * aVersion, const char16_t * aEncoding, int32_t aStandalone) = 0;
      55             : 
      56             :   /* boolean ReportError (in wstring aErrorText, in wstring aSourceText, in nsIScriptError aError); */
      57             :   NS_IMETHOD ReportError(const char16_t * aErrorText, const char16_t * aSourceText, nsIScriptError *aError, bool *_retval) = 0;
      58             : 
      59             : };
      60             : 
      61             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIExpatSink, NS_IEXPATSINK_IID)
      62             : 
      63             : /* Use this macro when declaring classes that implement this interface. */
      64             : #define NS_DECL_NSIEXPATSINK \
      65             :   NS_IMETHOD HandleStartElement(const char16_t * aName, const char16_t * *aAtts, uint32_t aAttsCount, uint32_t aLineNumber) override; \
      66             :   NS_IMETHOD HandleEndElement(const char16_t * aName) override; \
      67             :   NS_IMETHOD HandleComment(const char16_t * aCommentText) override; \
      68             :   NS_IMETHOD HandleCDataSection(const char16_t * aData, uint32_t aLength) override; \
      69             :   NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData) override; \
      70             :   NS_IMETHOD HandleCharacterData(const char16_t * aData, uint32_t aLength) override; \
      71             :   NS_IMETHOD HandleProcessingInstruction(const char16_t * aTarget, const char16_t * aData) override; \
      72             :   NS_IMETHOD HandleXMLDeclaration(const char16_t * aVersion, const char16_t * aEncoding, int32_t aStandalone) override; \
      73             :   NS_IMETHOD ReportError(const char16_t * aErrorText, const char16_t * aSourceText, nsIScriptError *aError, bool *_retval) override; 
      74             : 
      75             : /* Use this macro when declaring the members of this interface when the
      76             :    class doesn't implement the interface. This is useful for forwarding. */
      77             : #define NS_DECL_NON_VIRTUAL_NSIEXPATSINK \
      78             :   nsresult HandleStartElement(const char16_t * aName, const char16_t * *aAtts, uint32_t aAttsCount, uint32_t aLineNumber); \
      79             :   nsresult HandleEndElement(const char16_t * aName); \
      80             :   nsresult HandleComment(const char16_t * aCommentText); \
      81             :   nsresult HandleCDataSection(const char16_t * aData, uint32_t aLength); \
      82             :   nsresult HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData); \
      83             :   nsresult HandleCharacterData(const char16_t * aData, uint32_t aLength); \
      84             :   nsresult HandleProcessingInstruction(const char16_t * aTarget, const char16_t * aData); \
      85             :   nsresult HandleXMLDeclaration(const char16_t * aVersion, const char16_t * aEncoding, int32_t aStandalone); \
      86             :   nsresult ReportError(const char16_t * aErrorText, const char16_t * aSourceText, nsIScriptError *aError, bool *_retval); 
      87             : 
      88             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      89             : #define NS_FORWARD_NSIEXPATSINK(_to) \
      90             :   NS_IMETHOD HandleStartElement(const char16_t * aName, const char16_t * *aAtts, uint32_t aAttsCount, uint32_t aLineNumber) override { return _to HandleStartElement(aName, aAtts, aAttsCount, aLineNumber); } \
      91             :   NS_IMETHOD HandleEndElement(const char16_t * aName) override { return _to HandleEndElement(aName); } \
      92             :   NS_IMETHOD HandleComment(const char16_t * aCommentText) override { return _to HandleComment(aCommentText); } \
      93             :   NS_IMETHOD HandleCDataSection(const char16_t * aData, uint32_t aLength) override { return _to HandleCDataSection(aData, aLength); } \
      94             :   NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData) override { return _to HandleDoctypeDecl(aSubset, aName, aSystemId, aPublicId, aCatalogData); } \
      95             :   NS_IMETHOD HandleCharacterData(const char16_t * aData, uint32_t aLength) override { return _to HandleCharacterData(aData, aLength); } \
      96             :   NS_IMETHOD HandleProcessingInstruction(const char16_t * aTarget, const char16_t * aData) override { return _to HandleProcessingInstruction(aTarget, aData); } \
      97             :   NS_IMETHOD HandleXMLDeclaration(const char16_t * aVersion, const char16_t * aEncoding, int32_t aStandalone) override { return _to HandleXMLDeclaration(aVersion, aEncoding, aStandalone); } \
      98             :   NS_IMETHOD ReportError(const char16_t * aErrorText, const char16_t * aSourceText, nsIScriptError *aError, bool *_retval) override { return _to ReportError(aErrorText, aSourceText, aError, _retval); } 
      99             : 
     100             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     101             : #define NS_FORWARD_SAFE_NSIEXPATSINK(_to) \
     102             :   NS_IMETHOD HandleStartElement(const char16_t * aName, const char16_t * *aAtts, uint32_t aAttsCount, uint32_t aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartElement(aName, aAtts, aAttsCount, aLineNumber); } \
     103             :   NS_IMETHOD HandleEndElement(const char16_t * aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEndElement(aName); } \
     104             :   NS_IMETHOD HandleComment(const char16_t * aCommentText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleComment(aCommentText); } \
     105             :   NS_IMETHOD HandleCDataSection(const char16_t * aData, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCDataSection(aData, aLength); } \
     106             :   NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleDoctypeDecl(aSubset, aName, aSystemId, aPublicId, aCatalogData); } \
     107             :   NS_IMETHOD HandleCharacterData(const char16_t * aData, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCharacterData(aData, aLength); } \
     108             :   NS_IMETHOD HandleProcessingInstruction(const char16_t * aTarget, const char16_t * aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleProcessingInstruction(aTarget, aData); } \
     109             :   NS_IMETHOD HandleXMLDeclaration(const char16_t * aVersion, const char16_t * aEncoding, int32_t aStandalone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleXMLDeclaration(aVersion, aEncoding, aStandalone); } \
     110             :   NS_IMETHOD ReportError(const char16_t * aErrorText, const char16_t * aSourceText, nsIScriptError *aError, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportError(aErrorText, aSourceText, aError, _retval); } 
     111             : 
     112             : #if 0
     113             : /* Use the code below as a template for the implementation class for this interface. */
     114             : 
     115             : /* Header file */
     116             : class nsExpatSink : public nsIExpatSink
     117             : {
     118             : public:
     119             :   NS_DECL_ISUPPORTS
     120             :   NS_DECL_NSIEXPATSINK
     121             : 
     122             :   nsExpatSink();
     123             : 
     124             : private:
     125             :   ~nsExpatSink();
     126             : 
     127             : protected:
     128             :   /* additional members */
     129             : };
     130             : 
     131             : /* Implementation file */
     132             : NS_IMPL_ISUPPORTS(nsExpatSink, nsIExpatSink)
     133             : 
     134             : nsExpatSink::nsExpatSink()
     135             : {
     136             :   /* member initializers and constructor code */
     137             : }
     138             : 
     139             : nsExpatSink::~nsExpatSink()
     140             : {
     141             :   /* destructor code */
     142             : }
     143             : 
     144             : /* void HandleStartElement (in wstring aName, [array, size_is (aAttsCount)] in wstring aAtts, in unsigned long aAttsCount, in unsigned long aLineNumber); */
     145             : NS_IMETHODIMP nsExpatSink::HandleStartElement(const char16_t * aName, const char16_t * *aAtts, uint32_t aAttsCount, uint32_t aLineNumber)
     146             : {
     147             :     return NS_ERROR_NOT_IMPLEMENTED;
     148             : }
     149             : 
     150             : /* void HandleEndElement (in wstring aName); */
     151             : NS_IMETHODIMP nsExpatSink::HandleEndElement(const char16_t * aName)
     152             : {
     153             :     return NS_ERROR_NOT_IMPLEMENTED;
     154             : }
     155             : 
     156             : /* void HandleComment (in wstring aCommentText); */
     157             : NS_IMETHODIMP nsExpatSink::HandleComment(const char16_t * aCommentText)
     158             : {
     159             :     return NS_ERROR_NOT_IMPLEMENTED;
     160             : }
     161             : 
     162             : /* void HandleCDataSection ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
     163             : NS_IMETHODIMP nsExpatSink::HandleCDataSection(const char16_t * aData, uint32_t aLength)
     164             : {
     165             :     return NS_ERROR_NOT_IMPLEMENTED;
     166             : }
     167             : 
     168             : /* void HandleDoctypeDecl (in AString aSubset, in AString aName, in AString aSystemId, in AString aPublicId, in nsISupports aCatalogData); */
     169             : NS_IMETHODIMP nsExpatSink::HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData)
     170             : {
     171             :     return NS_ERROR_NOT_IMPLEMENTED;
     172             : }
     173             : 
     174             : /* void HandleCharacterData ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
     175             : NS_IMETHODIMP nsExpatSink::HandleCharacterData(const char16_t * aData, uint32_t aLength)
     176             : {
     177             :     return NS_ERROR_NOT_IMPLEMENTED;
     178             : }
     179             : 
     180             : /* void HandleProcessingInstruction (in wstring aTarget, in wstring aData); */
     181             : NS_IMETHODIMP nsExpatSink::HandleProcessingInstruction(const char16_t * aTarget, const char16_t * aData)
     182             : {
     183             :     return NS_ERROR_NOT_IMPLEMENTED;
     184             : }
     185             : 
     186             : /* void HandleXMLDeclaration (in wstring aVersion, in wstring aEncoding, in long aStandalone); */
     187             : NS_IMETHODIMP nsExpatSink::HandleXMLDeclaration(const char16_t * aVersion, const char16_t * aEncoding, int32_t aStandalone)
     188             : {
     189             :     return NS_ERROR_NOT_IMPLEMENTED;
     190             : }
     191             : 
     192             : /* boolean ReportError (in wstring aErrorText, in wstring aSourceText, in nsIScriptError aError); */
     193             : NS_IMETHODIMP nsExpatSink::ReportError(const char16_t * aErrorText, const char16_t * aSourceText, nsIScriptError *aError, bool *_retval)
     194             : {
     195             :     return NS_ERROR_NOT_IMPLEMENTED;
     196             : }
     197             : 
     198             : /* End of implementation class template. */
     199             : #endif
     200             : 
     201             : 
     202             : #endif /* __gen_nsIExpatSink_h__ */

Generated by: LCOV version 1.13