LCOV - code coverage report
Current view: directory - objdir/dist/include - nsINetAddr.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/base/public/nsINetAddr.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsINetAddr_h__
       6                 : #define __gen_nsINetAddr_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:    nsINetAddr */
      19                 : #define NS_INETADDR_IID_STR "c407ab6c-c3ca-4cb2-a99b-a7dfbb88af33"
      20                 : 
      21                 : #define NS_INETADDR_IID \
      22                 :   {0xc407ab6c, 0xc3ca, 0x4cb2, \
      23                 :     { 0xa9, 0x9b, 0xa7, 0xdf, 0xbb, 0x88, 0xaf, 0x33 }}
      24                 : 
      25               4 : class NS_NO_VTABLE NS_SCRIPTABLE nsINetAddr : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INETADDR_IID)
      29                 : 
      30                 :   /* readonly attribute unsigned short family; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetFamily(PRUint16 *aFamily) = 0;
      32                 : 
      33                 :   /* readonly attribute AUTF8String address; */
      34                 :   NS_SCRIPTABLE NS_IMETHOD GetAddress(nsACString & aAddress) = 0;
      35                 : 
      36                 :   /* readonly attribute unsigned short port; */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint16 *aPort) = 0;
      38                 : 
      39                 :   /* readonly attribute unsigned long flow; */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetFlow(PRUint32 *aFlow) = 0;
      41                 : 
      42                 :   /* readonly attribute unsigned long scope; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetScope(PRUint32 *aScope) = 0;
      44                 : 
      45                 :   enum {
      46                 :     FAMILY_INET = 1U,
      47                 :     FAMILY_INET6 = 2U,
      48                 :     FAMILY_LOCAL = 3U
      49                 :   };
      50                 : 
      51                 : };
      52                 : 
      53                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINetAddr, NS_INETADDR_IID)
      54                 : 
      55                 : /* Use this macro when declaring classes that implement this interface. */
      56                 : #define NS_DECL_NSINETADDR \
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetFamily(PRUint16 *aFamily); \
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetAddress(nsACString & aAddress); \
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint16 *aPort); \
      60                 :   NS_SCRIPTABLE NS_IMETHOD GetFlow(PRUint32 *aFlow); \
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetScope(PRUint32 *aScope); \
      62                 : 
      63                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      64                 : #define NS_FORWARD_NSINETADDR(_to) \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetFamily(PRUint16 *aFamily) { return _to GetFamily(aFamily); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetAddress(nsACString & aAddress) { return _to GetAddress(aAddress); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint16 *aPort) { return _to GetPort(aPort); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetFlow(PRUint32 *aFlow) { return _to GetFlow(aFlow); } \
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetScope(PRUint32 *aScope) { return _to GetScope(aScope); } \
      70                 : 
      71                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      72                 : #define NS_FORWARD_SAFE_NSINETADDR(_to) \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetFamily(PRUint16 *aFamily) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFamily(aFamily); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetAddress(nsACString & aAddress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddress(aAddress); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint16 *aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetFlow(PRUint32 *aFlow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlow(aFlow); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetScope(PRUint32 *aScope) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScope(aScope); } \
      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 nsNetAddr : public nsINetAddr
      84                 : {
      85                 : public:
      86                 :   NS_DECL_ISUPPORTS
      87                 :   NS_DECL_NSINETADDR
      88                 : 
      89                 :   nsNetAddr();
      90                 : 
      91                 : private:
      92                 :   ~nsNetAddr();
      93                 : 
      94                 : protected:
      95                 :   /* additional members */
      96                 : };
      97                 : 
      98                 : /* Implementation file */
      99                 : NS_IMPL_ISUPPORTS1(nsNetAddr, nsINetAddr)
     100                 : 
     101                 : nsNetAddr::nsNetAddr()
     102                 : {
     103                 :   /* member initializers and constructor code */
     104                 : }
     105                 : 
     106                 : nsNetAddr::~nsNetAddr()
     107                 : {
     108                 :   /* destructor code */
     109                 : }
     110                 : 
     111                 : /* readonly attribute unsigned short family; */
     112                 : NS_IMETHODIMP nsNetAddr::GetFamily(PRUint16 *aFamily)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* readonly attribute AUTF8String address; */
     118                 : NS_IMETHODIMP nsNetAddr::GetAddress(nsACString & aAddress)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* readonly attribute unsigned short port; */
     124                 : NS_IMETHODIMP nsNetAddr::GetPort(PRUint16 *aPort)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* readonly attribute unsigned long flow; */
     130                 : NS_IMETHODIMP nsNetAddr::GetFlow(PRUint32 *aFlow)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* readonly attribute unsigned long scope; */
     136                 : NS_IMETHODIMP nsNetAddr::GetScope(PRUint32 *aScope)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* End of implementation class template. */
     142                 : #endif
     143                 : 
     144                 : 
     145                 : #endif /* __gen_nsINetAddr_h__ */

Generated by: LCOV version 1.7