|
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 MOZSTORAGESTATEMENTROW_H |
|
8 #define MOZSTORAGESTATEMENTROW_H |
|
9 |
|
10 #include "mozIStorageStatementRow.h" |
|
11 #include "nsIXPCScriptable.h" |
|
12 #include "mozilla/Attributes.h" |
|
13 |
|
14 namespace mozilla { |
|
15 namespace storage { |
|
16 |
|
17 class Statement; |
|
18 |
|
19 class StatementRow MOZ_FINAL : public mozIStorageStatementRow |
|
20 , public nsIXPCScriptable |
|
21 { |
|
22 public: |
|
23 NS_DECL_ISUPPORTS |
|
24 NS_DECL_MOZISTORAGESTATEMENTROW |
|
25 NS_DECL_NSIXPCSCRIPTABLE |
|
26 |
|
27 StatementRow(Statement *aStatement); |
|
28 protected: |
|
29 |
|
30 Statement *mStatement; |
|
31 |
|
32 friend class Statement; |
|
33 }; |
|
34 |
|
35 } // namespace storage |
|
36 } // namespace mozilla |
|
37 |
|
38 #endif /* MOZSTORAGESTATEMENTROW_H */ |