2009-04-08 16:24:25 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2009-04-13 16:29:41 +00:00
|
|
|
* vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2008-09-12 21:30:37 +00:00
|
|
|
|
2010-06-01 12:38:00 +00:00
|
|
|
#ifndef MOZSTORAGESTATEMENTPARAMS_H
|
|
|
|
#define MOZSTORAGESTATEMENTPARAMS_H
|
2008-09-12 21:30:37 +00:00
|
|
|
|
2012-05-02 17:01:39 +00:00
|
|
|
#include "mozIStorageStatementParams.h"
|
2008-09-12 21:30:37 +00:00
|
|
|
#include "nsIXPCScriptable.h"
|
2012-06-13 03:35:10 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2008-09-12 21:30:37 +00:00
|
|
|
|
2009-04-08 16:24:25 +00:00
|
|
|
class mozIStorageStatement;
|
2008-11-19 19:33:00 +00:00
|
|
|
|
2009-04-08 16:24:25 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace storage {
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
class StatementParams final : public mozIStorageStatementParams
|
2015-03-27 18:52:19 +00:00
|
|
|
, public nsIXPCScriptable
|
2008-09-12 21:30:37 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-08-07 23:47:28 +00:00
|
|
|
explicit StatementParams(mozIStorageStatement *aStatement);
|
2008-09-12 21:30:37 +00:00
|
|
|
|
2009-04-08 16:24:25 +00:00
|
|
|
// interfaces
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_MOZISTORAGESTATEMENTPARAMS
|
|
|
|
NS_DECL_NSIXPCSCRIPTABLE
|
2008-09-12 21:30:37 +00:00
|
|
|
|
|
|
|
protected:
|
2014-06-23 22:40:03 +00:00
|
|
|
~StatementParams() {}
|
|
|
|
|
2009-04-08 16:24:25 +00:00
|
|
|
mozIStorageStatement *mStatement;
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t mParamCount;
|
2008-11-19 19:33:00 +00:00
|
|
|
|
2015-03-12 16:55:56 +00:00
|
|
|
friend class StatementParamsHolder;
|
|
|
|
friend class StatementRowHolder;
|
2008-09-12 21:30:37 +00:00
|
|
|
};
|
|
|
|
|
2009-04-08 16:24:25 +00:00
|
|
|
} // namespace storage
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-06-01 12:38:00 +00:00
|
|
|
#endif /* MOZSTORAGESTATEMENTPARAMS_H */
|