Bug 1910362 - Create new Nimbus helper r=aaronmt,ohorvath
[gecko.git] / xpcom / base / nsIMacPreferencesReader.idl
blob29461f862a1aad84bc3c33f82e0e772af7a08d6a
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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupportsPrimitives.idl"
7 %{C++
8 #define ENTERPRISE_POLICIES_ENABLED_KEY "EnterprisePoliciesEnabled"
9 %}
11 /**
12 * This interface is designed to provide scriptable access to the macOS
13 * preferences system.
15 * This interface is highly macOS specific.
17 [builtinclass, scriptable, uuid(b0f20595-88ce-4738-a1a4-24de78eb8051)]
18 interface nsIMacPreferencesReader : nsISupports
20 /**
21 * This method checks whether macOS policies are enabled.
23 * @return true if macOS policies are enabled, false otherwise.
25 boolean policiesEnabled();
27 /**
28 * This method reads and returns the macOS preferences.
30 * @return A JSON object containing all macOS preferences.
32 [implicit_jscontext]
33 jsval readPreferences();