|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ : |
|
3 * This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #ifndef mozilla_storage_mozStorageAsyncStatementParams_h_ |
|
8 #define mozilla_storage_mozStorageAsyncStatementParams_h_ |
|
9 |
|
10 #include "mozIStorageStatementParams.h" |
|
11 #include "nsIXPCScriptable.h" |
|
12 #include "mozilla/Attributes.h" |
|
13 |
|
14 class mozIStorageAsyncStatement; |
|
15 |
|
16 namespace mozilla { |
|
17 namespace storage { |
|
18 |
|
19 class AsyncStatement; |
|
20 |
|
21 /* |
|
22 * Since mozIStorageStatementParams is just a tagging interface we do not have |
|
23 * an async variant. |
|
24 */ |
|
25 class AsyncStatementParams MOZ_FINAL : public mozIStorageStatementParams |
|
26 , public nsIXPCScriptable |
|
27 { |
|
28 public: |
|
29 AsyncStatementParams(AsyncStatement *aStatement); |
|
30 |
|
31 // interfaces |
|
32 NS_DECL_ISUPPORTS |
|
33 NS_DECL_MOZISTORAGESTATEMENTPARAMS |
|
34 NS_DECL_NSIXPCSCRIPTABLE |
|
35 |
|
36 protected: |
|
37 AsyncStatement *mStatement; |
|
38 |
|
39 friend class AsyncStatement; |
|
40 }; |
|
41 |
|
42 } // namespace storage |
|
43 } // namespace mozilla |
|
44 |
|
45 #endif // mozilla_storage_mozStorageAsyncStatementParams_h_ |