1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsINSSErrorsService.idl
3 : */
4 :
5 : #ifndef __gen_nsINSSErrorsService_h__
6 : #define __gen_nsINSSErrorsService_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: nsINSSErrorsService */
19 : #define NS_INSSERRORSSERVICE_IID_STR "3a5c7a0f-f5da-4a8b-a748-d7c5a528f33b"
20 :
21 : #define NS_INSSERRORSSERVICE_IID \
22 : {0x3a5c7a0f, 0xf5da, 0x4a8b, \
23 : { 0xa7, 0x48, 0xd7, 0xc5, 0xa5, 0x28, 0xf3, 0x3b }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsINSSErrorsService : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INSSERRORSSERVICE_IID)
29 :
30 : /* boolean isNSSErrorCode (in PRInt32 aNSPRCode); */
31 : NS_SCRIPTABLE NS_IMETHOD IsNSSErrorCode(PRInt32 aNSPRCode, bool *_retval NS_OUTPARAM) = 0;
32 :
33 : /* nsresult getXPCOMFromNSSError (in PRInt32 aNSPRCode); */
34 : NS_SCRIPTABLE NS_IMETHOD GetXPCOMFromNSSError(PRInt32 aNSPRCode, nsresult *_retval NS_OUTPARAM) = 0;
35 :
36 : /* AString getErrorMessage (in nsresult aXPCOMErrorCode); */
37 : NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsresult aXPCOMErrorCode, nsAString & _retval NS_OUTPARAM) = 0;
38 :
39 : /* PRUint32 getErrorClass (in nsresult aXPCOMErrorCode); */
40 : NS_SCRIPTABLE NS_IMETHOD GetErrorClass(nsresult aXPCOMErrorCode, PRUint32 *_retval NS_OUTPARAM) = 0;
41 :
42 : enum {
43 : ERROR_CLASS_SSL_PROTOCOL = 1U,
44 : ERROR_CLASS_BAD_CERT = 2U,
45 : NSS_SEC_ERROR_BASE = -8192,
46 : NSS_SEC_ERROR_LIMIT = -7192,
47 : NSS_SSL_ERROR_BASE = -12288,
48 : NSS_SSL_ERROR_LIMIT = -11288
49 : };
50 :
51 : };
52 :
53 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINSSErrorsService, NS_INSSERRORSSERVICE_IID)
54 :
55 : /* Use this macro when declaring classes that implement this interface. */
56 : #define NS_DECL_NSINSSERRORSSERVICE \
57 : NS_SCRIPTABLE NS_IMETHOD IsNSSErrorCode(PRInt32 aNSPRCode, bool *_retval NS_OUTPARAM); \
58 : NS_SCRIPTABLE NS_IMETHOD GetXPCOMFromNSSError(PRInt32 aNSPRCode, nsresult *_retval NS_OUTPARAM); \
59 : NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsresult aXPCOMErrorCode, nsAString & _retval NS_OUTPARAM); \
60 : NS_SCRIPTABLE NS_IMETHOD GetErrorClass(nsresult aXPCOMErrorCode, PRUint32 *_retval NS_OUTPARAM); \
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
63 : #define NS_FORWARD_NSINSSERRORSSERVICE(_to) \
64 : NS_SCRIPTABLE NS_IMETHOD IsNSSErrorCode(PRInt32 aNSPRCode, bool *_retval NS_OUTPARAM) { return _to IsNSSErrorCode(aNSPRCode, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetXPCOMFromNSSError(PRInt32 aNSPRCode, nsresult *_retval NS_OUTPARAM) { return _to GetXPCOMFromNSSError(aNSPRCode, _retval); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsresult aXPCOMErrorCode, nsAString & _retval NS_OUTPARAM) { return _to GetErrorMessage(aXPCOMErrorCode, _retval); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetErrorClass(nsresult aXPCOMErrorCode, PRUint32 *_retval NS_OUTPARAM) { return _to GetErrorClass(aXPCOMErrorCode, _retval); } \
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
70 : #define NS_FORWARD_SAFE_NSINSSERRORSSERVICE(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD IsNSSErrorCode(PRInt32 aNSPRCode, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNSSErrorCode(aNSPRCode, _retval); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetXPCOMFromNSSError(PRInt32 aNSPRCode, nsresult *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXPCOMFromNSSError(aNSPRCode, _retval); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetErrorMessage(nsresult aXPCOMErrorCode, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aXPCOMErrorCode, _retval); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetErrorClass(nsresult aXPCOMErrorCode, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorClass(aXPCOMErrorCode, _retval); } \
75 :
76 : #if 0
77 : /* Use the code below as a template for the implementation class for this interface. */
78 :
79 : /* Header file */
80 : class nsNSSErrorsService : public nsINSSErrorsService
81 : {
82 : public:
83 : NS_DECL_ISUPPORTS
84 : NS_DECL_NSINSSERRORSSERVICE
85 :
86 : nsNSSErrorsService();
87 :
88 : private:
89 : ~nsNSSErrorsService();
90 :
91 : protected:
92 : /* additional members */
93 : };
94 :
95 : /* Implementation file */
96 : NS_IMPL_ISUPPORTS1(nsNSSErrorsService, nsINSSErrorsService)
97 :
98 : nsNSSErrorsService::nsNSSErrorsService()
99 : {
100 : /* member initializers and constructor code */
101 : }
102 :
103 : nsNSSErrorsService::~nsNSSErrorsService()
104 : {
105 : /* destructor code */
106 : }
107 :
108 : /* boolean isNSSErrorCode (in PRInt32 aNSPRCode); */
109 : NS_IMETHODIMP nsNSSErrorsService::IsNSSErrorCode(PRInt32 aNSPRCode, bool *_retval NS_OUTPARAM)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* nsresult getXPCOMFromNSSError (in PRInt32 aNSPRCode); */
115 : NS_IMETHODIMP nsNSSErrorsService::GetXPCOMFromNSSError(PRInt32 aNSPRCode, nsresult *_retval NS_OUTPARAM)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* AString getErrorMessage (in nsresult aXPCOMErrorCode); */
121 : NS_IMETHODIMP nsNSSErrorsService::GetErrorMessage(nsresult aXPCOMErrorCode, nsAString & _retval NS_OUTPARAM)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* PRUint32 getErrorClass (in nsresult aXPCOMErrorCode); */
127 : NS_IMETHODIMP nsNSSErrorsService::GetErrorClass(nsresult aXPCOMErrorCode, PRUint32 *_retval NS_OUTPARAM)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 :
132 : /* End of implementation class template. */
133 : #endif
134 :
135 :
136 : #endif /* __gen_nsINSSErrorsService_h__ */
|