1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsIX509CertList.idl
3 : */
4 :
5 : #ifndef __gen_nsIX509CertList_h__
6 : #define __gen_nsIX509CertList_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 nsISimpleEnumerator; /* forward declaration */
18 :
19 : class nsIX509Cert; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIX509CertList */
23 : #define NS_IX509CERTLIST_IID_STR "a539759b-e22d-462f-94ea-2915b11b33e8"
24 :
25 : #define NS_IX509CERTLIST_IID \
26 : {0xa539759b, 0xe22d, 0x462f, \
27 : { 0x94, 0xea, 0x29, 0x15, 0xb1, 0x1b, 0x33, 0xe8 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIX509CertList : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERTLIST_IID)
33 :
34 : /* void addCert (in nsIX509Cert cert); */
35 : NS_SCRIPTABLE NS_IMETHOD AddCert(nsIX509Cert *cert) = 0;
36 :
37 : /* void deleteCert (in nsIX509Cert cert); */
38 : NS_SCRIPTABLE NS_IMETHOD DeleteCert(nsIX509Cert *cert) = 0;
39 :
40 : /* nsISimpleEnumerator getEnumerator (); */
41 : NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
42 :
43 : /* [noscript,notxpcom] voidPtr getRawCertList (); */
44 : NS_IMETHOD_(void *) GetRawCertList(void) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509CertList, NS_IX509CERTLIST_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSIX509CERTLIST \
52 : NS_SCRIPTABLE NS_IMETHOD AddCert(nsIX509Cert *cert); \
53 : NS_SCRIPTABLE NS_IMETHOD DeleteCert(nsIX509Cert *cert); \
54 : NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
55 : NS_IMETHOD_(void *) GetRawCertList(void);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIX509CERTLIST(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD AddCert(nsIX509Cert *cert) { return _to AddCert(cert); } \
60 : NS_SCRIPTABLE NS_IMETHOD DeleteCert(nsIX509Cert *cert) { return _to DeleteCert(cert); } \
61 : NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetEnumerator(_retval); } \
62 : NS_IMETHOD_(void *) GetRawCertList(void) { return _to GetRawCertList(); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIX509CERTLIST(_to) \
66 : NS_SCRIPTABLE NS_IMETHOD AddCert(nsIX509Cert *cert) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCert(cert); } \
67 : NS_SCRIPTABLE NS_IMETHOD DeleteCert(nsIX509Cert *cert) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCert(cert); } \
68 : NS_SCRIPTABLE NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumerator(_retval); } \
69 : NS_IMETHOD_(void *) GetRawCertList(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawCertList(); }
70 :
71 : #if 0
72 : /* Use the code below as a template for the implementation class for this interface. */
73 :
74 : /* Header file */
75 : class nsX509CertList : public nsIX509CertList
76 : {
77 : public:
78 : NS_DECL_ISUPPORTS
79 : NS_DECL_NSIX509CERTLIST
80 :
81 : nsX509CertList();
82 :
83 : private:
84 : ~nsX509CertList();
85 :
86 : protected:
87 : /* additional members */
88 : };
89 :
90 : /* Implementation file */
91 : NS_IMPL_ISUPPORTS1(nsX509CertList, nsIX509CertList)
92 :
93 : nsX509CertList::nsX509CertList()
94 : {
95 : /* member initializers and constructor code */
96 : }
97 :
98 : nsX509CertList::~nsX509CertList()
99 : {
100 : /* destructor code */
101 : }
102 :
103 : /* void addCert (in nsIX509Cert cert); */
104 : NS_IMETHODIMP nsX509CertList::AddCert(nsIX509Cert *cert)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* void deleteCert (in nsIX509Cert cert); */
110 : NS_IMETHODIMP nsX509CertList::DeleteCert(nsIX509Cert *cert)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* nsISimpleEnumerator getEnumerator (); */
116 : NS_IMETHODIMP nsX509CertList::GetEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* [noscript,notxpcom] voidPtr getRawCertList (); */
122 : NS_IMETHODIMP_(void *) nsX509CertList::GetRawCertList()
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* End of implementation class template. */
128 : #endif
129 :
130 :
131 : #define NS_X509CERRTLIST_CID { /* 959fb165-6517-487f-ab9b-d8913be53197 */ \
132 : 0x959fb165, \
133 : 0x6517, \
134 : 0x487f \
135 : {0xab, 0x9b, 0xd8, 0x91, 0x3b, 0xe5, 0x31, 0x97} \
136 : }
137 : #define NS_X509CERTLIST_CONTRACTID "@mozilla.org/security/x509certlist;1"
138 :
139 : #endif /* __gen_nsIX509CertList_h__ */
|