2009-04-08 09:24:25 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2009-04-13 09:29:41 -07:00
|
|
|
* vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
|
2012-05-21 04:12:37 -07: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 14:30:37 -07:00
|
|
|
|
2010-06-01 05:38:00 -07:00
|
|
|
#ifndef MOZSTORAGESTATEMENTPARAMS_H
|
|
|
|
#define MOZSTORAGESTATEMENTPARAMS_H
|
2008-09-12 14:30:37 -07:00
|
|
|
|
2012-05-02 10:01:39 -07:00
|
|
|
#include "mozIStorageStatementParams.h"
|
2008-09-12 14:30:37 -07:00
|
|
|
#include "nsIXPCScriptable.h"
|
2012-06-12 20:35:10 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2008-09-12 14:30:37 -07:00
|
|
|
|
2009-04-08 09:24:25 -07:00
|
|
|
class mozIStorageStatement;
|
2008-11-19 11:33:00 -08:00
|
|
|
|
2009-04-08 09:24:25 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace storage {
|
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
class StatementParams final : public mozIStorageStatementParams
|
2015-03-27 11:52:19 -07:00
|
|
|
, public nsIXPCScriptable
|
2008-09-12 14:30:37 -07:00
|
|
|
{
|
|
|
|
public:
|
2014-08-07 16:47:28 -07:00
|
|
|
explicit StatementParams(mozIStorageStatement *aStatement);
|
2008-09-12 14:30:37 -07:00
|
|
|
|
2009-04-08 09:24:25 -07:00
|
|
|
// interfaces
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_MOZISTORAGESTATEMENTPARAMS
|
|
|
|
NS_DECL_NSIXPCSCRIPTABLE
|
2008-09-12 14:30:37 -07:00
|
|
|
|
|
|
|
protected:
|
2014-06-23 15:40:03 -07:00
|
|
|
~StatementParams() {}
|
|
|
|
|
2009-04-08 09:24:25 -07:00
|
|
|
mozIStorageStatement *mStatement;
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mParamCount;
|
2008-11-19 11:33:00 -08:00
|
|
|
|
2015-03-12 09:55:56 -07:00
|
|
|
friend class StatementParamsHolder;
|
|
|
|
friend class StatementRowHolder;
|
2008-09-12 14:30:37 -07:00
|
|
|
};
|
|
|
|
|
2009-04-08 09:24:25 -07:00
|
|
|
} // namespace storage
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-06-01 05:38:00 -07:00
|
|
|
#endif /* MOZSTORAGESTATEMENTPARAMS_H */
|