/*
* Copyright (c) 2019 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/.
*/
using SafeExamBrowser.Contracts.SystemComponents;
namespace SafeExamBrowser.Contracts.UserInterface.Taskbar
{
///
/// The control of the power supply system component.
///
public interface ISystemPowerSupplyControl : ISystemControl
{
///
/// Sets the current charge of the system battery: 0.0 means the battery is empty, 1.0 means it's fully charged.
///
void SetBatteryCharge(double charge, BatteryChargeStatus status);
///
/// Sets the power supply status, i.e. whether the computer system is connected to the power grid or not.
///
void SetPowerGridConnection(bool connected);
///
/// Warns the user that the battery charge is critical.
///
void ShowCriticalBatteryWarning(string warning);
///
/// Indicates the user that the battery charge is low.
///
void ShowLowBatteryInfo(string info);
}
}