LCOV - app.info - objdir/dist/include/nsIDOMCrypto.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIDOMCrypto.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 0 | 0.0 %
| Date: | 2012-04-21 | Functions: | 1 | 0 | 0.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/dom/interfaces/base/nsIDOMCrypto.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIDOMCrypto_h__
           6                 : #define __gen_nsIDOMCrypto_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_domstubs_h__
          10                 : #include "domstubs.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:    nsIDOMCrypto */
          19                 : #define NS_IDOMCRYPTO_IID_STR "12b6d899-2aed-4ea9-8c02-2223ab7ab592"
          20                 :
          21                 : #define NS_IDOMCRYPTO_IID \
          22                 :   {0x12b6d899, 0x2aed, 0x4ea9, \
          23                 :     { 0x8c, 0x02, 0x22, 0x23, 0xab, 0x7a, 0xb5, 0x92 }}
          24                 :
          25               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCrypto : public nsISupports {
          26                 :  public:
          27                 :
          28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCRYPTO_IID)
          29                 :
          30                 :   /* readonly attribute DOMString version; */
          31                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion) = 0;
          32                 :
          33                 :   /* attribute boolean enableSmartCardEvents; */
          34                 :   NS_SCRIPTABLE NS_IMETHOD GetEnableSmartCardEvents(bool *aEnableSmartCardEvents) = 0;
          35                 :   NS_SCRIPTABLE NS_IMETHOD SetEnableSmartCardEvents(bool aEnableSmartCardEvents) = 0;
          36                 :
          37                 :   /* nsIDOMCRMFObject generateCRMFRequest (); */
          38                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCRMFRequest(nsIDOMCRMFObject * *_retval NS_OUTPARAM) = 0;
          39                 :
          40                 :   /* DOMString importUserCertificates (in DOMString nickname, in DOMString cmmfResponse, in boolean doForcedBackup); */
          41                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificates(const nsAString & nickname, const nsAString & cmmfResponse, bool doForcedBackup, nsAString & _retval NS_OUTPARAM) = 0;
          42                 :
          43                 :   /* DOMString popChallengeResponse (in DOMString challenge); */
          44                 :   NS_SCRIPTABLE NS_IMETHOD PopChallengeResponse(const nsAString & challenge, nsAString & _retval NS_OUTPARAM) = 0;
          45                 :
          46                 :   /* DOMString random (in long numBytes); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD Random(PRInt32 numBytes, nsAString & _retval NS_OUTPARAM) = 0;
          48                 :
          49                 :   /* DOMString signText (in DOMString stringToSign, in DOMString caOption); */
          50                 :   NS_SCRIPTABLE NS_IMETHOD SignText(const nsAString & stringToSign, const nsAString & caOption, nsAString & _retval NS_OUTPARAM) = 0;
          51                 :
          52                 :   /* void logout (); */
          53                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void) = 0;
          54                 :
          55                 :   /* void disableRightClick (); */
          56                 :   NS_SCRIPTABLE NS_IMETHOD DisableRightClick(void) = 0;
          57                 :
          58                 : };
          59                 :
          60                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCrypto, NS_IDOMCRYPTO_IID)
          61                 :
          62                 : /* Use this macro when declaring classes that implement this interface. */
          63                 : #define NS_DECL_NSIDOMCRYPTO \
          64                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion); \
          65                 :   NS_SCRIPTABLE NS_IMETHOD GetEnableSmartCardEvents(bool *aEnableSmartCardEvents); \
          66                 :   NS_SCRIPTABLE NS_IMETHOD SetEnableSmartCardEvents(bool aEnableSmartCardEvents); \
          67                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCRMFRequest(nsIDOMCRMFObject * *_retval NS_OUTPARAM); \
          68                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificates(const nsAString & nickname, const nsAString & cmmfResponse, bool doForcedBackup, nsAString & _retval NS_OUTPARAM); \
          69                 :   NS_SCRIPTABLE NS_IMETHOD PopChallengeResponse(const nsAString & challenge, nsAString & _retval NS_OUTPARAM); \
          70                 :   NS_SCRIPTABLE NS_IMETHOD Random(PRInt32 numBytes, nsAString & _retval NS_OUTPARAM); \
          71                 :   NS_SCRIPTABLE NS_IMETHOD SignText(const nsAString & stringToSign, const nsAString & caOption, nsAString & _retval NS_OUTPARAM); \
          72                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void); \
          73                 :   NS_SCRIPTABLE NS_IMETHOD DisableRightClick(void);
          74                 :
          75                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          76                 : #define NS_FORWARD_NSIDOMCRYPTO(_to) \
          77                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion) { return _to GetVersion(aVersion); } \
          78                 :   NS_SCRIPTABLE NS_IMETHOD GetEnableSmartCardEvents(bool *aEnableSmartCardEvents) { return _to GetEnableSmartCardEvents(aEnableSmartCardEvents); } \
          79                 :   NS_SCRIPTABLE NS_IMETHOD SetEnableSmartCardEvents(bool aEnableSmartCardEvents) { return _to SetEnableSmartCardEvents(aEnableSmartCardEvents); } \
          80                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCRMFRequest(nsIDOMCRMFObject * *_retval NS_OUTPARAM) { return _to GenerateCRMFRequest(_retval); } \
          81                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificates(const nsAString & nickname, const nsAString & cmmfResponse, bool doForcedBackup, nsAString & _retval NS_OUTPARAM) { return _to ImportUserCertificates(nickname, cmmfResponse, doForcedBackup, _retval); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD PopChallengeResponse(const nsAString & challenge, nsAString & _retval NS_OUTPARAM) { return _to PopChallengeResponse(challenge, _retval); } \
          83                 :   NS_SCRIPTABLE NS_IMETHOD Random(PRInt32 numBytes, nsAString & _retval NS_OUTPARAM) { return _to Random(numBytes, _retval); } \
          84                 :   NS_SCRIPTABLE NS_IMETHOD SignText(const nsAString & stringToSign, const nsAString & caOption, nsAString & _retval NS_OUTPARAM) { return _to SignText(stringToSign, caOption, _retval); } \
          85                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void) { return _to Logout(); } \
          86                 :   NS_SCRIPTABLE NS_IMETHOD DisableRightClick(void) { return _to DisableRightClick(); }
          87                 :
          88                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          89                 : #define NS_FORWARD_SAFE_NSIDOMCRYPTO(_to) \
          90                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
          91                 :   NS_SCRIPTABLE NS_IMETHOD GetEnableSmartCardEvents(bool *aEnableSmartCardEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnableSmartCardEvents(aEnableSmartCardEvents); } \
          92                 :   NS_SCRIPTABLE NS_IMETHOD SetEnableSmartCardEvents(bool aEnableSmartCardEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnableSmartCardEvents(aEnableSmartCardEvents); } \
          93                 :   NS_SCRIPTABLE NS_IMETHOD GenerateCRMFRequest(nsIDOMCRMFObject * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateCRMFRequest(_retval); } \
          94                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificates(const nsAString & nickname, const nsAString & cmmfResponse, bool doForcedBackup, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportUserCertificates(nickname, cmmfResponse, doForcedBackup, _retval); } \
          95                 :   NS_SCRIPTABLE NS_IMETHOD PopChallengeResponse(const nsAString & challenge, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->PopChallengeResponse(challenge, _retval); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD Random(PRInt32 numBytes, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Random(numBytes, _retval); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD SignText(const nsAString & stringToSign, const nsAString & caOption, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SignText(stringToSign, caOption, _retval); } \
          98                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Logout(); } \
          99                 :   NS_SCRIPTABLE NS_IMETHOD DisableRightClick(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableRightClick(); }
         100                 :
         101                 : #if 0
         102                 : /* Use the code below as a template for the implementation class for this interface. */
         103                 :
         104                 : /* Header file */
         105                 : class nsDOMCrypto : public nsIDOMCrypto
         106                 : {
         107                 : public:
         108                 :   NS_DECL_ISUPPORTS
         109                 :   NS_DECL_NSIDOMCRYPTO
         110                 :
         111                 :   nsDOMCrypto();
         112                 :
         113                 : private:
         114                 :   ~nsDOMCrypto();
         115                 :
         116                 : protected:
         117                 :   /* additional members */
         118                 : };
         119                 :
         120                 : /* Implementation file */
         121                 : NS_IMPL_ISUPPORTS1(nsDOMCrypto, nsIDOMCrypto)
         122                 :
         123                 : nsDOMCrypto::nsDOMCrypto()
         124                 : {
         125                 :   /* member initializers and constructor code */
         126                 : }
         127                 :
         128                 : nsDOMCrypto::~nsDOMCrypto()
         129                 : {
         130                 :   /* destructor code */
         131                 : }
         132                 :
         133                 : /* readonly attribute DOMString version; */
         134                 : NS_IMETHODIMP nsDOMCrypto::GetVersion(nsAString & aVersion)
         135                 : {
         136                 :     return NS_ERROR_NOT_IMPLEMENTED;
         137                 : }
         138                 :
         139                 : /* attribute boolean enableSmartCardEvents; */
         140                 : NS_IMETHODIMP nsDOMCrypto::GetEnableSmartCardEvents(bool *aEnableSmartCardEvents)
         141                 : {
         142                 :     return NS_ERROR_NOT_IMPLEMENTED;
         143                 : }
         144                 : NS_IMETHODIMP nsDOMCrypto::SetEnableSmartCardEvents(bool aEnableSmartCardEvents)
         145                 : {
         146                 :     return NS_ERROR_NOT_IMPLEMENTED;
         147                 : }
         148                 :
         149                 : /* nsIDOMCRMFObject generateCRMFRequest (); */
         150                 : NS_IMETHODIMP nsDOMCrypto::GenerateCRMFRequest(nsIDOMCRMFObject * *_retval NS_OUTPARAM)
         151                 : {
         152                 :     return NS_ERROR_NOT_IMPLEMENTED;
         153                 : }
         154                 :
         155                 : /* DOMString importUserCertificates (in DOMString nickname, in DOMString cmmfResponse, in boolean doForcedBackup); */
         156                 : NS_IMETHODIMP nsDOMCrypto::ImportUserCertificates(const nsAString & nickname, const nsAString & cmmfResponse, bool doForcedBackup, nsAString & _retval NS_OUTPARAM)
         157                 : {
         158                 :     return NS_ERROR_NOT_IMPLEMENTED;
         159                 : }
         160                 :
         161                 : /* DOMString popChallengeResponse (in DOMString challenge); */
         162                 : NS_IMETHODIMP nsDOMCrypto::PopChallengeResponse(const nsAString & challenge, nsAString & _retval NS_OUTPARAM)
         163                 : {
         164                 :     return NS_ERROR_NOT_IMPLEMENTED;
         165                 : }
         166                 :
         167                 : /* DOMString random (in long numBytes); */
         168                 : NS_IMETHODIMP nsDOMCrypto::Random(PRInt32 numBytes, nsAString & _retval NS_OUTPARAM)
         169                 : {
         170                 :     return NS_ERROR_NOT_IMPLEMENTED;
         171                 : }
         172                 :
         173                 : /* DOMString signText (in DOMString stringToSign, in DOMString caOption); */
         174                 : NS_IMETHODIMP nsDOMCrypto::SignText(const nsAString & stringToSign, const nsAString & caOption, nsAString & _retval NS_OUTPARAM)
         175                 : {
         176                 :     return NS_ERROR_NOT_IMPLEMENTED;
         177                 : }
         178                 :
         179                 : /* void logout (); */
         180                 : NS_IMETHODIMP nsDOMCrypto::Logout()
         181                 : {
         182                 :     return NS_ERROR_NOT_IMPLEMENTED;
         183                 : }
         184                 :
         185                 : /* void disableRightClick (); */
         186                 : NS_IMETHODIMP nsDOMCrypto::DisableRightClick()
         187                 : {
         188                 :     return NS_ERROR_NOT_IMPLEMENTED;
         189                 : }
         190                 :
         191                 : /* End of implementation class template. */
         192                 : #endif
         193                 :
         194                 :
         195                 : #endif /* __gen_nsIDOMCrypto_h__ */

Generated by: LCOV version 1.7