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"
8 #define ENTERPRISE_POLICIES_ENABLED_KEY
"EnterprisePoliciesEnabled"
12 * This interface is designed to provide scriptable access to the macOS
15 * This interface is highly macOS specific.
17 [builtinclass
, scriptable
, uuid(b0f20595
-88ce
-4738-a1a4
-24de78eb8051
)]
18 interface nsIMacPreferencesReader
: nsISupports
21 * This method checks whether macOS policies are enabled.
23 * @return true if macOS policies are enabled, false otherwise.
25 boolean policiesEnabled
();
28 * This method reads and returns the macOS preferences.
30 * @return A JSON object containing all macOS preferences.
33 jsval readPreferences
();