LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIX509Cert2.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/security/manager/ssl/public/nsIX509Cert2.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIX509Cert2_h__
       6                 : #define __gen_nsIX509Cert2_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIX509Cert_h__
      10                 : #include "nsIX509Cert.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 nsIArray; /* forward declaration */
      18                 : 
      19                 : class nsIASN1Object; /* forward declaration */
      20                 : 
      21                 :  /* forward declaration */
      22                 :  typedef struct CERTCertificateStr CERTCertificate;
      23                 : 
      24                 : /* starting interface:    nsIX509Cert2 */
      25                 : #define NS_IX509CERT2_IID_STR "5b62c61c-f898-4dab-8ace-51109bb459b4"
      26                 : 
      27                 : #define NS_IX509CERT2_IID \
      28                 :   {0x5b62c61c, 0xf898, 0x4dab, \
      29                 :     { 0x8a, 0xce, 0x51, 0x10, 0x9b, 0xb4, 0x59, 0xb4 }}
      30                 : 
      31             176 : class NS_NO_VTABLE NS_SCRIPTABLE nsIX509Cert2 : public nsIX509Cert {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERT2_IID)
      35                 : 
      36                 :   enum {
      37                 :     ANY_CERT = 65535U
      38                 :   };
      39                 : 
      40                 :   /* readonly attribute unsigned long certType; */
      41                 :   NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType) = 0;
      42                 : 
      43                 :   /* void markForPermDeletion (); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void) = 0;
      45                 : 
      46                 :   /* [noscript,notxpcom] CERTCertificatePtr getCert (); */
      47                 :   NS_IMETHOD_(CERTCertificate *) GetCert(void) = 0;
      48                 : 
      49                 : };
      50                 : 
      51                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509Cert2, NS_IX509CERT2_IID)
      52                 : 
      53                 : /* Use this macro when declaring classes that implement this interface. */
      54                 : #define NS_DECL_NSIX509CERT2 \
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType); \
      56                 :   NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void); \
      57                 :   NS_IMETHOD_(CERTCertificate *) GetCert(void); 
      58                 : 
      59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      60                 : #define NS_FORWARD_NSIX509CERT2(_to) \
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType) { return _to GetCertType(aCertType); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void) { return _to MarkForPermDeletion(); } \
      63                 :   NS_IMETHOD_(CERTCertificate *) GetCert(void) { return _to GetCert(); } 
      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_NSIX509CERT2(_to) \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertType(aCertType); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkForPermDeletion(); } \
      69                 :   NS_IMETHOD_(CERTCertificate *) GetCert(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(); } 
      70                 : 
      71                 : #if 0
      72                 : /* Use the code below as a template for the implementation class for this interface. */
      73                 : 
      74                 : /* Header file */
      75                 : class nsX509Cert2 : public nsIX509Cert2
      76                 : {
      77                 : public:
      78                 :   NS_DECL_ISUPPORTS
      79                 :   NS_DECL_NSIX509CERT2
      80                 : 
      81                 :   nsX509Cert2();
      82                 : 
      83                 : private:
      84                 :   ~nsX509Cert2();
      85                 : 
      86                 : protected:
      87                 :   /* additional members */
      88                 : };
      89                 : 
      90                 : /* Implementation file */
      91                 : NS_IMPL_ISUPPORTS1(nsX509Cert2, nsIX509Cert2)
      92                 : 
      93                 : nsX509Cert2::nsX509Cert2()
      94                 : {
      95                 :   /* member initializers and constructor code */
      96                 : }
      97                 : 
      98                 : nsX509Cert2::~nsX509Cert2()
      99                 : {
     100                 :   /* destructor code */
     101                 : }
     102                 : 
     103                 : /* readonly attribute unsigned long certType; */
     104                 : NS_IMETHODIMP nsX509Cert2::GetCertType(PRUint32 *aCertType)
     105                 : {
     106                 :     return NS_ERROR_NOT_IMPLEMENTED;
     107                 : }
     108                 : 
     109                 : /* void markForPermDeletion (); */
     110                 : NS_IMETHODIMP nsX509Cert2::MarkForPermDeletion()
     111                 : {
     112                 :     return NS_ERROR_NOT_IMPLEMENTED;
     113                 : }
     114                 : 
     115                 : /* [noscript,notxpcom] CERTCertificatePtr getCert (); */
     116                 : NS_IMETHODIMP_(CERTCertificate *) nsX509Cert2::GetCert()
     117                 : {
     118                 :     return NS_ERROR_NOT_IMPLEMENTED;
     119                 : }
     120                 : 
     121                 : /* End of implementation class template. */
     122                 : #endif
     123                 : 
     124                 : 
     125                 : #endif /* __gen_nsIX509Cert2_h__ */

Generated by: LCOV version 1.7