dom/interfaces/settings/nsISettingsService.idl

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "domstubs.idl"
michael@0 6
michael@0 7 [scriptable, uuid(aad47850-2e87-11e2-81c1-0800200c9a66)]
michael@0 8 interface nsISettingsServiceCallback : nsISupports
michael@0 9 {
michael@0 10 void handle(in DOMString aName, in jsval aResult);
michael@0 11 void handleError(in DOMString aErrorMessage);
michael@0 12 };
michael@0 13
michael@0 14 [scriptable, uuid(f1b3d820-8e75-11e3-baa8-0800200c9a66)]
michael@0 15 interface nsISettingsTransactionCompleteCallback : nsISupports
michael@0 16 {
michael@0 17 void handle();
michael@0 18 void handleAbort(in DOMString aErrorMessage);
michael@0 19 };
michael@0 20
michael@0 21 [scriptable, uuid(d7a395a0-e292-11e1-834e-1761d57f5f99)]
michael@0 22 interface nsISettingsServiceLock : nsISupports
michael@0 23 {
michael@0 24 void set(in string aName,
michael@0 25 in jsval aValue,
michael@0 26 in nsISettingsServiceCallback aCallback,
michael@0 27 [optional] in string aMessage);
michael@0 28
michael@0 29 void get(in string aName, in nsISettingsServiceCallback aCallback);
michael@0 30 };
michael@0 31
michael@0 32 [scriptable, uuid(0505acf0-8e76-11e3-baa8-0800200c9a66)]
michael@0 33 interface nsISettingsService : nsISupports
michael@0 34 {
michael@0 35 nsISettingsServiceLock createLock([optional] in nsISettingsTransactionCompleteCallback aCallback);
michael@0 36 };

mercurial