1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsICertTree.idl
3 : */
4 :
5 : #ifndef __gen_nsICertTree_h__
6 : #define __gen_nsICertTree_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsITreeView_h__
14 : #include "nsITreeView.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class nsINSSCertCache; /* forward declaration */
22 :
23 : class nsIX509Cert; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsICertTreeItem */
27 : #define NS_ICERTTREEITEM_IID_STR "d0180863-606e-49e6-8324-cf45ed4dd891"
28 :
29 : #define NS_ICERTTREEITEM_IID \
30 : {0xd0180863, 0x606e, 0x49e6, \
31 : { 0x83, 0x24, 0xcf, 0x45, 0xed, 0x4d, 0xd8, 0x91 }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICertTreeItem : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTTREEITEM_IID)
37 :
38 : /* readonly attribute nsIX509Cert cert; */
39 : NS_SCRIPTABLE NS_IMETHOD GetCert(nsIX509Cert * *aCert) = 0;
40 :
41 : /* readonly attribute AString hostPort; */
42 : NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsAString & aHostPort) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICertTreeItem, NS_ICERTTREEITEM_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSICERTTREEITEM \
50 : NS_SCRIPTABLE NS_IMETHOD GetCert(nsIX509Cert * *aCert); \
51 : NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsAString & aHostPort);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSICERTTREEITEM(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetCert(nsIX509Cert * *aCert) { return _to GetCert(aCert); } \
56 : NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsAString & aHostPort) { return _to GetHostPort(aHostPort); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSICERTTREEITEM(_to) \
60 : NS_SCRIPTABLE NS_IMETHOD GetCert(nsIX509Cert * *aCert) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(aCert); } \
61 : NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsAString & aHostPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostPort(aHostPort); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsCertTreeItem : public nsICertTreeItem
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSICERTTREEITEM
72 :
73 : nsCertTreeItem();
74 :
75 : private:
76 : ~nsCertTreeItem();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS1(nsCertTreeItem, nsICertTreeItem)
84 :
85 : nsCertTreeItem::nsCertTreeItem()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsCertTreeItem::~nsCertTreeItem()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* readonly attribute nsIX509Cert cert; */
96 : NS_IMETHODIMP nsCertTreeItem::GetCert(nsIX509Cert * *aCert)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* readonly attribute AString hostPort; */
102 : NS_IMETHODIMP nsCertTreeItem::GetHostPort(nsAString & aHostPort)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : /* starting interface: nsICertTree */
112 : #define NS_ICERTTREE_IID_STR "a8cd1c89-a901-4735-831b-7198b7b8b6b1"
113 :
114 : #define NS_ICERTTREE_IID \
115 : {0xa8cd1c89, 0xa901, 0x4735, \
116 : { 0x83, 0x1b, 0x71, 0x98, 0xb7, 0xb8, 0xb6, 0xb1 }}
117 :
118 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICertTree : public nsITreeView {
119 : public:
120 :
121 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTTREE_IID)
122 :
123 : /* void loadCerts (in unsigned long type); */
124 : NS_SCRIPTABLE NS_IMETHOD LoadCerts(PRUint32 type) = 0;
125 :
126 : /* void loadCertsFromCache (in nsINSSCertCache cache, in unsigned long type); */
127 : NS_SCRIPTABLE NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type) = 0;
128 :
129 : /* nsIX509Cert getCert (in unsigned long index); */
130 : NS_SCRIPTABLE NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
131 :
132 : /* nsICertTreeItem getTreeItem (in unsigned long index); */
133 : NS_SCRIPTABLE NS_IMETHOD GetTreeItem(PRUint32 index, nsICertTreeItem * *_retval NS_OUTPARAM) = 0;
134 :
135 : /* boolean isHostPortOverride (in unsigned long index); */
136 : NS_SCRIPTABLE NS_IMETHOD IsHostPortOverride(PRUint32 index, bool *_retval NS_OUTPARAM) = 0;
137 :
138 : /* void deleteEntryObject (in unsigned long index); */
139 : NS_SCRIPTABLE NS_IMETHOD DeleteEntryObject(PRUint32 index) = 0;
140 :
141 : };
142 :
143 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICertTree, NS_ICERTTREE_IID)
144 :
145 : /* Use this macro when declaring classes that implement this interface. */
146 : #define NS_DECL_NSICERTTREE \
147 : NS_SCRIPTABLE NS_IMETHOD LoadCerts(PRUint32 type); \
148 : NS_SCRIPTABLE NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type); \
149 : NS_SCRIPTABLE NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert * *_retval NS_OUTPARAM); \
150 : NS_SCRIPTABLE NS_IMETHOD GetTreeItem(PRUint32 index, nsICertTreeItem * *_retval NS_OUTPARAM); \
151 : NS_SCRIPTABLE NS_IMETHOD IsHostPortOverride(PRUint32 index, bool *_retval NS_OUTPARAM); \
152 : NS_SCRIPTABLE NS_IMETHOD DeleteEntryObject(PRUint32 index);
153 :
154 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
155 : #define NS_FORWARD_NSICERTTREE(_to) \
156 : NS_SCRIPTABLE NS_IMETHOD LoadCerts(PRUint32 type) { return _to LoadCerts(type); } \
157 : NS_SCRIPTABLE NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type) { return _to LoadCertsFromCache(cache, type); } \
158 : NS_SCRIPTABLE NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert * *_retval NS_OUTPARAM) { return _to GetCert(index, _retval); } \
159 : NS_SCRIPTABLE NS_IMETHOD GetTreeItem(PRUint32 index, nsICertTreeItem * *_retval NS_OUTPARAM) { return _to GetTreeItem(index, _retval); } \
160 : NS_SCRIPTABLE NS_IMETHOD IsHostPortOverride(PRUint32 index, bool *_retval NS_OUTPARAM) { return _to IsHostPortOverride(index, _retval); } \
161 : NS_SCRIPTABLE NS_IMETHOD DeleteEntryObject(PRUint32 index) { return _to DeleteEntryObject(index); }
162 :
163 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
164 : #define NS_FORWARD_SAFE_NSICERTTREE(_to) \
165 : NS_SCRIPTABLE NS_IMETHOD LoadCerts(PRUint32 type) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCerts(type); } \
166 : NS_SCRIPTABLE NS_IMETHOD LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadCertsFromCache(cache, type); } \
167 : NS_SCRIPTABLE NS_IMETHOD GetCert(PRUint32 index, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(index, _retval); } \
168 : NS_SCRIPTABLE NS_IMETHOD GetTreeItem(PRUint32 index, nsICertTreeItem * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTreeItem(index, _retval); } \
169 : NS_SCRIPTABLE NS_IMETHOD IsHostPortOverride(PRUint32 index, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsHostPortOverride(index, _retval); } \
170 : NS_SCRIPTABLE NS_IMETHOD DeleteEntryObject(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteEntryObject(index); }
171 :
172 : #if 0
173 : /* Use the code below as a template for the implementation class for this interface. */
174 :
175 : /* Header file */
176 : class nsCertTree : public nsICertTree
177 : {
178 : public:
179 : NS_DECL_ISUPPORTS
180 : NS_DECL_NSICERTTREE
181 :
182 : nsCertTree();
183 :
184 : private:
185 : ~nsCertTree();
186 :
187 : protected:
188 : /* additional members */
189 : };
190 :
191 : /* Implementation file */
192 : NS_IMPL_ISUPPORTS1(nsCertTree, nsICertTree)
193 :
194 : nsCertTree::nsCertTree()
195 : {
196 : /* member initializers and constructor code */
197 : }
198 :
199 : nsCertTree::~nsCertTree()
200 : {
201 : /* destructor code */
202 : }
203 :
204 : /* void loadCerts (in unsigned long type); */
205 : NS_IMETHODIMP nsCertTree::LoadCerts(PRUint32 type)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* void loadCertsFromCache (in nsINSSCertCache cache, in unsigned long type); */
211 : NS_IMETHODIMP nsCertTree::LoadCertsFromCache(nsINSSCertCache *cache, PRUint32 type)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* nsIX509Cert getCert (in unsigned long index); */
217 : NS_IMETHODIMP nsCertTree::GetCert(PRUint32 index, nsIX509Cert * *_retval NS_OUTPARAM)
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 :
222 : /* nsICertTreeItem getTreeItem (in unsigned long index); */
223 : NS_IMETHODIMP nsCertTree::GetTreeItem(PRUint32 index, nsICertTreeItem * *_retval NS_OUTPARAM)
224 : {
225 : return NS_ERROR_NOT_IMPLEMENTED;
226 : }
227 :
228 : /* boolean isHostPortOverride (in unsigned long index); */
229 : NS_IMETHODIMP nsCertTree::IsHostPortOverride(PRUint32 index, bool *_retval NS_OUTPARAM)
230 : {
231 : return NS_ERROR_NOT_IMPLEMENTED;
232 : }
233 :
234 : /* void deleteEntryObject (in unsigned long index); */
235 : NS_IMETHODIMP nsCertTree::DeleteEntryObject(PRUint32 index)
236 : {
237 : return NS_ERROR_NOT_IMPLEMENTED;
238 : }
239 :
240 : /* End of implementation class template. */
241 : #endif
242 :
243 :
244 : #define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \
245 : { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } }
246 : #define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1"
247 :
248 : #endif /* __gen_nsICertTree_h__ */
|