2010-06-23 12:46:08 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
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/. */
|
2010-06-23 12:46:08 -07:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2010-06-28 09:46:21 -07:00
|
|
|
interface nsIDOMEventListener;
|
2010-06-28 11:51:06 -07:00
|
|
|
interface nsIIDBObjectStore;
|
2010-06-28 09:46:21 -07:00
|
|
|
interface nsIIDBRequest;
|
2010-06-23 12:46:08 -07:00
|
|
|
interface nsIIDBDatabase;
|
|
|
|
interface nsIDOMDOMStringList;
|
2012-06-25 12:15:17 -07:00
|
|
|
interface nsIDOMDOMError;
|
2010-06-23 12:46:08 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* IDBDTransaction interface. See
|
2010-06-28 09:46:21 -07:00
|
|
|
* http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBTransaction
|
|
|
|
* for more information.
|
2010-06-23 12:46:08 -07:00
|
|
|
*/
|
2012-06-25 12:15:17 -07:00
|
|
|
[scriptable, builtinclass, uuid(79f73099-02ff-416d-9754-5a315e29ee4f)]
|
2010-06-23 12:46:08 -07:00
|
|
|
interface nsIIDBTransaction : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute nsIIDBDatabase db;
|
|
|
|
|
2012-03-12 21:44:45 -07:00
|
|
|
// "readonly", "readwrite" or "versionchange"
|
|
|
|
readonly attribute DOMString mode;
|
2010-06-23 12:46:08 -07:00
|
|
|
|
2012-06-25 12:15:17 -07:00
|
|
|
readonly attribute nsIDOMDOMError error;
|
|
|
|
|
2010-06-23 12:46:08 -07:00
|
|
|
readonly attribute nsIDOMDOMStringList objectStoreNames;
|
2010-06-28 09:46:21 -07:00
|
|
|
|
2010-06-28 11:51:06 -07:00
|
|
|
nsIIDBObjectStore
|
2011-11-07 15:37:16 -08:00
|
|
|
objectStore([Null(Stringify)] in DOMString name);
|
2010-06-28 09:46:21 -07:00
|
|
|
|
|
|
|
// Don't commit the transaction.
|
|
|
|
void abort();
|
|
|
|
|
2010-11-10 15:26:03 -08:00
|
|
|
attribute nsIDOMEventListener onerror;
|
|
|
|
|
2010-06-28 09:46:21 -07:00
|
|
|
// Event listener that fires when the transaction is completed
|
|
|
|
// successfully. Receives an Event.
|
|
|
|
attribute nsIDOMEventListener oncomplete;
|
|
|
|
|
|
|
|
// Event listener that fires when the transaction is aborted.
|
|
|
|
// Receives an Event.
|
|
|
|
attribute nsIDOMEventListener onabort;
|
2010-06-23 12:46:08 -07:00
|
|
|
};
|