LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDNSRecord.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/dns/nsIDNSRecord.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDNSRecord_h__
       6                 : #define __gen_nsIDNSRecord_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:    nsIDNSRecord */
      19                 : #define NS_IDNSRECORD_IID_STR "ead9e9d8-7eef-4dae-a7f0-a1edcfb20478"
      20                 : 
      21                 : #define NS_IDNSRECORD_IID \
      22                 :   {0xead9e9d8, 0x7eef, 0x4dae, \
      23                 :     { 0xa7, 0xf0, 0xa1, 0xed, 0xcf, 0xb2, 0x04, 0x78 }}
      24                 : 
      25            6205 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDNSRecord : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSRECORD_IID)
      29                 : 
      30                 :   /* readonly attribute ACString canonicalName; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetCanonicalName(nsACString & aCanonicalName) = 0;
      32                 : 
      33                 :   /* [noscript] PRNetAddr getNextAddr (in PRUint16 aPort); */
      34                 :   NS_IMETHOD GetNextAddr(PRUint16 aPort, union PRNetAddr *_retval NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* ACString getNextAddrAsString (); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetNextAddrAsString(nsACString & _retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* boolean hasMore (); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD HasMore(bool *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* void rewind (); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD Rewind(void) = 0;
      44                 : 
      45                 :   /* void reportUnusable (in PRUint16 aPort); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD ReportUnusable(PRUint16 aPort) = 0;
      47                 : 
      48                 : };
      49                 : 
      50                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSRecord, NS_IDNSRECORD_IID)
      51                 : 
      52                 : /* Use this macro when declaring classes that implement this interface. */
      53                 : #define NS_DECL_NSIDNSRECORD \
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetCanonicalName(nsACString & aCanonicalName); \
      55                 :   NS_IMETHOD GetNextAddr(PRUint16 aPort, union PRNetAddr *_retval NS_OUTPARAM); \
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetNextAddrAsString(nsACString & _retval NS_OUTPARAM); \
      57                 :   NS_SCRIPTABLE NS_IMETHOD HasMore(bool *_retval NS_OUTPARAM); \
      58                 :   NS_SCRIPTABLE NS_IMETHOD Rewind(void); \
      59                 :   NS_SCRIPTABLE NS_IMETHOD ReportUnusable(PRUint16 aPort); 
      60                 : 
      61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62                 : #define NS_FORWARD_NSIDNSRECORD(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetCanonicalName(nsACString & aCanonicalName) { return _to GetCanonicalName(aCanonicalName); } \
      64                 :   NS_IMETHOD GetNextAddr(PRUint16 aPort, union PRNetAddr *_retval NS_OUTPARAM) { return _to GetNextAddr(aPort, _retval); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetNextAddrAsString(nsACString & _retval NS_OUTPARAM) { return _to GetNextAddrAsString(_retval); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD HasMore(bool *_retval NS_OUTPARAM) { return _to HasMore(_retval); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD Rewind(void) { return _to Rewind(); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD ReportUnusable(PRUint16 aPort) { return _to ReportUnusable(aPort); } 
      69                 : 
      70                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71                 : #define NS_FORWARD_SAFE_NSIDNSRECORD(_to) \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetCanonicalName(nsACString & aCanonicalName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanonicalName(aCanonicalName); } \
      73                 :   NS_IMETHOD GetNextAddr(PRUint16 aPort, union PRNetAddr *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextAddr(aPort, _retval); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetNextAddrAsString(nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextAddrAsString(_retval); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD HasMore(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasMore(_retval); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD Rewind(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Rewind(); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD ReportUnusable(PRUint16 aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportUnusable(aPort); } 
      78                 : 
      79                 : #if 0
      80                 : /* Use the code below as a template for the implementation class for this interface. */
      81                 : 
      82                 : /* Header file */
      83                 : class nsDNSRecord : public nsIDNSRecord
      84                 : {
      85                 : public:
      86                 :   NS_DECL_ISUPPORTS
      87                 :   NS_DECL_NSIDNSRECORD
      88                 : 
      89                 :   nsDNSRecord();
      90                 : 
      91                 : private:
      92                 :   ~nsDNSRecord();
      93                 : 
      94                 : protected:
      95                 :   /* additional members */
      96                 : };
      97                 : 
      98                 : /* Implementation file */
      99                 : NS_IMPL_ISUPPORTS1(nsDNSRecord, nsIDNSRecord)
     100                 : 
     101                 : nsDNSRecord::nsDNSRecord()
     102                 : {
     103                 :   /* member initializers and constructor code */
     104                 : }
     105                 : 
     106                 : nsDNSRecord::~nsDNSRecord()
     107                 : {
     108                 :   /* destructor code */
     109                 : }
     110                 : 
     111                 : /* readonly attribute ACString canonicalName; */
     112                 : NS_IMETHODIMP nsDNSRecord::GetCanonicalName(nsACString & aCanonicalName)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* [noscript] PRNetAddr getNextAddr (in PRUint16 aPort); */
     118                 : NS_IMETHODIMP nsDNSRecord::GetNextAddr(PRUint16 aPort, union PRNetAddr *_retval NS_OUTPARAM)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* ACString getNextAddrAsString (); */
     124                 : NS_IMETHODIMP nsDNSRecord::GetNextAddrAsString(nsACString & _retval NS_OUTPARAM)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* boolean hasMore (); */
     130                 : NS_IMETHODIMP nsDNSRecord::HasMore(bool *_retval NS_OUTPARAM)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* void rewind (); */
     136                 : NS_IMETHODIMP nsDNSRecord::Rewind()
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* void reportUnusable (in PRUint16 aPort); */
     142                 : NS_IMETHODIMP nsDNSRecord::ReportUnusable(PRUint16 aPort)
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* End of implementation class template. */
     148                 : #endif
     149                 : 
     150                 : 
     151                 : #endif /* __gen_nsIDNSRecord_h__ */

Generated by: LCOV version 1.7