michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ : michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, function, uuid(8cbf2dc2-91e0-44bc-984f-553638412071)] michael@0: interface mozIStorageCompletionCallback : nsISupports { michael@0: /** michael@0: * Indicates that the event this callback was passed in for has completed. michael@0: * michael@0: * @param status michael@0: * The status of the call. Generally NS_OK if the operation michael@0: * completed successfully. michael@0: * @param value michael@0: * If the operation produces a result, the result. Otherwise, michael@0: * |null|. michael@0: * michael@0: * @see The calling method for expected values. michael@0: */ michael@0: void complete(in nsresult status, [optional] in nsISupports value); michael@0: };