LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPKCS11Slot.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/nsIPKCS11Slot.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIPKCS11Slot_h__
       6                 : #define __gen_nsIPKCS11Slot_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                 : class nsIPK11Token; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIPKCS11Slot */
      21                 : #define NS_IPKCS11SLOT_IID_STR "c2d4f296-ee60-11d4-998b-00b0d02354a0"
      22                 : 
      23                 : #define NS_IPKCS11SLOT_IID \
      24                 :   {0xc2d4f296, 0xee60, 0x11d4, \
      25                 :     { 0x99, 0x8b, 0x00, 0xb0, 0xd0, 0x23, 0x54, 0xa0 }}
      26                 : 
      27             256 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPKCS11Slot : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPKCS11SLOT_IID)
      31                 : 
      32                 :   /* readonly attribute wstring name; */
      33                 :   NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName) = 0;
      34                 : 
      35                 :   /* readonly attribute wstring desc; */
      36                 :   NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc) = 0;
      37                 : 
      38                 :   /* readonly attribute wstring manID; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID) = 0;
      40                 : 
      41                 :   /* readonly attribute wstring HWVersion; */
      42                 :   NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) = 0;
      43                 : 
      44                 :   /* readonly attribute wstring FWVersion; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) = 0;
      46                 : 
      47                 :   enum {
      48                 :     SLOT_DISABLED = 0U,
      49                 :     SLOT_NOT_PRESENT = 1U,
      50                 :     SLOT_UNINITIALIZED = 2U,
      51                 :     SLOT_NOT_LOGGED_IN = 3U,
      52                 :     SLOT_LOGGED_IN = 4U,
      53                 :     SLOT_READY = 5U
      54                 :   };
      55                 : 
      56                 :   /* readonly attribute unsigned long status; */
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) = 0;
      58                 : 
      59                 :   /* nsIPK11Token getToken (); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM) = 0;
      61                 : 
      62                 :   /* readonly attribute wstring tokenName; */
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) = 0;
      64                 : 
      65                 : };
      66                 : 
      67                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPKCS11Slot, NS_IPKCS11SLOT_IID)
      68                 : 
      69                 : /* Use this macro when declaring classes that implement this interface. */
      70                 : #define NS_DECL_NSIPKCS11SLOT \
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName); \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc); \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName); 
      79                 : 
      80                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      81                 : #define NS_FORWARD_NSIPKCS11SLOT(_to) \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName) { return _to GetName(aName); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc) { return _to GetDesc(aDesc); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID) { return _to GetManID(aManID); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) { return _to GetHWVersion(aHWVersion); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) { return _to GetFWVersion(aFWVersion); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) { return _to GetStatus(aStatus); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM) { return _to GetToken(_retval); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return _to GetTokenName(aTokenName); } 
      90                 : 
      91                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      92                 : #define NS_FORWARD_SAFE_NSIPKCS11SLOT(_to) \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetName(PRUnichar * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetDesc(PRUnichar * *aDesc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesc(aDesc); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetManID(PRUnichar * *aManID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManID(aManID); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHWVersion(aHWVersion); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFWVersion(aFWVersion); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetToken(nsIPK11Token * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToken(_retval); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenName(aTokenName); } 
     101                 : 
     102                 : #if 0
     103                 : /* Use the code below as a template for the implementation class for this interface. */
     104                 : 
     105                 : /* Header file */
     106                 : class nsPKCS11Slot : public nsIPKCS11Slot
     107                 : {
     108                 : public:
     109                 :   NS_DECL_ISUPPORTS
     110                 :   NS_DECL_NSIPKCS11SLOT
     111                 : 
     112                 :   nsPKCS11Slot();
     113                 : 
     114                 : private:
     115                 :   ~nsPKCS11Slot();
     116                 : 
     117                 : protected:
     118                 :   /* additional members */
     119                 : };
     120                 : 
     121                 : /* Implementation file */
     122                 : NS_IMPL_ISUPPORTS1(nsPKCS11Slot, nsIPKCS11Slot)
     123                 : 
     124                 : nsPKCS11Slot::nsPKCS11Slot()
     125                 : {
     126                 :   /* member initializers and constructor code */
     127                 : }
     128                 : 
     129                 : nsPKCS11Slot::~nsPKCS11Slot()
     130                 : {
     131                 :   /* destructor code */
     132                 : }
     133                 : 
     134                 : /* readonly attribute wstring name; */
     135                 : NS_IMETHODIMP nsPKCS11Slot::GetName(PRUnichar * *aName)
     136                 : {
     137                 :     return NS_ERROR_NOT_IMPLEMENTED;
     138                 : }
     139                 : 
     140                 : /* readonly attribute wstring desc; */
     141                 : NS_IMETHODIMP nsPKCS11Slot::GetDesc(PRUnichar * *aDesc)
     142                 : {
     143                 :     return NS_ERROR_NOT_IMPLEMENTED;
     144                 : }
     145                 : 
     146                 : /* readonly attribute wstring manID; */
     147                 : NS_IMETHODIMP nsPKCS11Slot::GetManID(PRUnichar * *aManID)
     148                 : {
     149                 :     return NS_ERROR_NOT_IMPLEMENTED;
     150                 : }
     151                 : 
     152                 : /* readonly attribute wstring HWVersion; */
     153                 : NS_IMETHODIMP nsPKCS11Slot::GetHWVersion(PRUnichar * *aHWVersion)
     154                 : {
     155                 :     return NS_ERROR_NOT_IMPLEMENTED;
     156                 : }
     157                 : 
     158                 : /* readonly attribute wstring FWVersion; */
     159                 : NS_IMETHODIMP nsPKCS11Slot::GetFWVersion(PRUnichar * *aFWVersion)
     160                 : {
     161                 :     return NS_ERROR_NOT_IMPLEMENTED;
     162                 : }
     163                 : 
     164                 : /* readonly attribute unsigned long status; */
     165                 : NS_IMETHODIMP nsPKCS11Slot::GetStatus(PRUint32 *aStatus)
     166                 : {
     167                 :     return NS_ERROR_NOT_IMPLEMENTED;
     168                 : }
     169                 : 
     170                 : /* nsIPK11Token getToken (); */
     171                 : NS_IMETHODIMP nsPKCS11Slot::GetToken(nsIPK11Token * *_retval NS_OUTPARAM)
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : 
     176                 : /* readonly attribute wstring tokenName; */
     177                 : NS_IMETHODIMP nsPKCS11Slot::GetTokenName(PRUnichar * *aTokenName)
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* End of implementation class template. */
     183                 : #endif
     184                 : 
     185                 : 
     186                 : #endif /* __gen_nsIPKCS11Slot_h__ */

Generated by: LCOV version 1.7