1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsICRLManager.idl
3 : */
4 :
5 : #ifndef __gen_nsICRLManager_h__
6 : #define __gen_nsICRLManager_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 nsIURI; /* forward declaration */
18 :
19 : class nsIArray; /* forward declaration */
20 :
21 : class nsICRLInfo; /* forward declaration */
22 :
23 : #define NS_CRLMANAGER_CID { /* 5b256c10-22d8-4109-af92-1253035e9fcb */ \
24 : 0x5b256c10, \
25 : 0x22d8, \
26 : 0x4109, \
27 : {0xaf, 0x92, 0x12, 0x53, 0x03, 0x5e, 0x9f, 0xcb} \
28 : }
29 : #define NS_CRLMANAGER_CONTRACTID "@mozilla.org/security/crlmanager;1"
30 :
31 : /* starting interface: nsICRLManager */
32 : #define NS_ICRLMANAGER_IID_STR "486755db-627a-4678-a21b-f6a63bb9c56a"
33 :
34 : #define NS_ICRLMANAGER_IID \
35 : {0x486755db, 0x627a, 0x4678, \
36 : { 0xa2, 0x1b, 0xf6, 0xa6, 0x3b, 0xb9, 0xc5, 0x6a }}
37 :
38 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICRLManager : public nsISupports {
39 : public:
40 :
41 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICRLMANAGER_IID)
42 :
43 : /* void importCrl ([array, size_is (length)] in octet data, in unsigned long length, in nsIURI uri, in unsigned long type, in boolean doSilentDownload, in wstring crlKey); */
44 : NS_SCRIPTABLE NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, bool doSilentDownload, const PRUnichar * crlKey) = 0;
45 :
46 : /* boolean updateCRLFromURL (in wstring url, in wstring key); */
47 : NS_SCRIPTABLE NS_IMETHOD UpdateCRLFromURL(const PRUnichar * url, const PRUnichar * key, bool *_retval NS_OUTPARAM) = 0;
48 :
49 : /* nsIArray getCrls (); */
50 : NS_SCRIPTABLE NS_IMETHOD GetCrls(nsIArray * *_retval NS_OUTPARAM) = 0;
51 :
52 : /* void deleteCrl (in unsigned long crlIndex); */
53 : NS_SCRIPTABLE NS_IMETHOD DeleteCrl(PRUint32 crlIndex) = 0;
54 :
55 : /* void rescheduleCRLAutoUpdate (); */
56 : NS_SCRIPTABLE NS_IMETHOD RescheduleCRLAutoUpdate(void) = 0;
57 :
58 : enum {
59 : TYPE_AUTOUPDATE_TIME_BASED = 1U,
60 : TYPE_AUTOUPDATE_FREQ_BASED = 2U
61 : };
62 :
63 : /* wstring computeNextAutoUpdateTime (in nsICRLInfo info, in unsigned long autoUpdateType, in double noOfDays); */
64 : NS_SCRIPTABLE NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar * *_retval NS_OUTPARAM) = 0;
65 :
66 : };
67 :
68 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICRLManager, NS_ICRLMANAGER_IID)
69 :
70 : /* Use this macro when declaring classes that implement this interface. */
71 : #define NS_DECL_NSICRLMANAGER \
72 : NS_SCRIPTABLE NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, bool doSilentDownload, const PRUnichar * crlKey); \
73 : NS_SCRIPTABLE NS_IMETHOD UpdateCRLFromURL(const PRUnichar * url, const PRUnichar * key, bool *_retval NS_OUTPARAM); \
74 : NS_SCRIPTABLE NS_IMETHOD GetCrls(nsIArray * *_retval NS_OUTPARAM); \
75 : NS_SCRIPTABLE NS_IMETHOD DeleteCrl(PRUint32 crlIndex); \
76 : NS_SCRIPTABLE NS_IMETHOD RescheduleCRLAutoUpdate(void); \
77 : NS_SCRIPTABLE NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar * *_retval NS_OUTPARAM);
78 :
79 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
80 : #define NS_FORWARD_NSICRLMANAGER(_to) \
81 : NS_SCRIPTABLE NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, bool doSilentDownload, const PRUnichar * crlKey) { return _to ImportCrl(data, length, uri, type, doSilentDownload, crlKey); } \
82 : NS_SCRIPTABLE NS_IMETHOD UpdateCRLFromURL(const PRUnichar * url, const PRUnichar * key, bool *_retval NS_OUTPARAM) { return _to UpdateCRLFromURL(url, key, _retval); } \
83 : NS_SCRIPTABLE NS_IMETHOD GetCrls(nsIArray * *_retval NS_OUTPARAM) { return _to GetCrls(_retval); } \
84 : NS_SCRIPTABLE NS_IMETHOD DeleteCrl(PRUint32 crlIndex) { return _to DeleteCrl(crlIndex); } \
85 : NS_SCRIPTABLE NS_IMETHOD RescheduleCRLAutoUpdate(void) { return _to RescheduleCRLAutoUpdate(); } \
86 : NS_SCRIPTABLE NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar * *_retval NS_OUTPARAM) { return _to ComputeNextAutoUpdateTime(info, autoUpdateType, noOfDays, _retval); }
87 :
88 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
89 : #define NS_FORWARD_SAFE_NSICRLMANAGER(_to) \
90 : NS_SCRIPTABLE NS_IMETHOD ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, bool doSilentDownload, const PRUnichar * crlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportCrl(data, length, uri, type, doSilentDownload, crlKey); } \
91 : NS_SCRIPTABLE NS_IMETHOD UpdateCRLFromURL(const PRUnichar * url, const PRUnichar * key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCRLFromURL(url, key, _retval); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetCrls(nsIArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCrls(_retval); } \
93 : NS_SCRIPTABLE NS_IMETHOD DeleteCrl(PRUint32 crlIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCrl(crlIndex); } \
94 : NS_SCRIPTABLE NS_IMETHOD RescheduleCRLAutoUpdate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RescheduleCRLAutoUpdate(); } \
95 : NS_SCRIPTABLE NS_IMETHOD ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ComputeNextAutoUpdateTime(info, autoUpdateType, noOfDays, _retval); }
96 :
97 : #if 0
98 : /* Use the code below as a template for the implementation class for this interface. */
99 :
100 : /* Header file */
101 : class nsCRLManager : public nsICRLManager
102 : {
103 : public:
104 : NS_DECL_ISUPPORTS
105 : NS_DECL_NSICRLMANAGER
106 :
107 : nsCRLManager();
108 :
109 : private:
110 : ~nsCRLManager();
111 :
112 : protected:
113 : /* additional members */
114 : };
115 :
116 : /* Implementation file */
117 : NS_IMPL_ISUPPORTS1(nsCRLManager, nsICRLManager)
118 :
119 : nsCRLManager::nsCRLManager()
120 : {
121 : /* member initializers and constructor code */
122 : }
123 :
124 : nsCRLManager::~nsCRLManager()
125 : {
126 : /* destructor code */
127 : }
128 :
129 : /* void importCrl ([array, size_is (length)] in octet data, in unsigned long length, in nsIURI uri, in unsigned long type, in boolean doSilentDownload, in wstring crlKey); */
130 : NS_IMETHODIMP nsCRLManager::ImportCrl(PRUint8 *data, PRUint32 length, nsIURI *uri, PRUint32 type, bool doSilentDownload, const PRUnichar * crlKey)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* boolean updateCRLFromURL (in wstring url, in wstring key); */
136 : NS_IMETHODIMP nsCRLManager::UpdateCRLFromURL(const PRUnichar * url, const PRUnichar * key, bool *_retval NS_OUTPARAM)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* nsIArray getCrls (); */
142 : NS_IMETHODIMP nsCRLManager::GetCrls(nsIArray * *_retval NS_OUTPARAM)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* void deleteCrl (in unsigned long crlIndex); */
148 : NS_IMETHODIMP nsCRLManager::DeleteCrl(PRUint32 crlIndex)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* void rescheduleCRLAutoUpdate (); */
154 : NS_IMETHODIMP nsCRLManager::RescheduleCRLAutoUpdate()
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* wstring computeNextAutoUpdateTime (in nsICRLInfo info, in unsigned long autoUpdateType, in double noOfDays); */
160 : NS_IMETHODIMP nsCRLManager::ComputeNextAutoUpdateTime(nsICRLInfo *info, PRUint32 autoUpdateType, double noOfDays, PRUnichar * *_retval NS_OUTPARAM)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* End of implementation class template. */
166 : #endif
167 :
168 :
169 : #endif /* __gen_nsICRLManager_h__ */
|