LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIStandardURL.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/nsIStandardURL.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIStandardURL_h__
       6                 : #define __gen_nsIStandardURL_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIMutable_h__
      10                 : #include "nsIMutable.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 nsIURI; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIStandardURL */
      21                 : #define NS_ISTANDARDURL_IID_STR "babd6cca-ebe7-4329-967c-d6b9e33caa81"
      22                 : 
      23                 : #define NS_ISTANDARDURL_IID \
      24                 :   {0xbabd6cca, 0xebe7, 0x4329, \
      25                 :     { 0x96, 0x7c, 0xd6, 0xb9, 0xe3, 0x3c, 0xaa, 0x81 }}
      26                 : 
      27          288157 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStandardURL : public nsIMutable {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTANDARDURL_IID)
      31                 : 
      32                 :   enum {
      33                 :     URLTYPE_STANDARD = 1U,
      34                 :     URLTYPE_AUTHORITY = 2U,
      35                 :     URLTYPE_NO_AUTHORITY = 3U
      36                 :   };
      37                 : 
      38                 :   /* void init (in unsigned long aUrlType, in long aDefaultPort, in AUTF8String aSpec, in string aOriginCharset, in nsIURI aBaseURI); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 aUrlType, PRInt32 aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI) = 0;
      40                 : 
      41                 : };
      42                 : 
      43                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStandardURL, NS_ISTANDARDURL_IID)
      44                 : 
      45                 : /* Use this macro when declaring classes that implement this interface. */
      46                 : #define NS_DECL_NSISTANDARDURL \
      47                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 aUrlType, PRInt32 aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI); 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      50                 : #define NS_FORWARD_NSISTANDARDURL(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 aUrlType, PRInt32 aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI) { return _to Init(aUrlType, aDefaultPort, aSpec, aOriginCharset, aBaseURI); } 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      54                 : #define NS_FORWARD_SAFE_NSISTANDARDURL(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRUint32 aUrlType, PRInt32 aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aUrlType, aDefaultPort, aSpec, aOriginCharset, aBaseURI); } 
      56                 : 
      57                 : #if 0
      58                 : /* Use the code below as a template for the implementation class for this interface. */
      59                 : 
      60                 : /* Header file */
      61                 : class nsStandardURL : public nsIStandardURL
      62                 : {
      63                 : public:
      64                 :   NS_DECL_ISUPPORTS
      65                 :   NS_DECL_NSISTANDARDURL
      66                 : 
      67                 :   nsStandardURL();
      68                 : 
      69                 : private:
      70                 :   ~nsStandardURL();
      71                 : 
      72                 : protected:
      73                 :   /* additional members */
      74                 : };
      75                 : 
      76                 : /* Implementation file */
      77                 : NS_IMPL_ISUPPORTS1(nsStandardURL, nsIStandardURL)
      78                 : 
      79                 : nsStandardURL::nsStandardURL()
      80                 : {
      81                 :   /* member initializers and constructor code */
      82                 : }
      83                 : 
      84                 : nsStandardURL::~nsStandardURL()
      85                 : {
      86                 :   /* destructor code */
      87                 : }
      88                 : 
      89                 : /* void init (in unsigned long aUrlType, in long aDefaultPort, in AUTF8String aSpec, in string aOriginCharset, in nsIURI aBaseURI); */
      90                 : NS_IMETHODIMP nsStandardURL::Init(PRUint32 aUrlType, PRInt32 aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI)
      91                 : {
      92                 :     return NS_ERROR_NOT_IMPLEMENTED;
      93                 : }
      94                 : 
      95                 : /* End of implementation class template. */
      96                 : #endif
      97                 : 
      98                 : 
      99                 : #endif /* __gen_nsIStandardURL_h__ */

Generated by: LCOV version 1.7