/*
* Copyright (c) 2017 ETH Zürich, Educational Development and Technology (LET)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
namespace SafeExamBrowser.Contracts.UserInterface.Taskbar
{
public interface ISystemPowerSupplyControl : ISystemControl
{
///
/// Sets the current charge of the system battery, if available. 0.0 means the battery is empty, 1.0 means it's
/// fully charged. Pass null to indicate that the computer system has no battery.
///
void SetBatteryCharge(double? percentage);
///
/// Sets the power supply status, i.e. whether the computer system is connected to the power grid or not.
///
void SetPowerGridConnection(bool connected);
}
}