Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITransportSecurityInfo.idl
3 : */
4 :
5 : #ifndef __gen_nsITransportSecurityInfo_h__
6 : #define __gen_nsITransportSecurityInfo_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 nsIX509CertList; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsITransportSecurityInfo */
21 : #define NS_ITRANSPORTSECURITYINFO_IID_STR "216112d3-28bc-4671-b057-f98cc09ba1ea"
22 :
23 : #define NS_ITRANSPORTSECURITYINFO_IID \
24 : {0x216112d3, 0x28bc, 0x4671, \
25 : { 0xb0, 0x57, 0xf9, 0x8c, 0xc0, 0x9b, 0xa1, 0xea }}
26 :
27 0 : class NS_NO_VTABLE nsITransportSecurityInfo : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSPORTSECURITYINFO_IID)
31 :
32 : /* readonly attribute unsigned long securityState; */
33 : NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) = 0;
34 :
35 : /* readonly attribute wstring errorMessage; */
36 : NS_IMETHOD GetErrorMessage(char16_t * *aErrorMessage) = 0;
37 :
38 : /* readonly attribute long errorCode; */
39 : NS_IMETHOD GetErrorCode(int32_t *aErrorCode) = 0;
40 :
41 : /* readonly attribute nsIX509CertList failedCertChain; */
42 : NS_IMETHOD GetFailedCertChain(nsIX509CertList * *aFailedCertChain) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITransportSecurityInfo, NS_ITRANSPORTSECURITYINFO_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSITRANSPORTSECURITYINFO \
50 : NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) override; \
51 : NS_IMETHOD GetErrorMessage(char16_t * *aErrorMessage) override; \
52 : NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override; \
53 : NS_IMETHOD GetFailedCertChain(nsIX509CertList * *aFailedCertChain) override;
54 :
55 : /* Use this macro when declaring the members of this interface when the
56 : class doesn't implement the interface. This is useful for forwarding. */
57 : #define NS_DECL_NON_VIRTUAL_NSITRANSPORTSECURITYINFO \
58 : nsresult GetSecurityState(uint32_t *aSecurityState); \
59 : nsresult GetErrorMessage(char16_t * *aErrorMessage); \
60 : nsresult GetErrorCode(int32_t *aErrorCode); \
61 : nsresult GetFailedCertChain(nsIX509CertList * *aFailedCertChain);
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
64 : #define NS_FORWARD_NSITRANSPORTSECURITYINFO(_to) \
65 : NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) override { return _to GetSecurityState(aSecurityState); } \
66 : NS_IMETHOD GetErrorMessage(char16_t * *aErrorMessage) override { return _to GetErrorMessage(aErrorMessage); } \
67 : NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return _to GetErrorCode(aErrorCode); } \
68 : NS_IMETHOD GetFailedCertChain(nsIX509CertList * *aFailedCertChain) override { return _to GetFailedCertChain(aFailedCertChain); }
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71 : #define NS_FORWARD_SAFE_NSITRANSPORTSECURITYINFO(_to) \
72 : NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityState(aSecurityState); } \
73 : NS_IMETHOD GetErrorMessage(char16_t * *aErrorMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aErrorMessage); } \
74 : NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
75 : NS_IMETHOD GetFailedCertChain(nsIX509CertList * *aFailedCertChain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailedCertChain(aFailedCertChain); }
76 :
77 : #if 0
78 : /* Use the code below as a template for the implementation class for this interface. */
79 :
80 : /* Header file */
81 : class nsTransportSecurityInfo : public nsITransportSecurityInfo
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSITRANSPORTSECURITYINFO
86 :
87 : nsTransportSecurityInfo();
88 :
89 : private:
90 : ~nsTransportSecurityInfo();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS(nsTransportSecurityInfo, nsITransportSecurityInfo)
98 :
99 : nsTransportSecurityInfo::nsTransportSecurityInfo()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : nsTransportSecurityInfo::~nsTransportSecurityInfo()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* readonly attribute unsigned long securityState; */
110 : NS_IMETHODIMP nsTransportSecurityInfo::GetSecurityState(uint32_t *aSecurityState)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* readonly attribute wstring errorMessage; */
116 : NS_IMETHODIMP nsTransportSecurityInfo::GetErrorMessage(char16_t * *aErrorMessage)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* readonly attribute long errorCode; */
122 : NS_IMETHODIMP nsTransportSecurityInfo::GetErrorCode(int32_t *aErrorCode)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* readonly attribute nsIX509CertList failedCertChain; */
128 : NS_IMETHODIMP nsTransportSecurityInfo::GetFailedCertChain(nsIX509CertList * *aFailedCertChain)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* End of implementation class template. */
134 : #endif
135 :
136 :
137 : #endif /* __gen_nsITransportSecurityInfo_h__ */
|