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

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

mercurial