1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/storage/public/mozIStoragePendingStatement.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * vim: sw=2 ts=2 sts=2 expandtab 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 +[scriptable, uuid(00da7d20-3768-4398-bedc-e310c324b3f0)] 1.13 +interface mozIStoragePendingStatement : nsISupports { 1.14 + 1.15 + /** 1.16 + * Cancels a pending statement, if possible. This will only fail if you try 1.17 + * cancel more than once. 1.18 + * 1.19 + * @note For read statements (such as SELECT), you will no longer receive any 1.20 + * notifications about results once cancel is called. 1.21 + */ 1.22 + void cancel(); 1.23 +};