1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/settings/nsISettingsService.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "domstubs.idl" 1.9 + 1.10 +[scriptable, uuid(aad47850-2e87-11e2-81c1-0800200c9a66)] 1.11 +interface nsISettingsServiceCallback : nsISupports 1.12 +{ 1.13 + void handle(in DOMString aName, in jsval aResult); 1.14 + void handleError(in DOMString aErrorMessage); 1.15 +}; 1.16 + 1.17 +[scriptable, uuid(f1b3d820-8e75-11e3-baa8-0800200c9a66)] 1.18 +interface nsISettingsTransactionCompleteCallback : nsISupports 1.19 +{ 1.20 + void handle(); 1.21 + void handleAbort(in DOMString aErrorMessage); 1.22 +}; 1.23 + 1.24 +[scriptable, uuid(d7a395a0-e292-11e1-834e-1761d57f5f99)] 1.25 +interface nsISettingsServiceLock : nsISupports 1.26 +{ 1.27 + void set(in string aName, 1.28 + in jsval aValue, 1.29 + in nsISettingsServiceCallback aCallback, 1.30 + [optional] in string aMessage); 1.31 + 1.32 + void get(in string aName, in nsISettingsServiceCallback aCallback); 1.33 +}; 1.34 + 1.35 +[scriptable, uuid(0505acf0-8e76-11e3-baa8-0800200c9a66)] 1.36 +interface nsISettingsService : nsISupports 1.37 +{ 1.38 + nsISettingsServiceLock createLock([optional] in nsISettingsTransactionCompleteCallback aCallback); 1.39 +};