Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsILocalCertService.idl
3 : */
4 :
5 : #ifndef __gen_nsILocalCertService_h__
6 : #define __gen_nsILocalCertService_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 nsIX509Cert; /* forward declaration */
18 :
19 : class nsILocalCertGetCallback; /* forward declaration */
20 :
21 : class nsILocalCertCallback; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsILocalCertService */
25 : #define NS_ILOCALCERTSERVICE_IID_STR "9702fdd4-4c2c-439c-ba2e-19cda018eb99"
26 :
27 : #define NS_ILOCALCERTSERVICE_IID \
28 : {0x9702fdd4, 0x4c2c, 0x439c, \
29 : { 0xba, 0x2e, 0x19, 0xcd, 0xa0, 0x18, 0xeb, 0x99 }}
30 :
31 0 : class NS_NO_VTABLE nsILocalCertService : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALCERTSERVICE_IID)
35 :
36 : /* [must_use] void getOrCreateCert (in ACString nickname, in nsILocalCertGetCallback cb); */
37 : MOZ_MUST_USE NS_IMETHOD GetOrCreateCert(const nsACString & nickname, nsILocalCertGetCallback *cb) = 0;
38 :
39 : /* [must_use] void removeCert (in ACString nickname, in nsILocalCertCallback cb); */
40 : MOZ_MUST_USE NS_IMETHOD RemoveCert(const nsACString & nickname, nsILocalCertCallback *cb) = 0;
41 :
42 : /* [must_use] readonly attribute boolean loginPromptRequired; */
43 : MOZ_MUST_USE NS_IMETHOD GetLoginPromptRequired(bool *aLoginPromptRequired) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalCertService, NS_ILOCALCERTSERVICE_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSILOCALCERTSERVICE \
51 : MOZ_MUST_USE NS_IMETHOD GetOrCreateCert(const nsACString & nickname, nsILocalCertGetCallback *cb) override; \
52 : MOZ_MUST_USE NS_IMETHOD RemoveCert(const nsACString & nickname, nsILocalCertCallback *cb) override; \
53 : MOZ_MUST_USE NS_IMETHOD GetLoginPromptRequired(bool *aLoginPromptRequired) 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_NSILOCALCERTSERVICE \
58 : MOZ_MUST_USE nsresult GetOrCreateCert(const nsACString & nickname, nsILocalCertGetCallback *cb); \
59 : MOZ_MUST_USE nsresult RemoveCert(const nsACString & nickname, nsILocalCertCallback *cb); \
60 : MOZ_MUST_USE nsresult GetLoginPromptRequired(bool *aLoginPromptRequired);
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
63 : #define NS_FORWARD_NSILOCALCERTSERVICE(_to) \
64 : MOZ_MUST_USE NS_IMETHOD GetOrCreateCert(const nsACString & nickname, nsILocalCertGetCallback *cb) override { return _to GetOrCreateCert(nickname, cb); } \
65 : MOZ_MUST_USE NS_IMETHOD RemoveCert(const nsACString & nickname, nsILocalCertCallback *cb) override { return _to RemoveCert(nickname, cb); } \
66 : MOZ_MUST_USE NS_IMETHOD GetLoginPromptRequired(bool *aLoginPromptRequired) override { return _to GetLoginPromptRequired(aLoginPromptRequired); }
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
69 : #define NS_FORWARD_SAFE_NSILOCALCERTSERVICE(_to) \
70 : MOZ_MUST_USE NS_IMETHOD GetOrCreateCert(const nsACString & nickname, nsILocalCertGetCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrCreateCert(nickname, cb); } \
71 : MOZ_MUST_USE NS_IMETHOD RemoveCert(const nsACString & nickname, nsILocalCertCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCert(nickname, cb); } \
72 : MOZ_MUST_USE NS_IMETHOD GetLoginPromptRequired(bool *aLoginPromptRequired) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoginPromptRequired(aLoginPromptRequired); }
73 :
74 : #if 0
75 : /* Use the code below as a template for the implementation class for this interface. */
76 :
77 : /* Header file */
78 : class nsLocalCertService : public nsILocalCertService
79 : {
80 : public:
81 : NS_DECL_ISUPPORTS
82 : NS_DECL_NSILOCALCERTSERVICE
83 :
84 : nsLocalCertService();
85 :
86 : private:
87 : ~nsLocalCertService();
88 :
89 : protected:
90 : /* additional members */
91 : };
92 :
93 : /* Implementation file */
94 : NS_IMPL_ISUPPORTS(nsLocalCertService, nsILocalCertService)
95 :
96 : nsLocalCertService::nsLocalCertService()
97 : {
98 : /* member initializers and constructor code */
99 : }
100 :
101 : nsLocalCertService::~nsLocalCertService()
102 : {
103 : /* destructor code */
104 : }
105 :
106 : /* [must_use] void getOrCreateCert (in ACString nickname, in nsILocalCertGetCallback cb); */
107 : MOZ_MUST_USE NS_IMETHODIMP nsLocalCertService::GetOrCreateCert(const nsACString & nickname, nsILocalCertGetCallback *cb)
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* [must_use] void removeCert (in ACString nickname, in nsILocalCertCallback cb); */
113 : MOZ_MUST_USE NS_IMETHODIMP nsLocalCertService::RemoveCert(const nsACString & nickname, nsILocalCertCallback *cb)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* [must_use] readonly attribute boolean loginPromptRequired; */
119 : MOZ_MUST_USE NS_IMETHODIMP nsLocalCertService::GetLoginPromptRequired(bool *aLoginPromptRequired)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* End of implementation class template. */
125 : #endif
126 :
127 :
128 : /* starting interface: nsILocalCertGetCallback */
129 : #define NS_ILOCALCERTGETCALLBACK_IID_STR "cc09633e-7c70-4093-a9cf-79ab676ca8a9"
130 :
131 : #define NS_ILOCALCERTGETCALLBACK_IID \
132 : {0xcc09633e, 0x7c70, 0x4093, \
133 : { 0xa9, 0xcf, 0x79, 0xab, 0x67, 0x6c, 0xa8, 0xa9 }}
134 :
135 0 : class NS_NO_VTABLE nsILocalCertGetCallback : public nsISupports {
136 : public:
137 :
138 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALCERTGETCALLBACK_IID)
139 :
140 : /* void handleCert (in nsIX509Cert cert, in nsresult result); */
141 : NS_IMETHOD HandleCert(nsIX509Cert *cert, nsresult result) = 0;
142 :
143 : };
144 :
145 : NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalCertGetCallback, NS_ILOCALCERTGETCALLBACK_IID)
146 :
147 : /* Use this macro when declaring classes that implement this interface. */
148 : #define NS_DECL_NSILOCALCERTGETCALLBACK \
149 : NS_IMETHOD HandleCert(nsIX509Cert *cert, nsresult result) override;
150 :
151 : /* Use this macro when declaring the members of this interface when the
152 : class doesn't implement the interface. This is useful for forwarding. */
153 : #define NS_DECL_NON_VIRTUAL_NSILOCALCERTGETCALLBACK \
154 : nsresult HandleCert(nsIX509Cert *cert, nsresult result);
155 :
156 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
157 : #define NS_FORWARD_NSILOCALCERTGETCALLBACK(_to) \
158 : NS_IMETHOD HandleCert(nsIX509Cert *cert, nsresult result) override { return _to HandleCert(cert, result); }
159 :
160 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
161 : #define NS_FORWARD_SAFE_NSILOCALCERTGETCALLBACK(_to) \
162 : NS_IMETHOD HandleCert(nsIX509Cert *cert, nsresult result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCert(cert, result); }
163 :
164 : #if 0
165 : /* Use the code below as a template for the implementation class for this interface. */
166 :
167 : /* Header file */
168 : class nsLocalCertGetCallback : public nsILocalCertGetCallback
169 : {
170 : public:
171 : NS_DECL_ISUPPORTS
172 : NS_DECL_NSILOCALCERTGETCALLBACK
173 :
174 : nsLocalCertGetCallback();
175 :
176 : private:
177 : ~nsLocalCertGetCallback();
178 :
179 : protected:
180 : /* additional members */
181 : };
182 :
183 : /* Implementation file */
184 : NS_IMPL_ISUPPORTS(nsLocalCertGetCallback, nsILocalCertGetCallback)
185 :
186 : nsLocalCertGetCallback::nsLocalCertGetCallback()
187 : {
188 : /* member initializers and constructor code */
189 : }
190 :
191 : nsLocalCertGetCallback::~nsLocalCertGetCallback()
192 : {
193 : /* destructor code */
194 : }
195 :
196 : /* void handleCert (in nsIX509Cert cert, in nsresult result); */
197 : NS_IMETHODIMP nsLocalCertGetCallback::HandleCert(nsIX509Cert *cert, nsresult result)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* End of implementation class template. */
203 : #endif
204 :
205 :
206 : /* starting interface: nsILocalCertCallback */
207 : #define NS_ILOCALCERTCALLBACK_IID_STR "518124e9-55e6-4e23-97c0-4995b3a1bec6"
208 :
209 : #define NS_ILOCALCERTCALLBACK_IID \
210 : {0x518124e9, 0x55e6, 0x4e23, \
211 : { 0x97, 0xc0, 0x49, 0x95, 0xb3, 0xa1, 0xbe, 0xc6 }}
212 :
213 : class NS_NO_VTABLE nsILocalCertCallback : public nsISupports {
214 : public:
215 :
216 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALCERTCALLBACK_IID)
217 :
218 : /* void handleResult (in nsresult result); */
219 : NS_IMETHOD HandleResult(nsresult result) = 0;
220 :
221 : };
222 :
223 : NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalCertCallback, NS_ILOCALCERTCALLBACK_IID)
224 :
225 : /* Use this macro when declaring classes that implement this interface. */
226 : #define NS_DECL_NSILOCALCERTCALLBACK \
227 : NS_IMETHOD HandleResult(nsresult result) override;
228 :
229 : /* Use this macro when declaring the members of this interface when the
230 : class doesn't implement the interface. This is useful for forwarding. */
231 : #define NS_DECL_NON_VIRTUAL_NSILOCALCERTCALLBACK \
232 : nsresult HandleResult(nsresult result);
233 :
234 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
235 : #define NS_FORWARD_NSILOCALCERTCALLBACK(_to) \
236 : NS_IMETHOD HandleResult(nsresult result) override { return _to HandleResult(result); }
237 :
238 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
239 : #define NS_FORWARD_SAFE_NSILOCALCERTCALLBACK(_to) \
240 : NS_IMETHOD HandleResult(nsresult result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleResult(result); }
241 :
242 : #if 0
243 : /* Use the code below as a template for the implementation class for this interface. */
244 :
245 : /* Header file */
246 : class nsLocalCertCallback : public nsILocalCertCallback
247 : {
248 : public:
249 : NS_DECL_ISUPPORTS
250 : NS_DECL_NSILOCALCERTCALLBACK
251 :
252 : nsLocalCertCallback();
253 :
254 : private:
255 : ~nsLocalCertCallback();
256 :
257 : protected:
258 : /* additional members */
259 : };
260 :
261 : /* Implementation file */
262 : NS_IMPL_ISUPPORTS(nsLocalCertCallback, nsILocalCertCallback)
263 :
264 : nsLocalCertCallback::nsLocalCertCallback()
265 : {
266 : /* member initializers and constructor code */
267 : }
268 :
269 : nsLocalCertCallback::~nsLocalCertCallback()
270 : {
271 : /* destructor code */
272 : }
273 :
274 : /* void handleResult (in nsresult result); */
275 : NS_IMETHODIMP nsLocalCertCallback::HandleResult(nsresult result)
276 : {
277 : return NS_ERROR_NOT_IMPLEMENTED;
278 : }
279 :
280 : /* End of implementation class template. */
281 : #endif
282 :
283 : #define LOCALCERTSERVICE_CONTRACTID \
284 : "@mozilla.org/security/local-cert-service;1"
285 :
286 : #endif /* __gen_nsILocalCertService_h__ */
|