LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPermission.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/nsIPermission.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIPermission_h__
       6                 : #define __gen_nsIPermission_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:    nsIPermission */
      19                 : #define NS_IPERMISSION_IID_STR "5036f0f6-f77b-4168-9d57-a1c0dd66cf02"
      20                 : 
      21                 : #define NS_IPERMISSION_IID \
      22                 :   {0x5036f0f6, 0xf77b, 0x4168, \
      23                 :     { 0x9d, 0x57, 0xa1, 0xc0, 0xdd, 0x66, 0xcf, 0x02 }}
      24                 : 
      25             509 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPermission : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERMISSION_IID)
      29                 : 
      30                 :   /* readonly attribute AUTF8String host; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) = 0;
      32                 : 
      33                 :   /* readonly attribute ACString type; */
      34                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) = 0;
      35                 : 
      36                 :   /* readonly attribute PRUint32 capability; */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetCapability(PRUint32 *aCapability) = 0;
      38                 : 
      39                 :   /* readonly attribute PRUint32 expireType; */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireType(PRUint32 *aExpireType) = 0;
      41                 : 
      42                 :   /* readonly attribute PRInt64 expireTime; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireTime(PRInt64 *aExpireTime) = 0;
      44                 : 
      45                 : };
      46                 : 
      47                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPermission, NS_IPERMISSION_IID)
      48                 : 
      49                 : /* Use this macro when declaring classes that implement this interface. */
      50                 : #define NS_DECL_NSIPERMISSION \
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost); \
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType); \
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetCapability(PRUint32 *aCapability); \
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireType(PRUint32 *aExpireType); \
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireTime(PRInt64 *aExpireTime); 
      56                 : 
      57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58                 : #define NS_FORWARD_NSIPERMISSION(_to) \
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return _to GetHost(aHost); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) { return _to GetType(aType); } \
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetCapability(PRUint32 *aCapability) { return _to GetCapability(aCapability); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireType(PRUint32 *aExpireType) { return _to GetExpireType(aExpireType); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireTime(PRInt64 *aExpireTime) { return _to GetExpireTime(aExpireTime); } 
      64                 : 
      65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      66                 : #define NS_FORWARD_SAFE_NSIPERMISSION(_to) \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetCapability(PRUint32 *aCapability) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCapability(aCapability); } \
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireType(PRUint32 *aExpireType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpireType(aExpireType); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetExpireTime(PRInt64 *aExpireTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpireTime(aExpireTime); } 
      72                 : 
      73                 : #if 0
      74                 : /* Use the code below as a template for the implementation class for this interface. */
      75                 : 
      76                 : /* Header file */
      77                 : class nsPermission : public nsIPermission
      78                 : {
      79                 : public:
      80                 :   NS_DECL_ISUPPORTS
      81                 :   NS_DECL_NSIPERMISSION
      82                 : 
      83                 :   nsPermission();
      84                 : 
      85                 : private:
      86                 :   ~nsPermission();
      87                 : 
      88                 : protected:
      89                 :   /* additional members */
      90                 : };
      91                 : 
      92                 : /* Implementation file */
      93                 : NS_IMPL_ISUPPORTS1(nsPermission, nsIPermission)
      94                 : 
      95                 : nsPermission::nsPermission()
      96                 : {
      97                 :   /* member initializers and constructor code */
      98                 : }
      99                 : 
     100                 : nsPermission::~nsPermission()
     101                 : {
     102                 :   /* destructor code */
     103                 : }
     104                 : 
     105                 : /* readonly attribute AUTF8String host; */
     106                 : NS_IMETHODIMP nsPermission::GetHost(nsACString & aHost)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* readonly attribute ACString type; */
     112                 : NS_IMETHODIMP nsPermission::GetType(nsACString & aType)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* readonly attribute PRUint32 capability; */
     118                 : NS_IMETHODIMP nsPermission::GetCapability(PRUint32 *aCapability)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* readonly attribute PRUint32 expireType; */
     124                 : NS_IMETHODIMP nsPermission::GetExpireType(PRUint32 *aExpireType)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* readonly attribute PRInt64 expireTime; */
     130                 : NS_IMETHODIMP nsPermission::GetExpireTime(PRInt64 *aExpireTime)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* End of implementation class template. */
     136                 : #endif
     137                 : 
     138                 : 
     139                 : #endif /* __gen_nsIPermission_h__ */

Generated by: LCOV version 1.7