|
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/. */ |
|
4 |
|
5 #include "domstubs.idl" |
|
6 |
|
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 }; |
|
13 |
|
14 [scriptable, uuid(f1b3d820-8e75-11e3-baa8-0800200c9a66)] |
|
15 interface nsISettingsTransactionCompleteCallback : nsISupports |
|
16 { |
|
17 void handle(); |
|
18 void handleAbort(in DOMString aErrorMessage); |
|
19 }; |
|
20 |
|
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); |
|
28 |
|
29 void get(in string aName, in nsISettingsServiceCallback aCallback); |
|
30 }; |
|
31 |
|
32 [scriptable, uuid(0505acf0-8e76-11e3-baa8-0800200c9a66)] |
|
33 interface nsISettingsService : nsISupports |
|
34 { |
|
35 nsISettingsServiceLock createLock([optional] in nsISettingsTransactionCompleteCallback aCallback); |
|
36 }; |