Backed out changeset 2284c3e8c336 (bug 1215092)
[gecko.git] / storage / mozStorageStatementRow.h
blobea9e40348458e8664e698c1b921024ecaa439914
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/. */
7 #ifndef MOZSTORAGESTATEMENTROW_H
8 #define MOZSTORAGESTATEMENTROW_H
10 #include "mozIStorageStatementRow.h"
11 #include "nsIXPCScriptable.h"
12 #include "mozilla/Attributes.h"
14 namespace mozilla {
15 namespace storage {
17 class Statement;
19 class StatementRow final : public mozIStorageStatementRow
20 , public nsIXPCScriptable
22 public:
23 NS_DECL_ISUPPORTS
24 NS_DECL_MOZISTORAGESTATEMENTROW
25 NS_DECL_NSIXPCSCRIPTABLE
27 explicit StatementRow(Statement *aStatement);
28 protected:
30 ~StatementRow() {}
32 Statement *mStatement;
34 friend class StatementRowHolder;
37 } // namespace storage
38 } // namespace mozilla
40 #endif /* MOZSTORAGESTATEMENTROW_H */