1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/system/nsIGSettingsService.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIArray; 1.12 + 1.13 +[scriptable, uuid(16d5b0ed-e756-4f1b-a8ce-9132e869acd8)] 1.14 +interface nsIGSettingsCollection : nsISupports 1.15 +{ 1.16 + void setString(in AUTF8String key, in AUTF8String value); 1.17 + void setBoolean(in AUTF8String key, in boolean value); 1.18 + void setInt(in AUTF8String key, in long value); 1.19 + AUTF8String getString(in AUTF8String key); 1.20 + boolean getBoolean(in AUTF8String key); 1.21 + long getInt(in AUTF8String key); 1.22 + nsIArray getStringList(in AUTF8String key); 1.23 +}; 1.24 + 1.25 +[scriptable, uuid(849c088b-57d1-4f24-b7b2-3dc4acb04c0a)] 1.26 +interface nsIGSettingsService : nsISupports 1.27 +{ 1.28 + nsIGSettingsCollection getCollectionForSchema(in AUTF8String schema); 1.29 +}; 1.30 + 1.31 +%{C++ 1.32 +#define NS_GSETTINGSSERVICE_CONTRACTID "@mozilla.org/gsettings-service;1" 1.33 +%}