michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set sw=2 ts=8 et ft=cpp : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_HalInternal_h michael@0: #define mozilla_HalInternal_h 1 michael@0: michael@0: /* michael@0: * This file is included by HalImpl.h and HalSandbox.h with a mechanism similar michael@0: * to Hal.h. That means those headers set MOZ_HAL_NAMESPACE to specify in which michael@0: * namespace the internal functions should appear. michael@0: * michael@0: * The difference between Hal.h and HalInternal.h is that methods declared in michael@0: * HalInternal.h don't appear in the hal namespace. That also means this file michael@0: * should not be included except by HalInternal.h and HalSandbox.h. michael@0: */ michael@0: michael@0: #ifndef MOZ_HAL_NAMESPACE michael@0: # error "You shouldn't directly include HalInternal.h!" michael@0: #endif michael@0: michael@0: namespace mozilla { michael@0: namespace MOZ_HAL_NAMESPACE { michael@0: michael@0: /** michael@0: * Enables battery notifications from the backend. michael@0: */ michael@0: void EnableBatteryNotifications(); michael@0: michael@0: /** michael@0: * Disables battery notifications from the backend. michael@0: */ michael@0: void DisableBatteryNotifications(); michael@0: michael@0: /** michael@0: * Enables network notifications from the backend. michael@0: */ michael@0: void EnableNetworkNotifications(); michael@0: michael@0: /** michael@0: * Disables network notifications from the backend. michael@0: */ michael@0: void DisableNetworkNotifications(); michael@0: michael@0: /** michael@0: * Enables screen orientation notifications from the backend. michael@0: */ michael@0: void EnableScreenConfigurationNotifications(); michael@0: michael@0: /** michael@0: * Disables screen orientation notifications from the backend. michael@0: */ michael@0: void DisableScreenConfigurationNotifications(); michael@0: michael@0: /** michael@0: * Enable switch notifications from the backend michael@0: */ michael@0: void EnableSwitchNotifications(hal::SwitchDevice aDevice); michael@0: michael@0: /** michael@0: * Disable switch notifications from the backend michael@0: */ michael@0: void DisableSwitchNotifications(hal::SwitchDevice aDevice); michael@0: michael@0: /** michael@0: * Enable alarm notifications from the backend. michael@0: */ michael@0: bool EnableAlarm(); michael@0: michael@0: /** michael@0: * Disable alarm notifications from the backend. michael@0: */ michael@0: void DisableAlarm(); michael@0: michael@0: /** michael@0: * Enable system clock change notifications from the backend. michael@0: */ michael@0: void EnableSystemClockChangeNotifications(); michael@0: michael@0: /** michael@0: * Disable system clock change notifications from the backend. michael@0: */ michael@0: void DisableSystemClockChangeNotifications(); michael@0: michael@0: /** michael@0: * Enable system timezone change notifications from the backend. michael@0: */ michael@0: void EnableSystemTimezoneChangeNotifications(); michael@0: michael@0: /** michael@0: * Disable system timezone change notifications from the backend. michael@0: */ michael@0: void DisableSystemTimezoneChangeNotifications(); michael@0: michael@0: /** michael@0: * Has the child-side HAL IPC object been destroyed? If so, you shouldn't send michael@0: * messages to hal_sandbox. michael@0: */ michael@0: bool HalChildDestroyed(); michael@0: } // namespace MOZ_HAL_NAMESPACE michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_HalInternal_h