1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/storage/public/mozIStorageStatement.idl
3 : */
4 :
5 : #ifndef __gen_mozIStorageStatement_h__
6 : #define __gen_mozIStorageStatement_h__
7 :
8 :
9 : #ifndef __gen_mozIStorageBaseStatement_h__
10 : #include "mozIStorageBaseStatement.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 : #include "mozilla/Util.h"
18 :
19 : /* starting interface: mozIStorageStatement */
20 : #define MOZISTORAGESTATEMENT_IID_STR "57ec7be1-36cf-4510-b938-7d1c9ee8cec5"
21 :
22 : #define MOZISTORAGESTATEMENT_IID \
23 : {0x57ec7be1, 0x36cf, 0x4510, \
24 : { 0xb9, 0x38, 0x7d, 0x1c, 0x9e, 0xe8, 0xce, 0xc5 }}
25 :
26 36811 : class NS_SCRIPTABLE mozIStorageStatement : public mozIStorageBaseStatement {
27 : public:
28 :
29 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGESTATEMENT_IID)
30 :
31 : /* mozIStorageStatement clone (); */
32 : NS_SCRIPTABLE NS_IMETHOD Clone(mozIStorageStatement * *_retval NS_OUTPARAM) = 0;
33 :
34 : /* readonly attribute unsigned long parameterCount; */
35 : NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount) = 0;
36 :
37 : /* AUTF8String getParameterName (in unsigned long aParamIndex); */
38 : NS_SCRIPTABLE NS_IMETHOD GetParameterName(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM) = 0;
39 :
40 : /* unsigned long getParameterIndex (in AUTF8String aName); */
41 : NS_SCRIPTABLE NS_IMETHOD GetParameterIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM) = 0;
42 :
43 : /* readonly attribute unsigned long columnCount; */
44 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRUint32 *aColumnCount) = 0;
45 :
46 : /* AUTF8String getColumnName (in unsigned long aColumnIndex); */
47 : NS_SCRIPTABLE NS_IMETHOD GetColumnName(PRUint32 aColumnIndex, nsACString & _retval NS_OUTPARAM) = 0;
48 :
49 : /* unsigned long getColumnIndex (in AUTF8String aName); */
50 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM) = 0;
51 :
52 : /* AUTF8String getColumnDecltype (in unsigned long aParamIndex); */
53 : NS_SCRIPTABLE NS_IMETHOD GetColumnDecltype(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM) = 0;
54 :
55 : /* void reset (); */
56 : NS_SCRIPTABLE NS_IMETHOD Reset(void) = 0;
57 :
58 : /* void execute (); */
59 : NS_SCRIPTABLE NS_IMETHOD Execute(void) = 0;
60 :
61 : /* boolean executeStep (); */
62 : NS_SCRIPTABLE NS_IMETHOD ExecuteStep(bool *_retval NS_OUTPARAM) = 0;
63 :
64 : enum {
65 : VALUE_TYPE_NULL = 0,
66 : VALUE_TYPE_INTEGER = 1,
67 : VALUE_TYPE_FLOAT = 2,
68 : VALUE_TYPE_TEXT = 3,
69 : VALUE_TYPE_BLOB = 4
70 : };
71 :
72 : /* readonly attribute unsigned long numEntries; */
73 : NS_SCRIPTABLE NS_IMETHOD GetNumEntries(PRUint32 *aNumEntries) = 0;
74 :
75 : /* long getTypeOfIndex (in unsigned long aIndex); */
76 : NS_SCRIPTABLE NS_IMETHOD GetTypeOfIndex(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
77 :
78 : /* long getInt32 (in unsigned long aIndex); */
79 : NS_SCRIPTABLE NS_IMETHOD GetInt32(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
80 :
81 : /* long long getInt64 (in unsigned long aIndex); */
82 : NS_SCRIPTABLE NS_IMETHOD GetInt64(PRUint32 aIndex, PRInt64 *_retval NS_OUTPARAM) = 0;
83 :
84 : /* double getDouble (in unsigned long aIndex); */
85 : NS_SCRIPTABLE NS_IMETHOD GetDouble(PRUint32 aIndex, double *_retval NS_OUTPARAM) = 0;
86 :
87 : /* AUTF8String getUTF8String (in unsigned long aIndex); */
88 : NS_SCRIPTABLE NS_IMETHOD GetUTF8String(PRUint32 aIndex, nsACString & _retval NS_OUTPARAM) = 0;
89 :
90 : /* AString getString (in unsigned long aIndex); */
91 : NS_SCRIPTABLE NS_IMETHOD GetString(PRUint32 aIndex, nsAString & _retval NS_OUTPARAM) = 0;
92 :
93 : /* void getBlob (in unsigned long aIndex, out unsigned long aDataSize, [array, size_is (aDataSize)] out octet aData); */
94 : NS_SCRIPTABLE NS_IMETHOD GetBlob(PRUint32 aIndex, PRUint32 *aDataSize NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM) = 0;
95 :
96 : /* boolean getIsNull (in unsigned long aIndex); */
97 : NS_SCRIPTABLE NS_IMETHOD GetIsNull(PRUint32 aIndex, bool *_retval NS_OUTPARAM) = 0;
98 :
99 : /* [noscript] void getSharedUTF8String (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out string aResult); */
100 : NS_IMETHOD GetSharedUTF8String(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const char * *aResult NS_OUTPARAM) = 0;
101 :
102 : /* [noscript] void getSharedString (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out wstring aResult); */
103 : NS_IMETHOD GetSharedString(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUnichar * *aResult NS_OUTPARAM) = 0;
104 :
105 : /* [noscript] void getSharedBlob (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out octetPtr aResult); */
106 : NS_IMETHOD GetSharedBlob(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUint8 **aResult NS_OUTPARAM) = 0;
107 :
108 : /**
109 : * Getters for native code that return their values as
110 : * the return type, for convenience and sanity.
111 : *
112 : * Not virtual; no vtable bloat.
113 : */
114 39332 : inline PRInt32 AsInt32(PRUint32 idx) {
115 39332 : PRInt32 v = 0;
116 78664 : mozilla::DebugOnly<nsresult> rv = GetInt32(idx, &v);
117 39332 : NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv) || IsNull(idx),
118 : "Getting value failed, wrong column index?");
119 39332 : return v;
120 : }
121 49536 : inline PRInt64 AsInt64(PRUint32 idx) {
122 49536 : PRInt64 v = 0;
123 99072 : mozilla::DebugOnly<nsresult> rv = GetInt64(idx, &v);
124 49536 : NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv) || IsNull(idx),
125 : "Getting value failed, wrong column index?");
126 49536 : return v;
127 : }
128 148 : inline double AsDouble(PRUint32 idx) {
129 148 : double v = 0.0;
130 296 : mozilla::DebugOnly<nsresult> rv = GetDouble(idx, &v);
131 148 : NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv) || IsNull(idx),
132 : "Getting value failed, wrong column index?");
133 148 : return v;
134 : }
135 1 : inline const char* AsSharedUTF8String(PRUint32 idx, PRUint32 *len) {
136 1 : const char *str = nsnull;
137 1 : *len = 0;
138 2 : mozilla::DebugOnly<nsresult> rv = GetSharedUTF8String(idx, len, &str);
139 1 : NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv) || IsNull(idx),
140 : "Getting value failed, wrong column index?");
141 1 : return str;
142 : }
143 24638 : inline const PRUnichar* AsSharedWString(PRUint32 idx, PRUint32 *len) {
144 24638 : const PRUnichar *str = nsnull;
145 24638 : *len = 0;
146 49276 : mozilla::DebugOnly<nsresult> rv = GetSharedString(idx, len, &str);
147 24638 : NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv) || IsNull(idx),
148 : "Getting value failed, wrong column index?");
149 24638 : return str;
150 : }
151 1116 : inline const PRUint8* AsSharedBlob(PRUint32 idx, PRUint32 *len) {
152 1116 : const PRUint8 *blob = nsnull;
153 1116 : *len = 0;
154 2232 : mozilla::DebugOnly<nsresult> rv = GetSharedBlob(idx, len, &blob);
155 1116 : NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv) || IsNull(idx),
156 : "Getting value failed, wrong column index?");
157 1116 : return blob;
158 : }
159 1 : inline bool IsNull(PRUint32 idx) {
160 1 : bool b = PR_FALSE;
161 2 : mozilla::DebugOnly<nsresult> rv = GetIsNull(idx, &b);
162 1 : NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv),
163 : "Getting value failed, wrong column index?");
164 1 : return b;
165 : }
166 : };
167 :
168 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageStatement, MOZISTORAGESTATEMENT_IID)
169 :
170 : /* Use this macro when declaring classes that implement this interface. */
171 : #define NS_DECL_MOZISTORAGESTATEMENT \
172 : NS_SCRIPTABLE NS_IMETHOD Clone(mozIStorageStatement * *_retval NS_OUTPARAM); \
173 : NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount); \
174 : NS_SCRIPTABLE NS_IMETHOD GetParameterName(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM); \
175 : NS_SCRIPTABLE NS_IMETHOD GetParameterIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM); \
176 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRUint32 *aColumnCount); \
177 : NS_SCRIPTABLE NS_IMETHOD GetColumnName(PRUint32 aColumnIndex, nsACString & _retval NS_OUTPARAM); \
178 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM); \
179 : NS_SCRIPTABLE NS_IMETHOD GetColumnDecltype(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM); \
180 : NS_SCRIPTABLE NS_IMETHOD Reset(void); \
181 : NS_SCRIPTABLE NS_IMETHOD Execute(void); \
182 : NS_SCRIPTABLE NS_IMETHOD ExecuteStep(bool *_retval NS_OUTPARAM); \
183 : NS_SCRIPTABLE NS_IMETHOD GetNumEntries(PRUint32 *aNumEntries); \
184 : NS_SCRIPTABLE NS_IMETHOD GetTypeOfIndex(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM); \
185 : NS_SCRIPTABLE NS_IMETHOD GetInt32(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM); \
186 : NS_SCRIPTABLE NS_IMETHOD GetInt64(PRUint32 aIndex, PRInt64 *_retval NS_OUTPARAM); \
187 : NS_SCRIPTABLE NS_IMETHOD GetDouble(PRUint32 aIndex, double *_retval NS_OUTPARAM); \
188 : NS_SCRIPTABLE NS_IMETHOD GetUTF8String(PRUint32 aIndex, nsACString & _retval NS_OUTPARAM); \
189 : NS_SCRIPTABLE NS_IMETHOD GetString(PRUint32 aIndex, nsAString & _retval NS_OUTPARAM); \
190 : NS_SCRIPTABLE NS_IMETHOD GetBlob(PRUint32 aIndex, PRUint32 *aDataSize NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM); \
191 : NS_SCRIPTABLE NS_IMETHOD GetIsNull(PRUint32 aIndex, bool *_retval NS_OUTPARAM); \
192 : NS_IMETHOD GetSharedUTF8String(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const char * *aResult NS_OUTPARAM); \
193 : NS_IMETHOD GetSharedString(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUnichar * *aResult NS_OUTPARAM); \
194 : NS_IMETHOD GetSharedBlob(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUint8 **aResult NS_OUTPARAM); \
195 :
196 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
197 : #define NS_FORWARD_MOZISTORAGESTATEMENT(_to) \
198 : NS_SCRIPTABLE NS_IMETHOD Clone(mozIStorageStatement * *_retval NS_OUTPARAM) { return _to Clone(_retval); } \
199 : NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount) { return _to GetParameterCount(aParameterCount); } \
200 : NS_SCRIPTABLE NS_IMETHOD GetParameterName(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM) { return _to GetParameterName(aParamIndex, _retval); } \
201 : NS_SCRIPTABLE NS_IMETHOD GetParameterIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM) { return _to GetParameterIndex(aName, _retval); } \
202 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRUint32 *aColumnCount) { return _to GetColumnCount(aColumnCount); } \
203 : NS_SCRIPTABLE NS_IMETHOD GetColumnName(PRUint32 aColumnIndex, nsACString & _retval NS_OUTPARAM) { return _to GetColumnName(aColumnIndex, _retval); } \
204 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM) { return _to GetColumnIndex(aName, _retval); } \
205 : NS_SCRIPTABLE NS_IMETHOD GetColumnDecltype(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM) { return _to GetColumnDecltype(aParamIndex, _retval); } \
206 : NS_SCRIPTABLE NS_IMETHOD Reset(void) { return _to Reset(); } \
207 : NS_SCRIPTABLE NS_IMETHOD Execute(void) { return _to Execute(); } \
208 : NS_SCRIPTABLE NS_IMETHOD ExecuteStep(bool *_retval NS_OUTPARAM) { return _to ExecuteStep(_retval); } \
209 : NS_SCRIPTABLE NS_IMETHOD GetNumEntries(PRUint32 *aNumEntries) { return _to GetNumEntries(aNumEntries); } \
210 : NS_SCRIPTABLE NS_IMETHOD GetTypeOfIndex(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetTypeOfIndex(aIndex, _retval); } \
211 : NS_SCRIPTABLE NS_IMETHOD GetInt32(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetInt32(aIndex, _retval); } \
212 : NS_SCRIPTABLE NS_IMETHOD GetInt64(PRUint32 aIndex, PRInt64 *_retval NS_OUTPARAM) { return _to GetInt64(aIndex, _retval); } \
213 : NS_SCRIPTABLE NS_IMETHOD GetDouble(PRUint32 aIndex, double *_retval NS_OUTPARAM) { return _to GetDouble(aIndex, _retval); } \
214 : NS_SCRIPTABLE NS_IMETHOD GetUTF8String(PRUint32 aIndex, nsACString & _retval NS_OUTPARAM) { return _to GetUTF8String(aIndex, _retval); } \
215 : NS_SCRIPTABLE NS_IMETHOD GetString(PRUint32 aIndex, nsAString & _retval NS_OUTPARAM) { return _to GetString(aIndex, _retval); } \
216 : NS_SCRIPTABLE NS_IMETHOD GetBlob(PRUint32 aIndex, PRUint32 *aDataSize NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM) { return _to GetBlob(aIndex, aDataSize, aData); } \
217 : NS_SCRIPTABLE NS_IMETHOD GetIsNull(PRUint32 aIndex, bool *_retval NS_OUTPARAM) { return _to GetIsNull(aIndex, _retval); } \
218 : NS_IMETHOD GetSharedUTF8String(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const char * *aResult NS_OUTPARAM) { return _to GetSharedUTF8String(aIndex, aLength, aResult); } \
219 : NS_IMETHOD GetSharedString(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUnichar * *aResult NS_OUTPARAM) { return _to GetSharedString(aIndex, aLength, aResult); } \
220 : NS_IMETHOD GetSharedBlob(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUint8 **aResult NS_OUTPARAM) { return _to GetSharedBlob(aIndex, aLength, aResult); } \
221 :
222 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
223 : #define NS_FORWARD_SAFE_MOZISTORAGESTATEMENT(_to) \
224 : NS_SCRIPTABLE NS_IMETHOD Clone(mozIStorageStatement * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
225 : NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterCount(aParameterCount); } \
226 : NS_SCRIPTABLE NS_IMETHOD GetParameterName(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterName(aParamIndex, _retval); } \
227 : NS_SCRIPTABLE NS_IMETHOD GetParameterIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterIndex(aName, _retval); } \
228 : NS_SCRIPTABLE NS_IMETHOD GetColumnCount(PRUint32 *aColumnCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnCount(aColumnCount); } \
229 : NS_SCRIPTABLE NS_IMETHOD GetColumnName(PRUint32 aColumnIndex, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnName(aColumnIndex, _retval); } \
230 : NS_SCRIPTABLE NS_IMETHOD GetColumnIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnIndex(aName, _retval); } \
231 : NS_SCRIPTABLE NS_IMETHOD GetColumnDecltype(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnDecltype(aParamIndex, _retval); } \
232 : NS_SCRIPTABLE NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } \
233 : NS_SCRIPTABLE NS_IMETHOD Execute(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Execute(); } \
234 : NS_SCRIPTABLE NS_IMETHOD ExecuteStep(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteStep(_retval); } \
235 : NS_SCRIPTABLE NS_IMETHOD GetNumEntries(PRUint32 *aNumEntries) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumEntries(aNumEntries); } \
236 : NS_SCRIPTABLE NS_IMETHOD GetTypeOfIndex(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeOfIndex(aIndex, _retval); } \
237 : NS_SCRIPTABLE NS_IMETHOD GetInt32(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInt32(aIndex, _retval); } \
238 : NS_SCRIPTABLE NS_IMETHOD GetInt64(PRUint32 aIndex, PRInt64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInt64(aIndex, _retval); } \
239 : NS_SCRIPTABLE NS_IMETHOD GetDouble(PRUint32 aIndex, double *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDouble(aIndex, _retval); } \
240 : NS_SCRIPTABLE NS_IMETHOD GetUTF8String(PRUint32 aIndex, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUTF8String(aIndex, _retval); } \
241 : NS_SCRIPTABLE NS_IMETHOD GetString(PRUint32 aIndex, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(aIndex, _retval); } \
242 : NS_SCRIPTABLE NS_IMETHOD GetBlob(PRUint32 aIndex, PRUint32 *aDataSize NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlob(aIndex, aDataSize, aData); } \
243 : NS_SCRIPTABLE NS_IMETHOD GetIsNull(PRUint32 aIndex, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsNull(aIndex, _retval); } \
244 : NS_IMETHOD GetSharedUTF8String(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const char * *aResult NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharedUTF8String(aIndex, aLength, aResult); } \
245 : NS_IMETHOD GetSharedString(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUnichar * *aResult NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharedString(aIndex, aLength, aResult); } \
246 : NS_IMETHOD GetSharedBlob(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUint8 **aResult NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharedBlob(aIndex, aLength, aResult); } \
247 :
248 : #if 0
249 : /* Use the code below as a template for the implementation class for this interface. */
250 :
251 : /* Header file */
252 : class _MYCLASS_ : public mozIStorageStatement
253 : {
254 : public:
255 : NS_DECL_ISUPPORTS
256 : NS_DECL_MOZISTORAGESTATEMENT
257 :
258 : _MYCLASS_();
259 :
260 : private:
261 : ~_MYCLASS_();
262 :
263 : protected:
264 : /* additional members */
265 : };
266 :
267 : /* Implementation file */
268 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIStorageStatement)
269 :
270 : _MYCLASS_::_MYCLASS_()
271 : {
272 : /* member initializers and constructor code */
273 : }
274 :
275 : _MYCLASS_::~_MYCLASS_()
276 : {
277 : /* destructor code */
278 : }
279 :
280 : /* mozIStorageStatement clone (); */
281 : NS_IMETHODIMP _MYCLASS_::Clone(mozIStorageStatement * *_retval NS_OUTPARAM)
282 : {
283 : return NS_ERROR_NOT_IMPLEMENTED;
284 : }
285 :
286 : /* readonly attribute unsigned long parameterCount; */
287 : NS_IMETHODIMP _MYCLASS_::GetParameterCount(PRUint32 *aParameterCount)
288 : {
289 : return NS_ERROR_NOT_IMPLEMENTED;
290 : }
291 :
292 : /* AUTF8String getParameterName (in unsigned long aParamIndex); */
293 : NS_IMETHODIMP _MYCLASS_::GetParameterName(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM)
294 : {
295 : return NS_ERROR_NOT_IMPLEMENTED;
296 : }
297 :
298 : /* unsigned long getParameterIndex (in AUTF8String aName); */
299 : NS_IMETHODIMP _MYCLASS_::GetParameterIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM)
300 : {
301 : return NS_ERROR_NOT_IMPLEMENTED;
302 : }
303 :
304 : /* readonly attribute unsigned long columnCount; */
305 : NS_IMETHODIMP _MYCLASS_::GetColumnCount(PRUint32 *aColumnCount)
306 : {
307 : return NS_ERROR_NOT_IMPLEMENTED;
308 : }
309 :
310 : /* AUTF8String getColumnName (in unsigned long aColumnIndex); */
311 : NS_IMETHODIMP _MYCLASS_::GetColumnName(PRUint32 aColumnIndex, nsACString & _retval NS_OUTPARAM)
312 : {
313 : return NS_ERROR_NOT_IMPLEMENTED;
314 : }
315 :
316 : /* unsigned long getColumnIndex (in AUTF8String aName); */
317 : NS_IMETHODIMP _MYCLASS_::GetColumnIndex(const nsACString & aName, PRUint32 *_retval NS_OUTPARAM)
318 : {
319 : return NS_ERROR_NOT_IMPLEMENTED;
320 : }
321 :
322 : /* AUTF8String getColumnDecltype (in unsigned long aParamIndex); */
323 : NS_IMETHODIMP _MYCLASS_::GetColumnDecltype(PRUint32 aParamIndex, nsACString & _retval NS_OUTPARAM)
324 : {
325 : return NS_ERROR_NOT_IMPLEMENTED;
326 : }
327 :
328 : /* void reset (); */
329 : NS_IMETHODIMP _MYCLASS_::Reset()
330 : {
331 : return NS_ERROR_NOT_IMPLEMENTED;
332 : }
333 :
334 : /* void execute (); */
335 : NS_IMETHODIMP _MYCLASS_::Execute()
336 : {
337 : return NS_ERROR_NOT_IMPLEMENTED;
338 : }
339 :
340 : /* boolean executeStep (); */
341 : NS_IMETHODIMP _MYCLASS_::ExecuteStep(bool *_retval NS_OUTPARAM)
342 : {
343 : return NS_ERROR_NOT_IMPLEMENTED;
344 : }
345 :
346 : /* readonly attribute unsigned long numEntries; */
347 : NS_IMETHODIMP _MYCLASS_::GetNumEntries(PRUint32 *aNumEntries)
348 : {
349 : return NS_ERROR_NOT_IMPLEMENTED;
350 : }
351 :
352 : /* long getTypeOfIndex (in unsigned long aIndex); */
353 : NS_IMETHODIMP _MYCLASS_::GetTypeOfIndex(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM)
354 : {
355 : return NS_ERROR_NOT_IMPLEMENTED;
356 : }
357 :
358 : /* long getInt32 (in unsigned long aIndex); */
359 : NS_IMETHODIMP _MYCLASS_::GetInt32(PRUint32 aIndex, PRInt32 *_retval NS_OUTPARAM)
360 : {
361 : return NS_ERROR_NOT_IMPLEMENTED;
362 : }
363 :
364 : /* long long getInt64 (in unsigned long aIndex); */
365 : NS_IMETHODIMP _MYCLASS_::GetInt64(PRUint32 aIndex, PRInt64 *_retval NS_OUTPARAM)
366 : {
367 : return NS_ERROR_NOT_IMPLEMENTED;
368 : }
369 :
370 : /* double getDouble (in unsigned long aIndex); */
371 : NS_IMETHODIMP _MYCLASS_::GetDouble(PRUint32 aIndex, double *_retval NS_OUTPARAM)
372 : {
373 : return NS_ERROR_NOT_IMPLEMENTED;
374 : }
375 :
376 : /* AUTF8String getUTF8String (in unsigned long aIndex); */
377 : NS_IMETHODIMP _MYCLASS_::GetUTF8String(PRUint32 aIndex, nsACString & _retval NS_OUTPARAM)
378 : {
379 : return NS_ERROR_NOT_IMPLEMENTED;
380 : }
381 :
382 : /* AString getString (in unsigned long aIndex); */
383 : NS_IMETHODIMP _MYCLASS_::GetString(PRUint32 aIndex, nsAString & _retval NS_OUTPARAM)
384 : {
385 : return NS_ERROR_NOT_IMPLEMENTED;
386 : }
387 :
388 : /* void getBlob (in unsigned long aIndex, out unsigned long aDataSize, [array, size_is (aDataSize)] out octet aData); */
389 : NS_IMETHODIMP _MYCLASS_::GetBlob(PRUint32 aIndex, PRUint32 *aDataSize NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM)
390 : {
391 : return NS_ERROR_NOT_IMPLEMENTED;
392 : }
393 :
394 : /* boolean getIsNull (in unsigned long aIndex); */
395 : NS_IMETHODIMP _MYCLASS_::GetIsNull(PRUint32 aIndex, bool *_retval NS_OUTPARAM)
396 : {
397 : return NS_ERROR_NOT_IMPLEMENTED;
398 : }
399 :
400 : /* [noscript] void getSharedUTF8String (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out string aResult); */
401 : NS_IMETHODIMP _MYCLASS_::GetSharedUTF8String(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const char * *aResult NS_OUTPARAM)
402 : {
403 : return NS_ERROR_NOT_IMPLEMENTED;
404 : }
405 :
406 : /* [noscript] void getSharedString (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out wstring aResult); */
407 : NS_IMETHODIMP _MYCLASS_::GetSharedString(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUnichar * *aResult NS_OUTPARAM)
408 : {
409 : return NS_ERROR_NOT_IMPLEMENTED;
410 : }
411 :
412 : /* [noscript] void getSharedBlob (in unsigned long aIndex, out unsigned long aLength, [shared, retval] out octetPtr aResult); */
413 : NS_IMETHODIMP _MYCLASS_::GetSharedBlob(PRUint32 aIndex, PRUint32 *aLength NS_OUTPARAM, const PRUint8 **aResult NS_OUTPARAM)
414 : {
415 : return NS_ERROR_NOT_IMPLEMENTED;
416 : }
417 :
418 : /* End of implementation class template. */
419 : #endif
420 :
421 :
422 : #endif /* __gen_mozIStorageStatement_h__ */
|