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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDNSListener.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDNSListener_h__
       6             : #define __gen_nsIDNSListener_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 nsICancelable; /* forward declaration */
      18             : 
      19             : class nsIDNSRecord; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIDNSListener */
      23             : #define NS_IDNSLISTENER_IID_STR "27d49bfe-280c-49e0-bbaa-f6200c232c3d"
      24             : 
      25             : #define NS_IDNSLISTENER_IID \
      26             :   {0x27d49bfe, 0x280c, 0x49e0, \
      27             :     { 0xbb, 0xaa, 0xf6, 0x20, 0x0c, 0x23, 0x2c, 0x3d }}
      28             : 
      29          18 : class NS_NO_VTABLE nsIDNSListener : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSLISTENER_IID)
      33             : 
      34             :   /* void onLookupComplete (in nsICancelable aRequest, in nsIDNSRecord aRecord, in nsresult aStatus); */
      35             :   NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus) = 0;
      36             : 
      37             : };
      38             : 
      39             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSListener, NS_IDNSLISTENER_IID)
      40             : 
      41             : /* Use this macro when declaring classes that implement this interface. */
      42             : #define NS_DECL_NSIDNSLISTENER \
      43             :   NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSIDNSLISTENER \
      48             :   nsresult OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus); 
      49             : 
      50             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      51             : #define NS_FORWARD_NSIDNSLISTENER(_to) \
      52             :   NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus) override { return _to OnLookupComplete(aRequest, aRecord, aStatus); } 
      53             : 
      54             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      55             : #define NS_FORWARD_SAFE_NSIDNSLISTENER(_to) \
      56             :   NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLookupComplete(aRequest, aRecord, aStatus); } 
      57             : 
      58             : #if 0
      59             : /* Use the code below as a template for the implementation class for this interface. */
      60             : 
      61             : /* Header file */
      62             : class nsDNSListener : public nsIDNSListener
      63             : {
      64             : public:
      65             :   NS_DECL_ISUPPORTS
      66             :   NS_DECL_NSIDNSLISTENER
      67             : 
      68             :   nsDNSListener();
      69             : 
      70             : private:
      71             :   ~nsDNSListener();
      72             : 
      73             : protected:
      74             :   /* additional members */
      75             : };
      76             : 
      77             : /* Implementation file */
      78             : NS_IMPL_ISUPPORTS(nsDNSListener, nsIDNSListener)
      79             : 
      80             : nsDNSListener::nsDNSListener()
      81             : {
      82             :   /* member initializers and constructor code */
      83             : }
      84             : 
      85             : nsDNSListener::~nsDNSListener()
      86             : {
      87             :   /* destructor code */
      88             : }
      89             : 
      90             : /* void onLookupComplete (in nsICancelable aRequest, in nsIDNSRecord aRecord, in nsresult aStatus); */
      91             : NS_IMETHODIMP nsDNSListener::OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus)
      92             : {
      93             :     return NS_ERROR_NOT_IMPLEMENTED;
      94             : }
      95             : 
      96             : /* End of implementation class template. */
      97             : #endif
      98             : 
      99             : 
     100             : /* starting interface:    nsIDNSListenerProxy */
     101             : #define NS_IDNSLISTENERPROXY_IID_STR "60eff0e4-6f7c-493c-add9-1cbea59063ad"
     102             : 
     103             : #define NS_IDNSLISTENERPROXY_IID \
     104             :   {0x60eff0e4, 0x6f7c, 0x493c, \
     105             :     { 0xad, 0xd9, 0x1c, 0xbe, 0xa5, 0x90, 0x63, 0xad }}
     106             : 
     107           0 : class NS_NO_VTABLE nsIDNSListenerProxy : public nsISupports {
     108             :  public:
     109             : 
     110             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSLISTENERPROXY_IID)
     111             : 
     112             :   /* readonly attribute nsIDNSListener originalListener; */
     113             :   NS_IMETHOD GetOriginalListener(nsIDNSListener * *aOriginalListener) = 0;
     114             : 
     115             : };
     116             : 
     117             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSListenerProxy, NS_IDNSLISTENERPROXY_IID)
     118             : 
     119             : /* Use this macro when declaring classes that implement this interface. */
     120             : #define NS_DECL_NSIDNSLISTENERPROXY \
     121             :   NS_IMETHOD GetOriginalListener(nsIDNSListener * *aOriginalListener) override; 
     122             : 
     123             : /* Use this macro when declaring the members of this interface when the
     124             :    class doesn't implement the interface. This is useful for forwarding. */
     125             : #define NS_DECL_NON_VIRTUAL_NSIDNSLISTENERPROXY \
     126             :   nsresult GetOriginalListener(nsIDNSListener * *aOriginalListener); 
     127             : 
     128             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     129             : #define NS_FORWARD_NSIDNSLISTENERPROXY(_to) \
     130             :   NS_IMETHOD GetOriginalListener(nsIDNSListener * *aOriginalListener) override { return _to GetOriginalListener(aOriginalListener); } 
     131             : 
     132             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     133             : #define NS_FORWARD_SAFE_NSIDNSLISTENERPROXY(_to) \
     134             :   NS_IMETHOD GetOriginalListener(nsIDNSListener * *aOriginalListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalListener(aOriginalListener); } 
     135             : 
     136             : #if 0
     137             : /* Use the code below as a template for the implementation class for this interface. */
     138             : 
     139             : /* Header file */
     140             : class nsDNSListenerProxy : public nsIDNSListenerProxy
     141             : {
     142             : public:
     143             :   NS_DECL_ISUPPORTS
     144             :   NS_DECL_NSIDNSLISTENERPROXY
     145             : 
     146             :   nsDNSListenerProxy();
     147             : 
     148             : private:
     149             :   ~nsDNSListenerProxy();
     150             : 
     151             : protected:
     152             :   /* additional members */
     153             : };
     154             : 
     155             : /* Implementation file */
     156             : NS_IMPL_ISUPPORTS(nsDNSListenerProxy, nsIDNSListenerProxy)
     157             : 
     158             : nsDNSListenerProxy::nsDNSListenerProxy()
     159             : {
     160             :   /* member initializers and constructor code */
     161             : }
     162             : 
     163             : nsDNSListenerProxy::~nsDNSListenerProxy()
     164             : {
     165             :   /* destructor code */
     166             : }
     167             : 
     168             : /* readonly attribute nsIDNSListener originalListener; */
     169             : NS_IMETHODIMP nsDNSListenerProxy::GetOriginalListener(nsIDNSListener * *aOriginalListener)
     170             : {
     171             :     return NS_ERROR_NOT_IMPLEMENTED;
     172             : }
     173             : 
     174             : /* End of implementation class template. */
     175             : #endif
     176             : 
     177             : 
     178             : #endif /* __gen_nsIDNSListener_h__ */

Generated by: LCOV version 1.13