2010-03-24 07:32:40 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* 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/. */
|
2010-03-24 07:32:40 +00:00
|
|
|
|
|
|
|
#ifndef mozilla_storage_mozStorageAsyncStatementParams_h_
|
|
|
|
#define mozilla_storage_mozStorageAsyncStatementParams_h_
|
|
|
|
|
2012-05-02 17:01:39 +00:00
|
|
|
#include "mozIStorageStatementParams.h"
|
2010-03-24 07:32:40 +00:00
|
|
|
#include "nsIXPCScriptable.h"
|
2012-06-13 03:35:10 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2010-03-24 07:32:40 +00:00
|
|
|
|
|
|
|
class mozIStorageAsyncStatement;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace storage {
|
|
|
|
|
|
|
|
class AsyncStatement;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Since mozIStorageStatementParams is just a tagging interface we do not have
|
|
|
|
* an async variant.
|
|
|
|
*/
|
2012-06-13 03:35:10 +00:00
|
|
|
class AsyncStatementParams MOZ_FINAL : public mozIStorageStatementParams
|
|
|
|
, public nsIXPCScriptable
|
2010-03-24 07:32:40 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-08-07 23:47:28 +00:00
|
|
|
explicit AsyncStatementParams(AsyncStatement *aStatement);
|
2010-03-24 07:32:40 +00:00
|
|
|
|
|
|
|
// interfaces
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_MOZISTORAGESTATEMENTPARAMS
|
|
|
|
NS_DECL_NSIXPCSCRIPTABLE
|
|
|
|
|
|
|
|
protected:
|
2014-06-23 22:40:03 +00:00
|
|
|
virtual ~AsyncStatementParams() {}
|
|
|
|
|
2010-03-24 07:32:40 +00:00
|
|
|
AsyncStatement *mStatement;
|
|
|
|
|
|
|
|
friend class AsyncStatement;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace storage
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_storage_mozStorageAsyncStatementParams_h_
|