Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/mozIStorageAsyncConnection.idl
3 : */
4 :
5 : #ifndef __gen_mozIStorageAsyncConnection_h__
6 : #define __gen_mozIStorageAsyncConnection_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 mozIStorageAggregateFunction; /* forward declaration */
18 :
19 : class mozIStorageCompletionCallback; /* forward declaration */
20 :
21 : class mozIStorageFunction; /* forward declaration */
22 :
23 : class mozIStorageProgressHandler; /* forward declaration */
24 :
25 : class mozIStorageBaseStatement; /* forward declaration */
26 :
27 : class mozIStorageStatement; /* forward declaration */
28 :
29 : class mozIStorageAsyncStatement; /* forward declaration */
30 :
31 : class mozIStorageStatementCallback; /* forward declaration */
32 :
33 : class mozIStoragePendingStatement; /* forward declaration */
34 :
35 : class nsIFile; /* forward declaration */
36 :
37 :
38 : /* starting interface: mozIStorageAsyncConnection */
39 : #define MOZISTORAGEASYNCCONNECTION_IID_STR "8bfd34d5-4ddf-4e4b-89dd-9b14f33534c6"
40 :
41 : #define MOZISTORAGEASYNCCONNECTION_IID \
42 : {0x8bfd34d5, 0x4ddf, 0x4e4b, \
43 : { 0x89, 0xdd, 0x9b, 0x14, 0xf3, 0x35, 0x34, 0xc6 }}
44 :
45 8 : class NS_NO_VTABLE mozIStorageAsyncConnection : public nsISupports {
46 : public:
47 :
48 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEASYNCCONNECTION_IID)
49 :
50 : /* void asyncClose ([optional] in mozIStorageCompletionCallback aCallback); */
51 : NS_IMETHOD AsyncClose(mozIStorageCompletionCallback *aCallback) = 0;
52 :
53 : /* [noscript] void spinningSynchronousClose (); */
54 : NS_IMETHOD SpinningSynchronousClose(void) = 0;
55 :
56 : /* void asyncClone (in boolean aReadOnly, in mozIStorageCompletionCallback aCallback); */
57 : NS_IMETHOD AsyncClone(bool aReadOnly, mozIStorageCompletionCallback *aCallback) = 0;
58 :
59 : /* readonly attribute nsIFile databaseFile; */
60 : NS_IMETHOD GetDatabaseFile(nsIFile * *aDatabaseFile) = 0;
61 :
62 : /* mozIStorageAsyncStatement createAsyncStatement (in AUTF8String aSQLStatement); */
63 : NS_IMETHOD CreateAsyncStatement(const nsACString & aSQLStatement, mozIStorageAsyncStatement * *_retval) = 0;
64 :
65 : /* mozIStoragePendingStatement executeAsync ([array, size_is (aNumStatements)] in mozIStorageBaseStatement aStatements, in unsigned long aNumStatements, [optional] in mozIStorageStatementCallback aCallback); */
66 : NS_IMETHOD ExecuteAsync(mozIStorageBaseStatement **aStatements, uint32_t aNumStatements, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) = 0;
67 :
68 : /* mozIStoragePendingStatement executeSimpleSQLAsync (in AUTF8String aSQLStatement, [optional] in mozIStorageStatementCallback aCallback); */
69 : NS_IMETHOD ExecuteSimpleSQLAsync(const nsACString & aSQLStatement, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) = 0;
70 :
71 : /* void createFunction (in AUTF8String aFunctionName, in long aNumArguments, in mozIStorageFunction aFunction); */
72 : NS_IMETHOD CreateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageFunction *aFunction) = 0;
73 :
74 : /* void createAggregateFunction (in AUTF8String aFunctionName, in long aNumArguments, in mozIStorageAggregateFunction aFunction); */
75 : NS_IMETHOD CreateAggregateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageAggregateFunction *aFunction) = 0;
76 :
77 : /* void removeFunction (in AUTF8String aFunctionName); */
78 : NS_IMETHOD RemoveFunction(const nsACString & aFunctionName) = 0;
79 :
80 : /* mozIStorageProgressHandler setProgressHandler (in int32_t aGranularity, in mozIStorageProgressHandler aHandler); */
81 : NS_IMETHOD SetProgressHandler(int32_t aGranularity, mozIStorageProgressHandler *aHandler, mozIStorageProgressHandler * *_retval) = 0;
82 :
83 : /* mozIStorageProgressHandler removeProgressHandler (); */
84 : NS_IMETHOD RemoveProgressHandler(mozIStorageProgressHandler * *_retval) = 0;
85 :
86 : };
87 :
88 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageAsyncConnection, MOZISTORAGEASYNCCONNECTION_IID)
89 :
90 : /* Use this macro when declaring classes that implement this interface. */
91 : #define NS_DECL_MOZISTORAGEASYNCCONNECTION \
92 : NS_IMETHOD AsyncClose(mozIStorageCompletionCallback *aCallback) override; \
93 : NS_IMETHOD SpinningSynchronousClose(void) override; \
94 : NS_IMETHOD AsyncClone(bool aReadOnly, mozIStorageCompletionCallback *aCallback) override; \
95 : NS_IMETHOD GetDatabaseFile(nsIFile * *aDatabaseFile) override; \
96 : NS_IMETHOD CreateAsyncStatement(const nsACString & aSQLStatement, mozIStorageAsyncStatement * *_retval) override; \
97 : NS_IMETHOD ExecuteAsync(mozIStorageBaseStatement **aStatements, uint32_t aNumStatements, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override; \
98 : NS_IMETHOD ExecuteSimpleSQLAsync(const nsACString & aSQLStatement, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override; \
99 : NS_IMETHOD CreateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageFunction *aFunction) override; \
100 : NS_IMETHOD CreateAggregateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageAggregateFunction *aFunction) override; \
101 : NS_IMETHOD RemoveFunction(const nsACString & aFunctionName) override; \
102 : NS_IMETHOD SetProgressHandler(int32_t aGranularity, mozIStorageProgressHandler *aHandler, mozIStorageProgressHandler * *_retval) override; \
103 : NS_IMETHOD RemoveProgressHandler(mozIStorageProgressHandler * *_retval) override;
104 :
105 : /* Use this macro when declaring the members of this interface when the
106 : class doesn't implement the interface. This is useful for forwarding. */
107 : #define NS_DECL_NON_VIRTUAL_MOZISTORAGEASYNCCONNECTION \
108 : nsresult AsyncClose(mozIStorageCompletionCallback *aCallback); \
109 : nsresult SpinningSynchronousClose(void); \
110 : nsresult AsyncClone(bool aReadOnly, mozIStorageCompletionCallback *aCallback); \
111 : nsresult GetDatabaseFile(nsIFile * *aDatabaseFile); \
112 : nsresult CreateAsyncStatement(const nsACString & aSQLStatement, mozIStorageAsyncStatement * *_retval); \
113 : nsresult ExecuteAsync(mozIStorageBaseStatement **aStatements, uint32_t aNumStatements, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval); \
114 : nsresult ExecuteSimpleSQLAsync(const nsACString & aSQLStatement, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval); \
115 : nsresult CreateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageFunction *aFunction); \
116 : nsresult CreateAggregateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageAggregateFunction *aFunction); \
117 : nsresult RemoveFunction(const nsACString & aFunctionName); \
118 : nsresult SetProgressHandler(int32_t aGranularity, mozIStorageProgressHandler *aHandler, mozIStorageProgressHandler * *_retval); \
119 : nsresult RemoveProgressHandler(mozIStorageProgressHandler * *_retval);
120 :
121 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
122 : #define NS_FORWARD_MOZISTORAGEASYNCCONNECTION(_to) \
123 : NS_IMETHOD AsyncClose(mozIStorageCompletionCallback *aCallback) override { return _to AsyncClose(aCallback); } \
124 : NS_IMETHOD SpinningSynchronousClose(void) override { return _to SpinningSynchronousClose(); } \
125 : NS_IMETHOD AsyncClone(bool aReadOnly, mozIStorageCompletionCallback *aCallback) override { return _to AsyncClone(aReadOnly, aCallback); } \
126 : NS_IMETHOD GetDatabaseFile(nsIFile * *aDatabaseFile) override { return _to GetDatabaseFile(aDatabaseFile); } \
127 : NS_IMETHOD CreateAsyncStatement(const nsACString & aSQLStatement, mozIStorageAsyncStatement * *_retval) override { return _to CreateAsyncStatement(aSQLStatement, _retval); } \
128 : NS_IMETHOD ExecuteAsync(mozIStorageBaseStatement **aStatements, uint32_t aNumStatements, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override { return _to ExecuteAsync(aStatements, aNumStatements, aCallback, _retval); } \
129 : NS_IMETHOD ExecuteSimpleSQLAsync(const nsACString & aSQLStatement, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override { return _to ExecuteSimpleSQLAsync(aSQLStatement, aCallback, _retval); } \
130 : NS_IMETHOD CreateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageFunction *aFunction) override { return _to CreateFunction(aFunctionName, aNumArguments, aFunction); } \
131 : NS_IMETHOD CreateAggregateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageAggregateFunction *aFunction) override { return _to CreateAggregateFunction(aFunctionName, aNumArguments, aFunction); } \
132 : NS_IMETHOD RemoveFunction(const nsACString & aFunctionName) override { return _to RemoveFunction(aFunctionName); } \
133 : NS_IMETHOD SetProgressHandler(int32_t aGranularity, mozIStorageProgressHandler *aHandler, mozIStorageProgressHandler * *_retval) override { return _to SetProgressHandler(aGranularity, aHandler, _retval); } \
134 : NS_IMETHOD RemoveProgressHandler(mozIStorageProgressHandler * *_retval) override { return _to RemoveProgressHandler(_retval); }
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_MOZISTORAGEASYNCCONNECTION(_to) \
138 : NS_IMETHOD AsyncClose(mozIStorageCompletionCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncClose(aCallback); } \
139 : NS_IMETHOD SpinningSynchronousClose(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpinningSynchronousClose(); } \
140 : NS_IMETHOD AsyncClone(bool aReadOnly, mozIStorageCompletionCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncClone(aReadOnly, aCallback); } \
141 : NS_IMETHOD GetDatabaseFile(nsIFile * *aDatabaseFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDatabaseFile(aDatabaseFile); } \
142 : NS_IMETHOD CreateAsyncStatement(const nsACString & aSQLStatement, mozIStorageAsyncStatement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAsyncStatement(aSQLStatement, _retval); } \
143 : NS_IMETHOD ExecuteAsync(mozIStorageBaseStatement **aStatements, uint32_t aNumStatements, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteAsync(aStatements, aNumStatements, aCallback, _retval); } \
144 : NS_IMETHOD ExecuteSimpleSQLAsync(const nsACString & aSQLStatement, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteSimpleSQLAsync(aSQLStatement, aCallback, _retval); } \
145 : NS_IMETHOD CreateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageFunction *aFunction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFunction(aFunctionName, aNumArguments, aFunction); } \
146 : NS_IMETHOD CreateAggregateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageAggregateFunction *aFunction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAggregateFunction(aFunctionName, aNumArguments, aFunction); } \
147 : NS_IMETHOD RemoveFunction(const nsACString & aFunctionName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFunction(aFunctionName); } \
148 : NS_IMETHOD SetProgressHandler(int32_t aGranularity, mozIStorageProgressHandler *aHandler, mozIStorageProgressHandler * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProgressHandler(aGranularity, aHandler, _retval); } \
149 : NS_IMETHOD RemoveProgressHandler(mozIStorageProgressHandler * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProgressHandler(_retval); }
150 :
151 : #if 0
152 : /* Use the code below as a template for the implementation class for this interface. */
153 :
154 : /* Header file */
155 : class _MYCLASS_ : public mozIStorageAsyncConnection
156 : {
157 : public:
158 : NS_DECL_ISUPPORTS
159 : NS_DECL_MOZISTORAGEASYNCCONNECTION
160 :
161 : _MYCLASS_();
162 :
163 : private:
164 : ~_MYCLASS_();
165 :
166 : protected:
167 : /* additional members */
168 : };
169 :
170 : /* Implementation file */
171 : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIStorageAsyncConnection)
172 :
173 : _MYCLASS_::_MYCLASS_()
174 : {
175 : /* member initializers and constructor code */
176 : }
177 :
178 : _MYCLASS_::~_MYCLASS_()
179 : {
180 : /* destructor code */
181 : }
182 :
183 : /* void asyncClose ([optional] in mozIStorageCompletionCallback aCallback); */
184 : NS_IMETHODIMP _MYCLASS_::AsyncClose(mozIStorageCompletionCallback *aCallback)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* [noscript] void spinningSynchronousClose (); */
190 : NS_IMETHODIMP _MYCLASS_::SpinningSynchronousClose()
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* void asyncClone (in boolean aReadOnly, in mozIStorageCompletionCallback aCallback); */
196 : NS_IMETHODIMP _MYCLASS_::AsyncClone(bool aReadOnly, mozIStorageCompletionCallback *aCallback)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* readonly attribute nsIFile databaseFile; */
202 : NS_IMETHODIMP _MYCLASS_::GetDatabaseFile(nsIFile * *aDatabaseFile)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* mozIStorageAsyncStatement createAsyncStatement (in AUTF8String aSQLStatement); */
208 : NS_IMETHODIMP _MYCLASS_::CreateAsyncStatement(const nsACString & aSQLStatement, mozIStorageAsyncStatement * *_retval)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* mozIStoragePendingStatement executeAsync ([array, size_is (aNumStatements)] in mozIStorageBaseStatement aStatements, in unsigned long aNumStatements, [optional] in mozIStorageStatementCallback aCallback); */
214 : NS_IMETHODIMP _MYCLASS_::ExecuteAsync(mozIStorageBaseStatement **aStatements, uint32_t aNumStatements, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* mozIStoragePendingStatement executeSimpleSQLAsync (in AUTF8String aSQLStatement, [optional] in mozIStorageStatementCallback aCallback); */
220 : NS_IMETHODIMP _MYCLASS_::ExecuteSimpleSQLAsync(const nsACString & aSQLStatement, mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* void createFunction (in AUTF8String aFunctionName, in long aNumArguments, in mozIStorageFunction aFunction); */
226 : NS_IMETHODIMP _MYCLASS_::CreateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageFunction *aFunction)
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 :
231 : /* void createAggregateFunction (in AUTF8String aFunctionName, in long aNumArguments, in mozIStorageAggregateFunction aFunction); */
232 : NS_IMETHODIMP _MYCLASS_::CreateAggregateFunction(const nsACString & aFunctionName, int32_t aNumArguments, mozIStorageAggregateFunction *aFunction)
233 : {
234 : return NS_ERROR_NOT_IMPLEMENTED;
235 : }
236 :
237 : /* void removeFunction (in AUTF8String aFunctionName); */
238 : NS_IMETHODIMP _MYCLASS_::RemoveFunction(const nsACString & aFunctionName)
239 : {
240 : return NS_ERROR_NOT_IMPLEMENTED;
241 : }
242 :
243 : /* mozIStorageProgressHandler setProgressHandler (in int32_t aGranularity, in mozIStorageProgressHandler aHandler); */
244 : NS_IMETHODIMP _MYCLASS_::SetProgressHandler(int32_t aGranularity, mozIStorageProgressHandler *aHandler, mozIStorageProgressHandler * *_retval)
245 : {
246 : return NS_ERROR_NOT_IMPLEMENTED;
247 : }
248 :
249 : /* mozIStorageProgressHandler removeProgressHandler (); */
250 : NS_IMETHODIMP _MYCLASS_::RemoveProgressHandler(mozIStorageProgressHandler * *_retval)
251 : {
252 : return NS_ERROR_NOT_IMPLEMENTED;
253 : }
254 :
255 : /* End of implementation class template. */
256 : #endif
257 :
258 :
259 : #endif /* __gen_mozIStorageAsyncConnection_h__ */
|