Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIClientAuthDialogs.idl
3 : */
4 :
5 : #ifndef __gen_nsIClientAuthDialogs_h__
6 : #define __gen_nsIClientAuthDialogs_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 nsIArray; /* forward declaration */
18 :
19 : class nsIInterfaceRequestor; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIClientAuthDialogs */
23 : #define NS_ICLIENTAUTHDIALOGS_IID_STR "fa4c7520-1433-11d5-ba24-00108303b117"
24 :
25 : #define NS_ICLIENTAUTHDIALOGS_IID \
26 : {0xfa4c7520, 0x1433, 0x11d5, \
27 : { 0xba, 0x24, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
28 :
29 0 : class NS_NO_VTABLE nsIClientAuthDialogs : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLIENTAUTHDIALOGS_IID)
33 :
34 : /* [must_use] boolean chooseCertificate (in nsIInterfaceRequestor ctx, in AUTF8String hostname, in long port, in AUTF8String organization, in AUTF8String issuerOrg, in nsIArray certList, out unsigned long selectedIndex); */
35 : MOZ_MUST_USE NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const nsACString & hostname, int32_t port, const nsACString & organization, const nsACString & issuerOrg, nsIArray *certList, uint32_t *selectedIndex, bool *_retval) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIClientAuthDialogs, NS_ICLIENTAUTHDIALOGS_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSICLIENTAUTHDIALOGS \
43 : MOZ_MUST_USE NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const nsACString & hostname, int32_t port, const nsACString & organization, const nsACString & issuerOrg, nsIArray *certList, uint32_t *selectedIndex, bool *_retval) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSICLIENTAUTHDIALOGS \
48 : MOZ_MUST_USE nsresult ChooseCertificate(nsIInterfaceRequestor *ctx, const nsACString & hostname, int32_t port, const nsACString & organization, const nsACString & issuerOrg, nsIArray *certList, uint32_t *selectedIndex, bool *_retval);
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
51 : #define NS_FORWARD_NSICLIENTAUTHDIALOGS(_to) \
52 : MOZ_MUST_USE NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const nsACString & hostname, int32_t port, const nsACString & organization, const nsACString & issuerOrg, nsIArray *certList, uint32_t *selectedIndex, bool *_retval) override { return _to ChooseCertificate(ctx, hostname, port, organization, issuerOrg, certList, selectedIndex, _retval); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSICLIENTAUTHDIALOGS(_to) \
56 : MOZ_MUST_USE NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const nsACString & hostname, int32_t port, const nsACString & organization, const nsACString & issuerOrg, nsIArray *certList, uint32_t *selectedIndex, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChooseCertificate(ctx, hostname, port, organization, issuerOrg, certList, selectedIndex, _retval); }
57 :
58 : #if 0
59 : /* Use the code below as a template for the implementation class for this interface. */
60 :
61 : /* Header file */
62 : class nsClientAuthDialogs : public nsIClientAuthDialogs
63 : {
64 : public:
65 : NS_DECL_ISUPPORTS
66 : NS_DECL_NSICLIENTAUTHDIALOGS
67 :
68 : nsClientAuthDialogs();
69 :
70 : private:
71 : ~nsClientAuthDialogs();
72 :
73 : protected:
74 : /* additional members */
75 : };
76 :
77 : /* Implementation file */
78 : NS_IMPL_ISUPPORTS(nsClientAuthDialogs, nsIClientAuthDialogs)
79 :
80 : nsClientAuthDialogs::nsClientAuthDialogs()
81 : {
82 : /* member initializers and constructor code */
83 : }
84 :
85 : nsClientAuthDialogs::~nsClientAuthDialogs()
86 : {
87 : /* destructor code */
88 : }
89 :
90 : /* [must_use] boolean chooseCertificate (in nsIInterfaceRequestor ctx, in AUTF8String hostname, in long port, in AUTF8String organization, in AUTF8String issuerOrg, in nsIArray certList, out unsigned long selectedIndex); */
91 : MOZ_MUST_USE NS_IMETHODIMP nsClientAuthDialogs::ChooseCertificate(nsIInterfaceRequestor *ctx, const nsACString & hostname, int32_t port, const nsACString & organization, const nsACString & issuerOrg, nsIArray *certList, uint32_t *selectedIndex, bool *_retval)
92 : {
93 : return NS_ERROR_NOT_IMPLEMENTED;
94 : }
95 :
96 : /* End of implementation class template. */
97 : #endif
98 :
99 :
100 : /* starting interface: nsIClientAuthUserDecision */
101 : #define NS_ICLIENTAUTHUSERDECISION_IID_STR "95c4373e-bdd4-4a63-b431-f5b000367721"
102 :
103 : #define NS_ICLIENTAUTHUSERDECISION_IID \
104 : {0x95c4373e, 0xbdd4, 0x4a63, \
105 : { 0xb4, 0x31, 0xf5, 0xb0, 0x00, 0x36, 0x77, 0x21 }}
106 :
107 0 : class NS_NO_VTABLE nsIClientAuthUserDecision : public nsISupports {
108 : public:
109 :
110 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLIENTAUTHUSERDECISION_IID)
111 :
112 : /* attribute boolean rememberClientAuthCertificate; */
113 : NS_IMETHOD GetRememberClientAuthCertificate(bool *aRememberClientAuthCertificate) = 0;
114 : NS_IMETHOD SetRememberClientAuthCertificate(bool aRememberClientAuthCertificate) = 0;
115 :
116 : };
117 :
118 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIClientAuthUserDecision, NS_ICLIENTAUTHUSERDECISION_IID)
119 :
120 : /* Use this macro when declaring classes that implement this interface. */
121 : #define NS_DECL_NSICLIENTAUTHUSERDECISION \
122 : NS_IMETHOD GetRememberClientAuthCertificate(bool *aRememberClientAuthCertificate) override; \
123 : NS_IMETHOD SetRememberClientAuthCertificate(bool aRememberClientAuthCertificate) override;
124 :
125 : /* Use this macro when declaring the members of this interface when the
126 : class doesn't implement the interface. This is useful for forwarding. */
127 : #define NS_DECL_NON_VIRTUAL_NSICLIENTAUTHUSERDECISION \
128 : nsresult GetRememberClientAuthCertificate(bool *aRememberClientAuthCertificate); \
129 : nsresult SetRememberClientAuthCertificate(bool aRememberClientAuthCertificate);
130 :
131 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
132 : #define NS_FORWARD_NSICLIENTAUTHUSERDECISION(_to) \
133 : NS_IMETHOD GetRememberClientAuthCertificate(bool *aRememberClientAuthCertificate) override { return _to GetRememberClientAuthCertificate(aRememberClientAuthCertificate); } \
134 : NS_IMETHOD SetRememberClientAuthCertificate(bool aRememberClientAuthCertificate) override { return _to SetRememberClientAuthCertificate(aRememberClientAuthCertificate); }
135 :
136 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
137 : #define NS_FORWARD_SAFE_NSICLIENTAUTHUSERDECISION(_to) \
138 : NS_IMETHOD GetRememberClientAuthCertificate(bool *aRememberClientAuthCertificate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRememberClientAuthCertificate(aRememberClientAuthCertificate); } \
139 : NS_IMETHOD SetRememberClientAuthCertificate(bool aRememberClientAuthCertificate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRememberClientAuthCertificate(aRememberClientAuthCertificate); }
140 :
141 : #if 0
142 : /* Use the code below as a template for the implementation class for this interface. */
143 :
144 : /* Header file */
145 : class nsClientAuthUserDecision : public nsIClientAuthUserDecision
146 : {
147 : public:
148 : NS_DECL_ISUPPORTS
149 : NS_DECL_NSICLIENTAUTHUSERDECISION
150 :
151 : nsClientAuthUserDecision();
152 :
153 : private:
154 : ~nsClientAuthUserDecision();
155 :
156 : protected:
157 : /* additional members */
158 : };
159 :
160 : /* Implementation file */
161 : NS_IMPL_ISUPPORTS(nsClientAuthUserDecision, nsIClientAuthUserDecision)
162 :
163 : nsClientAuthUserDecision::nsClientAuthUserDecision()
164 : {
165 : /* member initializers and constructor code */
166 : }
167 :
168 : nsClientAuthUserDecision::~nsClientAuthUserDecision()
169 : {
170 : /* destructor code */
171 : }
172 :
173 : /* attribute boolean rememberClientAuthCertificate; */
174 : NS_IMETHODIMP nsClientAuthUserDecision::GetRememberClientAuthCertificate(bool *aRememberClientAuthCertificate)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 : NS_IMETHODIMP nsClientAuthUserDecision::SetRememberClientAuthCertificate(bool aRememberClientAuthCertificate)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* End of implementation class template. */
184 : #endif
185 :
186 : #define NS_CLIENTAUTHDIALOGS_CONTRACTID "@mozilla.org/nsClientAuthDialogs;1"
187 :
188 : #endif /* __gen_nsIClientAuthDialogs_h__ */
|