Line data Source code
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 final : public mozIStorageStatementRow
20 : , public nsIXPCScriptable
21 : {
22 : public:
23 : NS_DECL_ISUPPORTS
24 : NS_DECL_MOZISTORAGESTATEMENTROW
25 : NS_DECL_NSIXPCSCRIPTABLE
26 :
27 : explicit StatementRow(Statement *aStatement);
28 : protected:
29 :
30 0 : ~StatementRow() {}
31 :
32 : Statement *mStatement;
33 :
34 : friend class StatementRowHolder;
35 : };
36 :
37 : } // namespace storage
38 : } // namespace mozilla
39 :
40 : #endif /* MOZSTORAGESTATEMENTROW_H */
|